Skip to content
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

Getting Error: Refused to schedule onboard router request as pending request with id 1 has already finished #7871

Open
pankitmistry6503 opened this issue Sep 24, 2024 · 0 comments

Comments

@pankitmistry6503
Copy link

pankitmistry6503 commented Sep 24, 2024

Hi ,

I am creating an app where user can configure locations for routes and I use mapbox to draw optimized routes based on the user's selected locations.
So initially when the app launched, I have some dummy locations which I optimize for shorted route using MapboxOptimizationAPI. Then after I show that route on map.
This works fine. But I have strange problem. After initially route has been decided, if I want to add new location to existing route and then re-ask Mapbox to provide route in this case I am getting "Refused to schedule onboard router request as pending request with id 1 has already finished" error and always timeout.

However, if i do not initiate route request to mapbox initially(when app launched), and in this case if I add /update/delete locations and re-ask mapbox to provide me route then it works fine.
I am not sure what is happening as both request are just same only one extra location.

Initial Request: https://api.mapbox.com/directions/v5/mapbox/driving/72.5088127,23.0277154;72.528799,23.038374;72.563378,23.042054;72.56928,23.04024;72.571362,23.022505;72.601948,23.003785?access_token=****Ad_Q&geometries=polyline6&alternatives=true&overview=full&steps=true&layers=0%3B%3B%3B%3B%3B&continue_straight=true&annotations=congestion_numeric%2Cmaxspeed%2Cclosure%2Cspeed%2Cduration%2Cdistance&language=en&roundabout_exits=true&voice_instructions=true&banner_i...

After adding new location Request: https://api.mapbox.com/directions/v5/mapbox/driving/72.5088127,23.0277154;72.528799,23.038374;72.563378,23.042054;72.56928,23.04024;72.571362,23.022505;72.601948,23.003785;72.5590226,23.0762103?access_token=****Ad_Q&geometries=polyline6&alternatives=true&overview=full&steps=true&layers=%3B%3B%3B%3B%3B%3B&continue_straight=true&annotations=congestion_numeric%2Cmaxspeed%2Cclosure%2Cspeed%2Cduration%2Cdistance&language=en&roundabout_exits=true&voice_instru...

I have attached my Activity file for your reference.

Please suggest me what I am doing wrong.

I have already opened ticket on Mapbox Support Center(https://support.mapbox.com/hc/en-us/requests/160654), but i haven't received any response on it.
I have a subscription plan purchased and still not received any response since last 13 days so i am creating an issue on Github.

Android API:
Mapbox Navigation SDK version: : 3.2.0-rc.1

Steps to trigger behavior

Description has all details for triggering

  1. Request route multiple times

RoutePreviewActivity.txt

Expected behavior

  1. It should provide route information on Turn by Turn Navigation.

Actual behavior

Getting Error: Refused to schedule onboard router request as pending request with id 1 has already finished

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant