-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"exclude must be a string." error using mbxDirections in mapbox-sdk-js 13.3 #446
Comments
https://github.com/mapbox/mapbox-sdk-js/blob/main/docs/services.md#getdirections exclude must be a string so instead of |
@andrewharvey I understand the change in the REST API. However, the mapbox-sdk still enforces |
mapbox-sdk-js/services/directions.js Line 82 in 890ac98
from what I can see in the code exclude is asserted as string and then passed as the request query param. |
This looks right, however, I just removed and re-added mapbox/mapbox-sdk via yarn and this is the library source code as I see it. Do you have any idea where this might come from? Maybe I'm using a different version of the sdk? |
That's typescript, it's not something maintained here, there was some talk in #213 |
Thanks for the reference. So it seems like |
Our team has been using
mbxDirections
to calculate road distance using Mapbox for ~2 months with the following configs.However, our API stopped working and started seeing
Error: exclude must be a string.
since 7/12/22.I tried updating to the latest (13.4) of the sdk, and the same issue still remains.
I tried removing the sdk and instead querying the endpoint directly with the following CURL and it works
I would like to confirm with mapbox that this is due to an API change that isn't being reflected in the sdk client. Thank you!
The text was updated successfully, but these errors were encountered: