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

VIT-7518: Exceptions thrown from OkHttp interceptor must be okio.IOException to be deemed recoverable #166

Conversation

andersio
Copy link
Contributor

@andersio andersio commented Sep 25, 2024

OkHttp deems all exceptions except okio.IOException to be "unexpected error" and subsequently crashes the app process.

This means within OkHttp request interceptors, application errors we introduced — e.g.VitalJWTError — must be wrapped in a okio.IOException subclass to be treated as recoverable soft error, and avoid causing a process crash.


Also fix the settings screen for not populating the current SDK user ID.

Copy link

linear bot commented Sep 25, 2024

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @andersio and the rest of your teammates on Graphite Graphite

@andersio andersio requested a review from ItachiEU September 25, 2024 17:29
@ItachiEU ItachiEU merged commit 3c3ad62 into main Sep 26, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants