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

Crash after running a while #3624

Closed
pranavperfect opened this issue Aug 11, 2016 · 1 comment
Closed

Crash after running a while #3624

pranavperfect opened this issue Aug 11, 2016 · 1 comment

Comments

@pranavperfect
Copy link

pranavperfect commented Aug 11, 2016

Stop! Before you create this issue (you can delete this section when opening the issue):

  1. Have you validated that your config.json is valid JSON? Use http://jsonlint.com/ to check.
  2. Have you searched to see if there are other issues for the same issue? If so, comment on that issue instead.
  3. Are you running master? We work on the dev branch and then add that functionality to master. Your issue may be fixed on dev and there is no need for this issue, just wait and it will eventually be merged to master.

Expected Behavior

run

Actual Behavior

crash

Your config.json (remove your credentials and any other private info)

your config here

Steps to Reproduce

let run for a while

Other Information

OS:
Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)
Python Version: (run 'python -V' and paste it here)

Error displayed:

Traceback (most recent call last):
  File "pokecli.py", line 521, in <module>
    main()
  File "pokecli.py", line 95, in main
    bot.tick()
  File "/mnt/c/Users/prana/Desktop/Bot/Updated/pokemongo_bot/__init__.py", line 453, in tick
    if worker.work() == WorkerResult.RUNNING:
  File "/mnt/c/Users/prana/Desktop/Bot/Updated/pokemongo_bot/cell_workers/recycle_items.py", line 41, in work
    item_count_dict = self.bot.item_inventory_count('all')
  File "/mnt/c/Users/prana/Desktop/Bot/Updated/pokemongo_bot/__init__.py", line 815, in item_inventory_count
    'GET_INVENTORY']['inventory_delta']['inventory_items']
TypeError: string indices must be integers, not unicode
@jrjhealey
Copy link

You need to give us way, way more information than this.

Are you on dev or master? What OS? What commit? Please edit the OP or we'll just shut it.

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

3 participants