Unable to access API URL with port number

Hi All,

I am trying to access an API from a custom app.
The API url has port number present in it, while trying to access the API I am getting an ‘502 Error is establishing connection’

I am able to access the same from the browser.
Is there any chance that this error is caused due to URLs with port-numbers not supported in custom apps?

Thanks,
Syed

Hi @zach_jones_noel ,

Any thoughts on this?

Thanks,
Syed

Hey @syedm,
Can you share the API request snippet? Probably more code info can help me understand it. :slight_smile:

AFAIK non-standard ports are not allowed in HTTP requests in apps. This should apply to both custom apps and public apps.

Hi @kaustavdm

Our customer is using a non-standard port number in their APIs.
Could you suggest a work around for this?

Thanks,
Syed

You can try using a 3rd party HTTP client library like axios or superagent and see if you are able to communicate. I am not sure if it will work, and we strongly recommend connecting only to standard ports in production.

If this does not work, you will have to put up an external reverse proxy (hosted outside the Freshworks Dev Platform) that can provide a standard port (443) for the Freshworks app to connect to. This proxy can then connect to the non-standard port on the other end.