osrm-frontend icon indicating copy to clipboard operation
osrm-frontend copied to clipboard

Error on auto sending `hints=` from frontend to backend

Open mononobi opened this issue 3 years ago • 1 comments

Hi guys

I have deployed both osrm-backend and osrm-frontend instances via docker compose on a server. And everything works fine independently. I can make requests from postman to backend and get the route info. I can also open the frontend in the browser and see the map. But, the problem is, on every routing request which frontend makes to the backed, it appends a query string in the from of hints= and this particular query string makes the backend raise error. So, what is this hints= all about? and how can I disable the frontend from sending it to backed? because without this hints= everything works just fine.

This is the exact error response from the backend:

{ "message": "Number of elements in hints size 1 does not match coordinate size 2", "code": "InvalidOptions" }

Request url which is sent by frontend to backend:

http://localhost:5000/route/v1/driving/10.000654,53.550341;13.3888599,52.5170365?steps=true&hints=

Thanks in advance for your amazing work

Environment in use:

os: debian 11 map-area: europe osrm-backend: v5.26 osrm-frontend: latest map-layer: osm

mononobi avatar Feb 08 '22 18:02 mononobi

Same issue on my side... :/

xor22h avatar Feb 12 '23 10:02 xor22h