On 17 of May 2018 we faced with error “Errno::ENETUNREACH: Failed to open TCP connection to nominatim.openstreetmap.org:80 (Network is unreachable - connect(2) for "nominatim.openstreetmap.org" port 80)” on our server. On the another server we didn’t have this error with the same request. Also we had received next responses before error: “ Apache/2.4.18 (Ubuntu) Server at nominatim.openstreetmap.org Port 80 </body></html> Geocoding API's response was not valid JSON: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body>Moved PermanentlyThe document has moved ” Now service works fine. Could you please tell us why we had this error? Were we blocked on osm by IP? asked 22 May '18, 13:27 vitalyvi |
I just tried visiting http://nominatim.openstreetmap.org and it redirected to https, and the example links on the nominatim wiki page were updated from http to https in January, so it might be you need to update your calls to use https answered 22 May '18, 15:38 EdLoach ♦ 1
That's correct. Starting May/11th the nominatim.osm.org server(s) redirect http to https.
(22 May '18, 20:37)
mtmail
|