tejado / pgoapi

Pokemon Go API lib
Other
1.4k stars 445 forks source link

Python-Problem #6

Closed sadbillo closed 8 years ago

sadbillo commented 8 years ago

Hi, i get the following Error-Message - How can i fix it?

$ sudo python main.py -u billo@email.com -p xxxxxxxxx -l Brunswick
[!] Your given location: Brunswick, Germany
[!] lat/long/alt: 52.2688736 10.5267696 0.0
[!] login for: billo@email.com
Traceback (most recent call last):
  File "main.py", line 194, in <module>
    main()
  File "main.py", line 167, in main
    print('[+] RPC Session Token: {} ...'.format(access_token[:25]))
TypeError: 'bool' object has no attribute '__getitem__'

Python-Version: 2.7.10

tejado commented 8 years ago

Oh thanks for this, forgot to adjust the error handling there. Seems your username/password are not correct. I will upload a fix and then an you can have a look on the server errors at this step with the -d/--debug argument.

sadbillo commented 8 years ago

Thanks for ur Help & Program! 👍

tejado commented 8 years ago

Your welcome! Fix is now in the repo.