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
Vadym BombykVadym Bombyk 

Problem with authentication to external system. Unable to tunnel through proxy. Proxy returns "HTTP/1.1 503 Service Unavailable

Hi guys! 
I faced with an error: 'Unable to tunnel through proxy. Proxy returns "HTTP/1.1 503 Service Unavailable' when trying to conect to external system. Actualy I configured my auth provider and named credentials correct. I'm getting this error only 1 time when I'm trying to log in in my external system (and getting Status: Pending in my named credentials). But, if I'll try to log in again - it is all fine, and I authentificated successfull. 
Note, that I added all needed sites urls in Remote Site Settings 
User-added image

How we could fix this issue?

 

VinayVinay (Salesforce Developers) 
Hi Vadym,

This error happens if your firewall doesn’t allow access to your server where the web service is hosted. Making the firewall changes should fix this issue and you need to whitelist salesforce instance IP addresses.

https://help.salesforce.com/articleView?id=000321501&type=1&mode=1

Thanks,