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
_LSDsl__LSDsl_ 

java.net.NoRouteToHostException: No route to host

Tried to use PageReference to external web site and got this error-java.net.NoRouteToHostException: No route to host. Where is problem?
ArtabusArtabus
I am facing the same issue, did you succeed ? How ?
fgwarb_devfgwarb_dev

Same here...Any help?

 

Going through a salesforce site as well....

 

PageReference pr = new PageReference('http://ourcompany.force.com/vfPage?id={actId}');

Jia HuJia Hu
I have the same case, any advice?
empucempuc

Guys, in all your cases you should add the site address to REMOTE SITE settings in Salesforce. Then the problem should dissapear.

 

Even if it sounds dummy for some of you, it helps.

 

Moreover in some cases you should also DISABLE PROTOCOL SECURITY.

 

Hopefully it solves your problems.

Esteban HerreraEsteban Herrera
You must verify the firewall rules on the server where the external website was deployed.