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

fix an infinite loop when the token dispenser is having issues #250

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dilinger
Copy link

@dilinger dilinger commented Apr 3, 2020

When searching or downloading apks, gplaycli will happily keeping to
get a token over and over from the token dispenser. If the token
dispenser spits out tokens but google doesn't like them, it will
create an infinite loop.

This breaks out of that loop after 5 attempts, and also suggest to
the user that they try using their own credentials. I'd like to
point them to a manpage or README with instructions, but we're
not there yet.

When searching or downloading apks, gplaycli will happily keeping to
get a token over and over from the token dispenser. If the token
dispenser spits out tokens but google doesn't like them, it will
create an infinite loop.

This breaks out of that loop after 5 attempts, and also suggest to
the user that they try using their own credentials. I'd like to
point them to a manpage or README with instructions, but we're
not there yet.
@eighthave
Copy link

As a user, this would be great to have! Maybe it should be enabled using a option flag? Make the default be the current behavior, then it would be something like --token-retries=5

@fontanon
Copy link

Worked for me !

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.

3 participants