Latest post Wed, Jul 3 2024 8:53 AM by WawMart. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • Fri, Nov 5 2021 2:19 PM

    • gergelyv
    • Not Ranked
    • Joined on Fri, May 21 2021
    • Posts 6
    • Points 60

    Cloud UX APP external API call

    Hi All, I am working on an app in Cloud UX. I would like to call a 3rd party API from my APP via https.request. However the call never succeed. There is no trace of the request on the 3rd party API side. It looks like the request never reaches th API.

    When I check the developer tools in chrome I can see the following error message:

    Uncaught (in promise) TypeError: Failed to fetch at module.exports.ClientRequest._onFinish

    What could be the problem here?

    Thanks

  • Tue, Nov 9 2021 12:23 PM In reply to

    • gergelyv
    • Not Ranked
    • Joined on Fri, May 21 2021
    • Posts 6
    • Points 60

    Re: Cloud UX APP external API call

    I am pretty sure this is an SSL certificate problem. So my question is what is the proper way of calling a 3rd party API hosted on a server on the local network.

  • Mon, Jan 31 2022 4:15 PM In reply to

    • Vadym
    • Top 500 Contributor
    • Joined on Thu, Apr 17 2014
    • Posts 262
    • Points 3,110
    • ! Avid Employee
      Avid Developer Moderator

    Re: Cloud UX APP external API call

    Hi Gergelyv,

    We provide a number of examples on how to use APIs from UI app at https://github.com/avid-technology

    Please take a look at https://github.com/avid-technology/inews-notifications or https://github.com/avid-technology/cloudux-user-settings-example where UI App from a client machine is making API calls to cloudux on a local network.

     

  • Tue, Feb 8 2022 7:26 PM In reply to

    • mts-dev
    • Not Ranked
    • Joined on Fri, Dec 10 2021
    • Posts 18
    • Points 215

    Re: Cloud UX APP external API call

    Hi there Vadym,

    I'm trying to do the same thing here. Looking at the inews-notifications example I noticed there were calls to the cloud-ux server to get an access token of some kind. That access token is then used in subsequent calls to something called the CTMS-registry. I tried out those calls to our cloud-ux server and while it works through postman, the plug-in fails to reach the server because of the CORS security feature on browsers. Also it seems like the example is a bit dated given the javascript libraries it uses (https vs axios like on other example projects). Someone on here mentioned Cloud-ux services as a way to make calls to external apis. Is that how this is done now?  

    -Kenneth

  • Tue, Feb 8 2022 8:16 PM In reply to

    • Vadym
    • Top 500 Contributor
    • Joined on Thu, Apr 17 2014
    • Posts 262
    • Points 3,110
    • ! Avid Employee
      Avid Developer Moderator

    Re: Cloud UX APP external API call

    Hi Kenneth,

    Are you using the same origin credentials? This is shown in the cloudux-user-settings-example.

    You may need to create a connector (CloudUX service) under specific circumstances, but usually it is not necessary.

    Making api calls over http doesn't require a connector. Most likely you just need to set cross origin header on your api server to allow calls from your CloudUX URL. e.g. Access-Control-Allow-Origin: *

    BTW this is one of the reasons Trello example doesn't work anymore as they removed the wildcard possibility in their settings.

  • Mon, Feb 14 2022 1:39 PM In reply to

    • mts-dev
    • Not Ranked
    • Joined on Fri, Dec 10 2021
    • Posts 18
    • Points 215

    Re: Cloud UX APP external API call

    I see. Makes sense, thanks! 

  • Sat, Mar 18 2023 12:45 PM In reply to

    • Jeffolsen
    • Not Ranked
    • Joined on Fri, Mar 17 2023
    • Posts 7
    • Points 40

    Re: Cloud UX APP external API call

    One possible cause of this issue is that there's a problem with the URL or endpoint you're trying to access. It's possible that the URL is incorrect or that the endpoint is not configured to accept requests from your app's domain or IP address. Double-check the URL and endpoint to ensure that they're correct and that you have the necessary permissions to access them. More over you read more guides at thenewsinsides.com.

  • Wed, Jul 3 2024 8:53 AM In reply to

    • WawMart
    • Not Ranked
    • Joined on Mon, Sep 26 2022
    • Posts 2
    • Points 5

    Re: Cloud UX APP external API call

    developer.cloudflare.com

Page 1 of 1 (8 items)

© Copyright 2011 Avid Technology, Inc.  Terms of Use |  Privacy Policy |  Site Map |  Find a Reseller