[openstreetmap/openstreetmap-website] Directions error: router.project-osrm.org returns 504 (#1263)
Mikkel Kirkgaard Nielsen
notifications at github.com
Mon Aug 8 16:06:06 UTC 2016
The directions functionality on the main map is broken.
Inputting a starting (Esbjerg, Denmark) and destination (Copenhagen, Denmark) point will load http://www.openstreetmap.org/directions?engine=osrm_car&route=55.466%2C8.452%3B55.687%2C12.570 which result in a routing error: "Couldn't find a route between those two places." message, and in the browser console I see a error;
Firefox 47.0 (Ubuntu 15.10):
> 17:34:47.325 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://router.project-osrm.org/route/v1/driving/8.452,55.466;12.57,55.687?overview=false&geometries=polyline&steps=true. (Reason: CORS header 'Access-Control-Allow-Origin' missing).1 (unknown)
Chromium 51.0.2704.79 (Ubuntu 15.10):
> http://router.project-osrm.org/route/v1/driving/8.452,55.466;12.57,55.687?overview=false&geometries=polyline&steps=true Failed to load resource: the server responded with a status of 504 (GATEWAY_TIMEOUT)
> XMLHttpRequest cannot load http://router.project-osrm.org/route/v1/driving/8.452,55.466;12.57,55.687?overview=false&geometries=polyline&steps=true. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.openstreetmap.org' is therefore not allowed access. The response had HTTP status code 504.
Internet Explorer 11.0.9600.18376 (Windows Server 2008 R2 Standard)
>SEC7120: Origin http://www.openstreetmap.org not found in Access-Control-Allow-Origin header.
>File: directions
>SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.
>File: directions
A manual request however shows, as Chromium is aware, that the router.project-osrm.org API returns status code 504:
> $ wget -S -O- "http://router.project-osrm.org/route/v1/driving/8.452,55.466;12.57,55.687?overview=false&geometries=polyline&steps=true"
--2016-08-08 17:52:51-- http://router.project-osrm.org/route/v1/driving/8.452,55.466;12.57,55.687?overview=false&geometries=polyline&steps=true
Resolving router.project-osrm.org (router.project-osrm.org)... 52.21.213.38
Connecting to router.project-osrm.org (router.project-osrm.org)|52.21.213.38|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 504 GATEWAY_TIMEOUT
Date: Mon, 08 Aug 2016 15:53:06 GMT
Server: nginx/1.4.6 (Ubuntu)
Content-Length: 0
Connection: keep-alive
Retrying.
....
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1263
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20160808/7fa0776d/attachment.html>
More information about the rails-dev
mailing list