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

SessionInfoManager.save method throws java.lang.IllegalArgumentException #124

Open
ziem opened this issue Dec 11, 2024 · 0 comments
Open

Comments

@ziem
Copy link

ziem commented Dec 11, 2024

Hi!
One of my colleagues discovered this issue in our Crashlytics. Here is the full stacktrace:

Fatal Exception: java.lang.IllegalArgumentException: Unknown URL content://se.svd.start.contentprovider/sessions
at android.content.ContentResolver.insert(ContentResolver.java:2205)
at android.content.ContentResolver.insert(ContentResolver.java:2171)
at com.schibsted.account.webflows.loginPrompt.SessionInfoManager.save(SessionInfoManager.kt:19)
at com.schibsted.account.webflows.persistence.SharedPrefsStorage.save(SessionStorage.kt:154)
at com.schibsted.account.webflows.persistence.MigratingSessionStorage.save(SessionStorage.kt:37)
at com.schibsted.account.webflows.client.Client.refreshTokensForUser$webflows_release(Client.kt:323)
at com.schibsted.account.webflows.user.User$1.invoke(User.kt:68)
at com.schibsted.account.webflows.user.User$1.invoke(User.kt:67)
at com.schibsted.account.webflows.util.BestEffortRunOnceTask.run(BestEffortRunOnceTask.kt:32)
at com.schibsted.account.webflows.user.User.refreshTokens$webflows_release(User.kt:194)
at com.schibsted.account.webflows.user.AccessTokenAuthenticator.authenticate(AuthenticatedRequests.kt:34)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.followUpRequest(RetryAndFollowUpInterceptor.kt:223)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:108)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at com.schibsted.account.webflows.api.SDKUserAgentHeaderInterceptor.intercept(SDKUserAgentHeaderInterceptor.kt:16)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at com.schibsted.account.webflows.user.AuthenticatedRequestInterceptor.intercept(AuthenticatedRequests.kt:17)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
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)

It looks like it occurs during the refreshing of cookies:

WebFlowsWebAuthenticator: Attempting to authenticate one time session URL for url: https://www.svd.se/app-login
WebFlowsWebAuthenticator: CookieBakery shouldRefreshCookies for url https://www.svd.se/app-login: true

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