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

Better Error Messages (Token Dispenser) #258

Open
5 tasks
ossie-git opened this issue Apr 28, 2020 · 0 comments
Open
5 tasks

Better Error Messages (Token Dispenser) #258

ossie-git opened this issue Apr 28, 2020 · 0 comments
Assignees

Comments

@ossie-git
Copy link

Please provide those informations:

  • Operating System

Ubuntu 18.04

  • Python version when running gplaycli (should be 3+)

Python 3.6.9

  • GPlayCli version via gplaycli -v

3.29

  • The way you installed gplaycli: git clone, git clone and setup.py, pip install gplaycli, apt install gplaycli, ...

pip3 install gplaycli

  • The authentication method: (own) credentials or (own) token.

Token Dispenser

Issue

I just tried to use gplaycli and received the following error:

$ gplaycli -s game
[WARNING] No configuration file gplaycli.conf found at ['/tmp', '/home/ubuntu/.local/etc/gplaycli', '/home/ubuntu/Development/Python/Environments/generic_python36/local/etc/gplaycli', '/etc/gplaycli'], using default values
[Errno 2] No such file or directory: 'token.cache'
[ERROR] Cannot retrieve email address from token dispenser
Traceback (most recent call last):
  File "/home/ubuntu/Development/Python/Environments/generic_python36/bin/gplaycli", line 11, in <module>
    sys.exit(main())
  File "/home/ubuntu/Development/Python/Environments/generic_python36/lib/python3.6/site-packages/gplaycli/gplaycli.py", line 651, in main
    cli.search(args.search, not args.paid)
  File "/home/ubuntu/Development/Python/Environments/generic_python36/lib/python3.6/site-packages/gplaycli/hooks.py", line 8, in check_connection
    ok, err = self.connect()
  File "/home/ubuntu/Development/Python/Environments/generic_python36/lib/python3.6/site-packages/gplaycli/gplaycli.py", line 412, in connect
    self.retrieve_token()
  File "/home/ubuntu/Development/Python/Environments/generic_python36/lib/python3.6/site-packages/gplaycli/gplaycli.py", line 193, in retrieve_token
    raise ERRORS.TOKEN_DISPENSER_SERVER_ERROR
TypeError: exceptions must derive from BaseException

After some searching, I found the following explanation: https://github.com/matlink/gplaycli#token

I think it would be better if the error message including a link to the issue (or at least the GitHub page)

@matlink matlink self-assigned this May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants