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

Feature/validate token #65

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mudar
Copy link

@mudar mudar commented Feb 8, 2021

Hi,
This PR is related to the enhancement feature I suggested in issue #64. I tried to add the CLI implementation too, but I'm not quite sure about the quality of my code there 😜
The last commit fixes a strange issue I ran into, where the RateLimitInterceptor seems to leave the okhttpClient hanging once it throws a dns exception.
cheers,
mudar

mudar added 3 commits February 8, 2021 14:51
Send request to a non-existing endpoint to validate token based on error
type.
Return original response when RATE_LIMIT is not provided.
Using default empty value for Thread.sleep(0) seems to create an issue
for the okhttpClient: after hitting a first UnknownHostException (ex:
airplane mode), following calls after restoring network connection will
hang, returning no response
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.

1 participant