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

Something error from Traceback #4011

Closed
titellergetlinks opened this issue Aug 15, 2016 · 3 comments
Closed

Something error from Traceback #4011

titellergetlinks opened this issue Aug 15, 2016 · 3 comments

Comments

@titellergetlinks
Copy link

titellergetlinks commented Aug 15, 2016

After i run ./run.sh (this working) and Login successful.
and then something error and log show this message
(before this config is working and running)

Expected Behavior

2016-08-16 00:28:01,725 [       cli] [INFO] 
2016-08-16 00:28:01,725 [       cli] [INFO] Ran for 0:00:07
2016-08-16 00:28:01,726 [       cli] [INFO] Total XP Earned: 0  Average: 0.00/h
2016-08-16 00:28:01,726 [       cli] [INFO] Travelled 0.00km
2016-08-16 00:28:01,726 [       cli] [INFO] Visited 0 stops
2016-08-16 00:28:01,726 [       cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before
2016-08-16 00:28:01,726 [       cli] [INFO] Threw 0 pokeballs
2016-08-16 00:28:01,727 [       cli] [INFO] Earned 0 Stardust
2016-08-16 00:28:01,727 [       cli] [INFO] 
2016-08-16 00:28:01,727 [       cli] [INFO] Highest CP Pokemon: 
2016-08-16 00:28:01,727 [       cli] [INFO] Most Perfect Pokemon: 
Traceback (most recent call last):
  File "pokecli.py", line 595, in <module>
    main()
  File "pokecli.py", line 90, in main
    bot.start()
  File "/Users/kittipiyapan/Downloads/PokemonGo-Bot/pokemongo_bot/__init__.py", line 87, in start
    self._load_recent_forts()
  File "/Users/kittipiyapan/Downloads/PokemonGo-Bot/pokemongo_bot/__init__.py", line 1121, in _load_recent_forts
    cached_recent_forts = json.load(f)
  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
2016-08-16 00:28:01,758 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
  File "/Users/kittipiyapan/Downloads/PokemonGo-Bot/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
    super(ThreadedHTTPTransport, self).send(data, headers)
  File "/Users/kittipiyapan/Downloads/PokemonGo-Bot/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
    ca_certs=self.ca_certs,
  File "/Users/kittipiyapan/Downloads/PokemonGo-Bot/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
    return opener.open(url, data, timeout)
  File "/Users/kittipiyapan/Downloads/PokemonGo-Bot/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
    response = self._open(req, data)
  File "/Users/kittipiyapan/Downloads/PokemonGo-Bot/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
    '_open', req)
  File "/Users/kittipiyapan/Downloads/PokemonGo-Bot/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
    result = func(*args)
  File "/Users/kittipiyapan/Downloads/PokemonGo-Bot/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
    return self.do_open(ValidHTTPSConnection, req)
  File "/Users/kittipiyapan/Downloads/PokemonGo-Bot/lib/python2.7/site-packages/future/backports/urllib/request.py", line 1284, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1057, in request
    self._send_request(method, url, body, headers)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1097, in _send_request
    self.endheaders(body)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1053, in endheaders
    self._send_output(message_body)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 895, in _send_output
    msg += message_body

UnicodeDecodeError

UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-15 23:46:40,490 [sentry.errors.uncaught] [ERROR] [u'ValueError: No JSON object could be decoded', u'  File "pokecli.py", line 595, in <module>', u'  File "pokecli.py", line 90, in main', u'  File "pokemongo_bot/__init__.py", line 87, in start', u'  File "pokemongo_bot/__init__.py", line 1121, in _load_recent_forts', u'  File "json/__init__.py", line 291, in load', u'  File "json/__init__.py", line 339, in loads', u'  File "json/decoder.py", line 364, in decode', u'  File "json/decoder.py", line 382, in raw_decode']

Other Information

OS: OSX 10.10.5
Git Commit: 98e1714
Python Version: Python 2.7.12

@smfbrooks
Copy link

I believe this issue has been posted about 100 times. Could you do a search?

@titellergetlinks
Copy link
Author

titellergetlinks commented Aug 15, 2016

I don't know how to fix that and not found that solution

I try to copy json format from config.json.example to config.json and just change username,password,location,gmapkey
but log error is same that

