Anish
November 24, 2022, 7:52am
1
Hi @channel ,
While making an API call am facing an issue with the connection.
Getting an error of
{"status":502,"headers":{},"response":"Error in establishing connection","errorSource":"APP","attempts":1}
The error occurs in some networks frequently.
From my understanding if the connection is not stable or not reachable we can get this message but everything is fine here even facing this issue
Can I come to know what will be the root cause of this issue.
Sujith_Guna
(Sujith Gunasekaran)
November 24, 2022, 2:02pm
3
Hi @Anish
Good Day!
If you are making a third-party API call, Please verify that you have added the endpoint to the whitelist
in the manifest.json
file.
Can you please share the HAR log and code snippet for making a request call? it helps to debug the issue
Thanks
Anish
November 27, 2022, 8:32am
4
HI @Sujith_Guna ,
The above error message is taken from the Networks tab itself.
Do you need HAR file?
Sujith_Guna
(Sujith Gunasekaran)
November 28, 2022, 5:25am
5
HI @Anish
Yes, can you please share the HAR file?
Thanks
Anish
November 28, 2022, 10:36am
6
Sorry @Sujith_Guna ,
I am unable to share the HAR file, as the file exceeds the limit.
Is there any alternate solution?
Sujith_Guna
(Sujith Gunasekaran)
November 28, 2022, 10:57am
7
Hi @Anish
Are you facing this problem every time? are you facing this problem only locally or in the published apps too? If possible can you please share the code snippet for making the request call? Please check the below tickets maybe this can help you.
Having an issue where I get a 502, Error in establishing connection message about 50% of the time when trying to reach an API endpoint. I never have an issue reaching the endpoint using Postman, only using the Request Method
The call is a little slow to respond, so not sure if there is some timeout I am hitting or what.
Below is the error I am getting and the function that calls the Request Method.
[image]
findBarcodeData() {
console.log('Searching', this.barcodeSearch)
this.ba…
Thanks
Anish
November 28, 2022, 6:48pm
8
Hi @Sujith_Guna ,
Facing issues only local with any API calls of Freshworks as of now in fresh sales.
In the below ticket found that the reason is a timeout error.
Is there any solution to fix this is necessary to work in local for me.