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
CaffeineCaffeine 

Apex HTTP Callout Errors

All,

We’re doing some Apex Callout work and getting an odd error that I cannot find any documentation on.

 

We’re doing a 2-way SSL callout (req.setClientCertificate(‘cert’,’pwd’) and getting back this:

ERROR - Evaluation error: System.CalloutException: Script-thrown exception

 

More info:

·         We know the external service is up and running. 

·         We have a non-SSL version of the service and it connects fine without the cert.

·         It’s only when use the cert & key that the error occurs.

·         We’ve set all the debug flags but can’t seem to milk any more information out of it.

 

Code and debug is attached if anyone wants to take a look.

 

We've set the Debug Log level to CALLOUT to try to get information, but it's not returning anything useful at all.

 

Thanks.

--Debug Log--below..see last couple of statements:

13:11:08 ERROR - Evaluation error: System.CalloutException: Script-thrown exception

13:11:08 ERROR - Evaluation error: Class.ZZZ_TEST.buildHttpRequest: line 47, column 23 AnonymousBlock: line 1, column 1