I’m experiencing the dreaded 502 error and I have not been able to get past it regardless of the number of locations. Tried it at all hours of the day in case there was a server overload. Even tried it using the openroute API playground, and get another type of error. I know the key is good, as I’ve been able to use it to do different things.
I’m completely out of ideas.
Here’s the curl post and the response.
curl -X POST ‘https://api.openrouteservice.org/v2/isochrones/driving-car’ -H ‘Content-Type: application/json; charset=utf-8’ -H ‘Accept: application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8’ -H 'Authorization: ’ -d ‘{“locations”:[[-96.2611607,38.979813],[-100.112218,39.3742674]],“range”:[300,260],“interval”:10,“range_type”:“distance”,“area_units”:“mi”,“units”:“mi”}’
502 Proxy ErrorProxy Error
The proxy server received an invalid
response from an upstream server.
The proxy server could not handle the request
Reason: Error reading from remote server
Here’s the playground api request and it’s return.
curl -X POST \
'https://api.openrouteservice.org/v2/isochrones/driving-car' \
-H 'Content-Type: application/json; charset=utf-8' \
-H 'Accept: application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8' \
-H 'Authorization: ' \
-d '{"locations":[[-96.2611607,38.979813],[-100.112218,39.3742674]],"range":[300,200],"interval":10,"range_type":"distance","area_units":"mi","units":"mi"}'
Invalid API key or access to this API has been disallowed