I've created a class with a method that performs an HTTP call to an external system. The system received and send data in XML.
When I execute this code to call my web service from an Anonymous Window:
RA_GTSCheckService.performCheck('S119440');I get this error message:
Unable to tunnel through proxy. Proxy returns "HTTP/1.1 500 Internal Server Error"
What I've tried:
- Add the host in a remote site setting. With or without security enabled, the error appears.
- Test the same request in Postman. In postman it works without problems, but from Salesforce the problem appears
This is my apex class:
You can read it at this link:
I've searched for information about this issue but didn't find anything useful. If anyone has an idea about how to fix it, please comment it here.
Thank you!
답변 3개
Sushil Kumar (UKG) Forum Ambassador
@Juan E. Martinez This is most likely related to firewall blocking your request. Is this some internally hosted api? You may need to work with your network team to allow access.