PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

No JSON object could be decoded PTC

Open Elim160 opened this issue 10 years ago • 5 comments

Expected Behavior

{ "auth_service": “ptc”, "username": “”, "password": “”, "location": “”, "gmapkey": "", "max_steps": 5, "mode": "all", "walk": 4.16, "debug": false, "test": false, "initial_transfer": 0, "location_cache": true, "distance_unit": "km", "item_filter": "101,102,103,104", "evolve_all": "NONE" }

Actual Behavior

File "pokecli.py", line 220, in main() File "pokecli.py", line 197, in main config = init_config() File "pokecli.py", line 64, in init_config load.update(json.load(data)) File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py", line 291, in load **kw) File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py", line 339, in loads return _default_decoder.decode(s) File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded (PokemonGo-Bot) Patricks-Air:PokemonGo-Bot Eli$

Steps to Reproduce

I Put my JSON File into http://jsonlint.com/ , and the error I got was

Error: Parse error on line 2: { "auth_service": “ptc”, "username": ------------------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'

Does PTC just not work? Will I need to make another account for this?

Thanks - Eli

Other Information

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

Elim160 avatar Aug 05 '16 22:08 Elim160

rtfm

brantje avatar Aug 05 '16 22:08 brantje

@brantje What do you mean?

Elim160 avatar Aug 05 '16 22:08 Elim160

Litterly copied from our README

Niantic Changes

Niantic have changed API responses, meaning that this bot and anything accessing the API though POGOProtos is currently broken. A number of developers from /r/pokemondev are working to address this and come up with a fix for this issue, find the current status here

brantje avatar Aug 05 '16 22:08 brantje

@brantje Oh, ok so it is broken for all the people with ptc? Or Broken for everybody?

Elim160 avatar Aug 05 '16 22:08 Elim160

Every single bot is broken

brantje avatar Aug 05 '16 22:08 brantje