itinero / routing-api

An API based on Itinero.
MIT License
13 stars 16 forks source link

Error 500 (Nancy) #11

Closed jbelien closed 7 years ago

jbelien commented 7 years ago

If I use the example http://localhost:5000/belgium, everything seems to work as expected : I can click 2 points in the map and the route is calculated between those 2 points.

But if I request the API (in my browser) by going to http://localhost:5000/belgium/routing?profile=car&loc=51.218927,2.905884&loc=49.676515,5.814514 I have an error 500 from Nancy.

image

When I make the same request with cURL it does work though ...

Any idea ? Thanks !

jbelien commented 7 years ago

Related to #2 !

Just need to add Accept: application/json in the request header.

mhosman commented 7 years ago

Here the same problem. Not solved with Accept: application/json.

jbelien commented 7 years ago

@mhosman Could you give more information about your issue ? Adding Accept: application/json in the request header fixes the problem.

Could you try the same request with cURL ?

xivk commented 7 years ago

@mhosman Are you sure the routerdb loaded properly? Can you post the console log output?