PokemonGo-Bot: TypeError: None has type , but expected one of: (, )

Expected Behavior

Bot will continue to run correctly.

Actual Behavior

After about an hour or so I get get the following error which causes the bot to crash:

Traceback (most recent call last):
  File "pokecli.py", line 501, in <module>
    main()
  File "pokecli.py", line 132, in main
    raise e
TypeError: None has type <type 'NoneType'>, but expected one of: (<type 'str'>, <type 'unicode'>)

Steps to Reproduce

Let the bot run between 1-2 hours.

Other Information

OS: macOS El Cap 10.11.6 Git Commit: eeecbc6c48d292fc916e4830fba1df290adb6ec4 Python Version: Python 2.7.10

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 23 (1 by maintainers)

Commits related to this issue

Most upvoted comments

Same issue. Commit: 6960f356a8d841cefbfd1018b23877b73a6a0d12 Python: 2.7.12 Ubuntu 16.04

I don’t believe the next commit affects this issue.

Edit: If it is of any help, this happens only my google login bot, but not the ptc one. Same config on both other than the login details.

And its always 1 hour 0 minutes and some seconds. Have seen this happen 3 times while ptc one was running. Both were started at the same time

@15calderm pip uninstall pgoapi && pip install -e git+https://github.com/keyphact/pgoapi.git#egg=pgoapi

@mrthrowaway same exact thing happens to me. I have have 2 bots running and the PTC one runs just fine while the Google one crashes after exactly an hour and I started both at the exact same time.