{
  "auth_service": "google",
  "username": "xxxx",
  "password": "xxxx",
  "location": "xxxx",
  "gmapkey": "xxxx",
  "encrypt_location": "",
  "tasks": [
    {
      "type": "HandleSoftBan"
    },
    {
      "type": "SleepSchedule",
      "config": {
        "enabled": false,
        "time": "22:54",
        "duration":"7:46",
        "time_random_offset": "00:24",
        "duration_random_offset": "00:43"
      }
    },
    {
      "type": "CollectLevelUpReward"
    },
    {
      "type": "IncubateEggs",
      "config": {
        "longer_eggs_first": true
      }
    },
    {
      "type": "UpdateLiveStats",
      "config": {
        "enabled": false,
        "min_interval": 10,
        "stats": ["username", "uptime", "stardust_earned", "xp_earned", "xp_per_hour", "stops_visited"],
        "terminal_log": true,
        "terminal_title": true
      }
    },
    {
      "type": "TransferPokemon"
    },
    {
      "type": "NicknamePokemon",
      "config": {
        "enabled": false,
        "nickname_template": "{iv_pct}_{iv_ads}"
      }
    },
    {
      "type": "EvolvePokemon",
      "config": {
        "evolve_all": "none",
        "first_evolve_by": "cp",
        "evolve_above_cp": 500,
        "evolve_above_iv": 0.8,
        "logic": "or",
        "evolve_speed": 20,
        "use_lucky_egg": false
      }
    },
    {
      "type": "RecycleItems",
      "config": {
        "min_empty_space": 15,
        "max_balls_keep": 150,
        "max_potions_keep": 50,
        "max_berries_keep": 70,
        "max_revives_keep": 70,
        "item_filter": {
          "Pokeball":       { "keep" : 100 },
          "Potion":         { "keep" : 10 },
          "Super Potion":   { "keep" : 20 },
          "Hyper Potion":   { "keep" : 30 },
          "Revive":         { "keep" : 30 },
          "Razz Berry":     { "keep" : 100 }
        }
      }
    },
    {
      "type": "CatchVisiblePokemon"
    },
    {
      "type": "CatchLuredPokemon"
    },
    {
      "type": "SpinFort"
    },
    {
      "type": "MoveToFort",
      "config": {
        "lure_attraction": true,
        "lure_max_distance": 2000
      }
    },
    {
      "type": "FollowSpiral",
      "config": {
        "diameter": 4,
        "step_size": 70
      }
    }
  ],
  "map_object_cache_time": 5,
  "forts": {
    "avoid_circles": true,
    "max_circle_size": 50,
    "cache_recent_forts": true
  },
  "websocket_server": false,
  "walk": 4.16,
  "action_wait_min": 1,
  "action_wait_max": 4,
  "debug": false,
  "test": false,
  "health_record": true,
  "location_cache": true,
  "distance_unit": "km",
  "reconnecting_timeout": 15,
  "catch_randomize_reticle_factor": 1.0,
  "catch_randomize_spin_factor": 1.0,
  "min_ultraball_to_keep": 10,
  "logging_color": true,
  "catch": {
    "any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"},
    "// Example of always catching Rattata:": {},
    "// Rattata": { "always_catch" : true }
  },
  "catch_throw_parameters": {
    "excellent_rate": 0.1,
    "great_rate": 0.5,
    "nice_rate": 0.3,
    "normal_rate": 0.1,
    "spin_success_rate" : 0.6
  },
  "release": {
    "any": {"release_below_cp": 0, "release_below_iv": 0, "logic": "or"},
    "// Example of always releasing Rattata:": {},
    "// Rattata": {"always_release": true},
    "// Example of keeping 3 stronger (based on CP) Pidgey:": {},
    "// Pidgey": {"keep_best_cp": 3},
    "// Example of keeping 2 stronger (based on IV) Zubat:": {},
    "// Zubat": {"keep_best_iv": 2},
    "// Also, it is working with any": {},
    "// any": {"keep_best_iv": 3},
    "// Example of keeping the 2 strongest (based on CP) and 3 best (based on IV) Zubat:": {},
    "// Zubat": {"keep_best_cp": 2, "keep_best_iv": 3}
  },
  "vips" : {
    "Any pokemon put here directly force to use Berry & Best Ball to capture, to secure the capture rate!": {},
    "any": {"catch_above_cp": 1200, "catch_above_iv": 0.9, "logic": "or" },
    "Lapras": {},
    "Moltres": {},
    "Zapdos": {},
    "Articuno": {},

    "// S-Tier pokemons (if pokemon can be evolved into tier, list the representative)": {},
    "Mewtwo": {},
    "Dragonite": {},
    "Snorlax": {},
    "// Mew evolves to Mewtwo": {},
    "Mew": {},
    "Arcanine": {},
    "Vaporeon": {},
    "Gyarados": {},
    "Exeggutor": {},
    "Muk": {},
    "Weezing": {},
    "Flareon": {}

  }
}

@titellergetlinks
Copy link
Author

@keugnu

oki i fixed from setting config

set cache_recent_forts to false

thank you for power up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants