mapbox / dash-android-examples

Other
6 stars 1 forks source link

MapGpt not available, prompts:The connection is lost,We're trying to reconnect #31

Open CarpOrange opened 7 months ago

CarpOrange commented 7 months ago

I'm an Android Development Engineer at Cerence, I'm investigating mapbox's mapgpt functionality, but I'm having some problems with the integration process, I followed the documentation: https://docs.mapbox.com/android/navigation/build-with- uxframework/installation/ and https://docs.mapbox.com/android/navigation/mapgpt/get-started/ , used the public token under cerenceridetest of our company account for the Dash is initialized, but the mapgpt page of demo app always prompts The connection is lost,We're trying to reconnect. Here are the logcat logs of dash-android-examples: [Uploading mapboxlog.txt…]()

image image (1)

zhangfan321 commented 7 months ago

I have a question. I've already applied for the corresponding private key and public key and configured them in the code when using this example. However, why am I still getting an error when running it? The error message is: Caused by: org.gradle.internal.resource.transport.http.HttpErrorStatusCodeException: Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/navigationux/search-api/1.0.0-beta.27/search-api-1.0.0-beta.27.pom'. Received status code 401 from server: Unauthorized. Do I need to apply for any special permissions in a specific location to run this example? Thank you.

CarpOrange commented 7 months ago

I have a question. I've already applied for the corresponding private key and public key and configured them in the code when using this example. However, why am I still getting an error when running it? The error message is: Caused by: org.gradle.internal.resource.transport.http.HttpErrorStatusCodeException: Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/navigationux/search-api/1.0.0-beta.27/search-api-1.0.0-beta.27.pom'. Received status code 401 from server: Unauthorized. Do I need to apply for any special permissions in a specific location to run this example? Thank you.

You need to confirm your private token checked the DOWNLOAD:READ permission,and configed every where needed.If you have done that, If you've already done it, then I don't know, you need to consult MapBox.