Skip to main content

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"

Issue while perfoming HTTP callout: Unable to tunnel through proxy. Proxy returns

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:

Oct 30 10:31 AM - Codeshare

 

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!

 

#Salesforce Developer

3 réponses
  1. Forum Ambassador Sushil Kumar (UKG)
    29 oct. 2024, 20:31

    @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.

0/9000