question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MsalExceptionAdapter.java line 64

See original GitHub issue

Describe the bug Hi,

we’re getting crashes from this error within MSAL. I remember we had to deal with something similar handling the token expired error a while ago by calling the interactive acquire token. But as this one is within the library itself, it’s out of our reach.

Smartphone (please complete the following information):

  • Device: Moto Z (2) Play
  • Android Version: 8
  • MSAL Version: 1.5.4

Stacktrace

Fatal Exception: com.microsoft.identity.client.exception.MsalUiRequiredException: AADB2C90080: The provided grant has expired. Please re-authenticate and try again. Current time: 1604921912, Grant issued time: 1604684246, Grant expiration time: 1604770646
Correlation ID: *******-*******-*******-*******-*******
Timestamp: 2020-11-09 11:38:32Z

       at com.microsoft.identity.client.internal.controllers.MsalExceptionAdapter.msalExceptionFromBaseException(MsalExceptionAdapter.java:64)
       at com.microsoft.identity.client.PublicClientApplication$16.onError(PublicClientApplication.java:1673)
       at com.microsoft.identity.client.PublicClientApplication$16.onError(PublicClientApplication.java:1664)
       at com.microsoft.identity.common.internal.controllers.CommandDispatcher$3.run(CommandDispatcher.java:209)
       at android.os.Handler.handleCallback(Handler.java:789)
       at android.os.Handler.dispatchMessage(Handler.java:98)
       at android.os.Looper.loop(Looper.java:164)
       at android.app.ActivityThread.main(ActivityThread.java:6592)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:769)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
xyzwilliamxyzcommented, Nov 17, 2020

maybe it was a false positive from our crashlytics platform such as https://github.com/AzureAD/microsoft-authentication-library-for-android/issues/1200. We’ll watch it closely to see if the error show up again.

0reactions
xyzwilliamxyzcommented, Dec 14, 2020

@iambmelt I see. So the log actually just indicates that a backend service is failing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MsalExceptionAdapter Class - Microsoft Learn
In this article · java.lang.Object · com.microsoft.identity.client.internal.controllers.MsalExceptionAdapter.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found