Below code was working fine few days back. Suddenly stopped working and throws error.
String endPoint = 'https://query.yahooapis.com/v1/public/yql?q=';
String queryUrl = 'select item.condition from weather.forecast where woeid in (select woeid from geo.places(1) where text=Bangalore) and u=c';
HttpRequest req = new HttpRequest();
Http httpProtocol = new Http();
req.setMethod('GET');
req.setEndpoint(endPoint + EncodingUtil.urlEncode(queryUrl, 'UTF-8'));
HttpResponse res = httpProtocol.send(req);
System.debug(res);
Getting callout exception:
System.CalloutException: Unable to tunnel through proxy. Proxy returns "HTTP/1.0 404 Not Found"
When I tried this in Chrome REST Client getting different error:
The requested URL can't be reached
The service's server DNS address could not be found.
Search Google for chrome network error 105
net::ERR_NAME_NOT_RESOLVED
https://query.yahooapis.com/v1/public/yql?q
. Am sure SF wont be able to reach as well