willmorejg / lrm-openrouteservice

Leaflet Routing Machine - OpenRoute Service extension
Apache License 2.0
18 stars 16 forks source link

Routing Error shown but requeest done successfully #3

Open ThomasDaheim opened 6 years ago

ThomasDaheim commented 6 years ago

Hi,

after including the three required js files from the first issue I'm running into the following issue:

I'm calling openroute with the following parameters:

api_key: MY API KEY
coordinates: 7.525634765625001,51.93071827931289|8.613281250000002,52.77618568896171|9.030761718750002,52.61639023304539|9.25323452800512,52.2344968188554|9.799804687500002,51.48822432632349|10.2820713166147,52.3361206054688|10.9871744457632,52.2615397721529|11.3787116669118,52.1878051757813|11.585083007812502,52.68304276227743|11.9270318001509,52.2344970703125|12.2231248766184,52.2509765625|12.5491333007813,52.4102783203125|13.0599975585938,52.4020385742188
geometry_format: geojson
instructions: true
instructions_format: text
preference: recommended
profile: driving-car
units: m

I get a "Routing error" with following details:

message: "HTTP request failed: [object XMLHttpRequestProgressEvent]"
status: -1

Interestingly, the developer statistics @openrouteservice shows 1 successful token usage for this call.

Not sure what to do here? Any idea on where I could start digging deeper?

ThomasDaheim commented 6 years ago

Some more info:

https://api.openrouteservice.org/directions?coordinates=7.525634765625001%2C51.93071827931289%7C8.613281250000002%2C52.77618568896171%7C9.030761718750002%2C52.61639023304539%7C9.25323452800512%2C52.2344968188554%7C9.799804687500002%2C51.48822432632349%7C10.2820713166147%2C52.3361206054688%7C10.9871744457632%2C52.2615397721529%7C11.3787116669118%2C52.1878051757813%7C11.585083007812502%2C52.68304276227743%7C11.9270318001509%2C52.2344970703125%7C12.2231248766184%2C52.2509765625%7C12.5491333007813%2C52.4102783203125%7C13.0599975585938%2C52.4020385742188&instructions=true&instructions_format=text&geometry_format=geojson&preference=recommended&units=m&profile=driving-car&api_key=MY_API_KEY