function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AbAb 

Error when calling Extrnal webservice

Hello,

I have below error when i call a external webservce
 Inside Catch : failed to send data System.CalloutException: Unable to tunnel through proxy. Proxy returns "HTTP/1.0 403 Forbidden"

What can be potential reason
Best Answer chosen by Ab
GovindarajGovindaraj
Hi Sandrine,

This may help you:
req.setClientCertificateName('localhost');

Where 'localhost' is the name of a certificate under the "Certificate and Key Management" menu.

This can be done in an Apex Class. Here is a link to the method info: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_restful_http_httprequest.htm#apex_System_HttpRequest_methods

Thanks,
Govindaraj.S