ORS - Optimization - Inconsistent amount/capacity lengths: 0 and 1

Using the /optimization endpoint when sending a request with ORS example on website I get a normal response.

However, when I request with the example_1.json provided by Vroom on Github repo, I get this:

{
“code”: 2,
“error”: “Inconsistent amount/capacity lengths: 0 and 1.”
}

When I do the same request do Vroom demo directly, it works fine. Why is that?

Thank you

That’d be an outdated Vroom version :innocent:

I’ll fix next week the latest. Thanks for the reminder.

1 Like

Thank you for the fast response.

Is there any way to check which versions is ORS using?

No unfortunately not. If all goes well, I can upgrade today, latest tmrw though.

@Patrone, vroom is now up-to-date on the latest version and the example works :champagne:

@nils, thank you for your fast support.

I tried the example and I get this (unless I specifically set “profile”: “driving-car”):

{
“code”: 2,
“error”: “Invalid profile: car.”
}

shouldn’t the default work fine?

Ah right, forgot to mention that. Good that you figured it out.

No, vroom was initially built to only work with OSRM, ORS was only added by us last year. So this is a remnant of backwards compatibility.

1 Like