Receiving 520 error
# support
e
We are building a voice app for Salesforce platform using vapi, we are able to receive requests from vapi where as when we try to hit any vapi endpoints we are getting 520 error, the same urls when tried from postman or another app they are working fine. What could be the issue, could you please help. https://api.vapi.ai is added as a trusted url in our Salesforce instance aswell. This is happening only with vapi APIs not with any other sources. Can someone help.
This is not related to any call, not able to hit any vapi endpoints, vapi is throwing 520. No logs to check in vapi dashboard as well. I found one interesting topic on the same, I am including that below, can you have a look and help if you can. This is a firewall issue where your web service is hosted. When a request to the web service is made from Salesforce, it expects the response returned by the web service to come from the same IP address as when the request was made. In our case, our IT had configured the firewall so that incoming request was going through one IP address, but outgoing response was going through another IP address. Definitely, check with your IT to figure out a solution. One possibility is to put the server hosting the web service outside of the firewall. This has to be resolved at the client end to which you are making the webservice callout . Ask your other Team who have created that webservice and check whether they have white-listed salesforce IP's in their proxy .The Proxy here is not allowing your request to reach the exact end point and its filtering request from the SFDC. https://help.salesforce.com/articleView?id=000003652&type=1
Below IP ranges need to be whitelisted on vapi i believe https://ip-ranges.salesforce.com/ip-ranges.json
s
@Eswara Naidu Thank you for bringing this to our attention. Our IP management is handled through Cloudflare's security infrastructure, so we don’t directly blacklist or block IPs. To assist you further, could you provide additional details, such as a Loom video showing the issue when you access the VAPI dashboard or API? If you are receiving a 520 error in response, this information will help us investigate and move forward with resolving your issue efficiently.
e
Here is the loom Video for your reference @Shubham Bajaj https://www.loom.com/share/c179341f284f46089c56b65ffd4085e1 Endpoint that i am hitting is - https://api.vapi.ai/call/3d1d7d18-5b4e-48b3-a2b8-88a6ecc6b03d Medium - Salesforce The response that I am receiving is - [error code: 520]
@Shubham Bajaj any update?
s
@Eswara Naidu Looking into your ticket.
e
Thank you Shubam, This issue stalled our development.
s
@Eswara Naidu available for a quick call?
e
Yes Shubham
Can you call me
There?
How should I call you, I don't see any call option here @Shubham Bajaj , Am I missing something?
s
check your DM.
@Eswara Naidu As discussed, it is necessary for you to utilize proxy middleware, as your service provider is blocking requests. Please keep me informed of your progress, and do not hesitate to reach out if you require any further assistance.
e
Using proxy server fixed this issue Shubam. Thank you.
3 Views