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

Failsafe okhttp integration causes issues with BearerAuth and outdated tokens #383

Open
shauser opened this issue Jun 4, 2024 · 0 comments

Comments

@shauser
Copy link

shauser commented Jun 4, 2024

When using HttpBearerAuth with any type of expiring / non-reusable tokens the default setup as documented on https://failsafe.dev/okhttp/ causes issues: It can happen that a circuit breaker or retry policy causes enough delay for the token to expire.

It seems that the only way to address this right now is to check for status 401 and then re-create the call and executor, which causes the retry policy to be reset.

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