mapbox / mapbox/mapbox-navigation-android
Getting Error: Refused to schedule onboard router request as pending request with id 1 has already finished
Nessuno ha ancora preso questa issue.
- Lingua principale
- Kotlin
- Stelle
- 651
- Fork
- 321
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
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
- Request route multiple times
Expected behavior
- 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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con il file allegato RoutePreviewActivity.txt e riproduci la richiesta di percorso iniziale, seguita da una richiesta dopo l'aggiunta di una posizione, utilizzando Mapbox Navigation SDK 3.2.0-rc.1. Confronta il ciclo di vita della richiesta e i log per i due casi; il lavoro è completato quando la richiesta ripetuta non va più in timeout e restituisce informazioni sul percorso.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- android, kotlin
- Ambito
- mobile-dev
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 28/100