We are trying to configure fresh service using the azure URL.
At first we tried using the https://dev.azure.com, it worked well. The API request gave 200 success response.
While we try using the client VSTS azure link https://tfs-prod.endurancebermuda.net, it always throws a 504 timeout error. But in postman it gives as the response using the same VSTS URL.
In this above case, The Client VSTS azure only can be accessed in the client Network.
Is this issue because of any constrain blockers in freshservice or any other reason? Kindly assist us.
I have attached the screenshot for your reference.
Based on the information you have shared, I am assuming that when you try this API from your Postman client, your laptop or Postman instance is within the client’s network.
Assuming you are using the Request Method to make this API call, when you make the same API request from an app, the app does not make the request from within the client’s network.
You have a couple of options to proceed from here.
If the internal endpoint (https://tfs-prod.endurancebermuda.net/) can support cross-origin requests, or can be configured to allow cross-origin requests, make this API request without using the Request Method - eg: using axios. This is only safe if the request needs to be made from the configuration/iparams page. Making a similar request from a page where agents use the app will likely leak secrets to the agent, so this is not recommended.
If the internal endpoint can be configured to allow-list requests from Freshworks, update the configuration of this endpoint to allow-list the IPs mentioned in the “IP Ranges” section here - Request Method
Well, it would appear that a lot more is blocked by the intranet you are working within. In this case, it looks like you are not allowed to access jsdeliver to load Axios itself. Can you ask your IT team to allow access to jsdeliver? Or perhaps another npm hosting service they are OK to allow access to?
Our internal IT team is not blocking. While running in Local the axios is working fine but after installing the pack in freshservice then it is not working. Can you please help me in this?
was noted from the browser console, is that right @Sanjana_Vijay ?
When the app loads within Freshservice in the browser, there should be no difference between testing the app locally and when it is installed as a custom app in Freshservice if you are using axios to make requests.
Do you mind sharing the code snippet that is causing this error? Do you also have more details in the browser console log that might be relevant to the error? If so, please do share the same.
Can you also confirm what you mean by “running in the local” here? Were you referring to the steps listed here wrt testing your Front-end app?
You can see the error trace clearly calling out CORS as the problem. As I had mentioned above, axios will only work if your target endpoint supports CORS requests. It clearly does not.
Either the dev.azure.com endpoint needs to support CORS for your app to work, or it has to allow access over the Internet from the IP addresses the Freshworks platform will use to proxy the call to it via the Request Method. I don’t see any other way to make this work.
it has to allow access over the Internet from the IP addresses the Freshworks platform will use to proxy the call to it via the Request Method. I don’t see any other way to make this work.
The only person who can make this work is the administrator who owns the dev.azure.com server. You will need to describe the problem to them and have them address it so the app can make requests.