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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalStateException: MapboxNavigationAccounts: skuToken cannot be null or empty #2424

Closed
Guardiola31337 opened this issue Jan 24, 2020 · 1 comment
Labels
bug Defect to be fixed.
Milestone

Comments

@Guardiola31337
Copy link
Contributor

Found a 馃挜 during testing #2410

01-24 07:47:48.637 16782-16866/com.mapbox.navigation.examples E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
    Process: com.mapbox.navigation.examples, PID: 16782
    java.lang.IllegalStateException: MapboxNavigationAccounts: skuToken cannot be null or empty
        at com.mapbox.navigation.core.accounts.MapboxNavigationAccounts.obtainSkuToken(MapboxNavigationAccounts.kt:51)
        at com.mapbox.navigation.route.offboard.RouteBuilderProvider$getBuilder$1.intercept(RouteBuilderProvider.kt:37)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
        at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:229)
        at okhttp3.RealCall$AsyncCall.execute(RealCall.java:172)
        at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at java.lang.Thread.run(Thread.java:818)

As mentioned in #2410 (review) it's probably an issue downstream in mapboxAndroidAccounts library caused by using an API that is not available in older devices as I'm getting an empty string from

and only when running in a Nexus 5 Android 6.0.1 but not when running in a Pixel 3 Android 9.

There's a new mapbox-android-accounts version available that updates the codebase to be AndroidX compatible, we should update mapbox-navigation-accounts-android and see if that solves the issue.

cc @abhishek1508 @mapbox/navigation-android

@Guardiola31337 Guardiola31337 added the bug Defect to be fixed. label Jan 24, 2020
@Guardiola31337 Guardiola31337 added this to the v1.0.0 milestone Jan 24, 2020
@zugaldia
Copy link
Member

Capturing chat - this is possibly similar to mapbox/mapbox-gl-native-android#145.

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

No branches or pull requests

3 participants