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

AndroidPlatformUtil.java line 125 in com.microsoft.identity.common.internal.platform.AndroidPlatformUtil.throwIfNetworkNotAvailable #2225

Open
LeandroVaz10ABI opened this issue Nov 26, 2024 · 0 comments

Comments

@LeandroVaz10ABI
Copy link

Describe the bug
Users in production have been facing this issue when the refresh token is required, We couldn't reproduce this problem in DEV environment.

Smartphone (please complete the following information):
Device: several devices
Android Version: >= 7
Browser: N/A
MSAL Version: 5.1.0 - 5.7.0

Stacktrace
com.microsoft.identity.common.java.exception.ClientException: Connection is not available to refresh token
at com.microsoft.identity.common.internal.platform.AndroidPlatformUtil.throwIfNetworkNotAvailable() (AndroidPlatformUtil.java:125)
at com.microsoft.identity.common.java.controllers.BaseController.performSilentTokenRequest()(BaseController.java:831)
at com.microsoft.identity.common.java.controllers.BaseController.renewAccessToken()(BaseController.java:479)
at com.microsoft.identity.common.internal.controllers.LocalMSALController.renewAT()(LocalMSALController.java:465)
at com.microsoft.identity.common.internal.controllers.LocalMSALController.acquireTokenSilent()(LocalMSALController.java:383)
at com.microsoft.identity.common.java.commands.SilentTokenCommand.execute()(SilentTokenCommand.java:88)
at com.microsoft.identity.common.java.commands.SilentTokenCommand.execute()(SilentTokenCommand.java:48)
at com.microsoft.identity.common.java.controllers.CommandDispatcher.executeCommand()(CommandDispatcher.java:542)
at com.microsoft.identity.common.java.controllers.CommandDispatcher.access$100()(CommandDispatcher.java:101)
at com.microsoft.identity.common.java.controllers.CommandDispatcher$1.run()(CommandDispatcher.java:367)
at io.opentelemetry.context.Context.lambda$wrap$1()(Context.java:212)
at io.opentelemetry.context.Context.$r8$lambda$KbuEVNhsKbIcVJ9dNjuqp8ryj6c()(Context.java:0)
at io.opentelemetry.context.Context$$ExternalSyntheticLambda5.run()(Context.java:0)
at java.util.concurrent.ThreadPoolExecutor.runWorker()(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run()(ThreadPoolExecutor.java:644)
at java.lang.Thread.run()(Thread.java:1012)

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