API returns 502 Error in establishing connection

I have seen a few topics on this issue, but I was not able to find a solution to this issue yet.
Basically, my custom app is doing an API call to gather all the company details using the ‘https://domain.freshdesk.com/api/v2/companies/autocomplete?name=’ method. There is a search bar to enter values for the user which is taken to search these companies.

The code:

image

This has been working properly all this time but I am not quite sure why it’s stopped working all of the sudden.

These are the versions of Node and FDK.

Node version : 12.22.11
FDK version : 7.5.0

If anyone has an idea of why this is happening and how to fix it that would be really helpful!

1 Like

Hi @Chathuranga_Suriyaar,
Good day!
can you please share with us the FDK logs and HRA logs to debug further?
mean while, can you please ensure that added the whitelisted domain in the manifest?

Thanks

1 Like

Hi @Santhosh -
Thank you for getting back to me. Unfortunately, the issue had resolved itself before I got a chance to get the logs. I am not sure why it occurred.
To answer your question, yes the domain has been added in the manifest.json.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.