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

Bot crashing with PokemonHunter enabled

Open einszA opened this issue 8 years ago • 0 comments

Expected Behavior

Bot should run and hunt down Pokemon with PokemonHunter enabled

Actual Behavior

Bot crashes with Error after successful startup as soon as nearby Pokemon are found.

adding option verify=False to all requests.get() in polyline_generator.py solves this problem!

Your FULL config.json (remove your username, password, gmapkey and any other private info)

  {
        "type": "PokemonHunter",
        "config": {
            "enabled": true,
            "max_distance": 150000,
            "hunt_all": false,
            "hunt_vip": true,
            "hunt_pokedex": true
        }
    },

full config: (http://pastebin.com/vAH3Bqnf)

Output when issue occurred

Traceback (most recent call last): File "pokecli.py", line 841, in <module> main() File "pokecli.py", line 200, in main bot.tick() File "C:\Python27\PokemonGo-Bot\pokemongo_bot\__init__.py", line 708, in tick if worker.work() == WorkerResult.RUNNING: File "C:\Python27\PokemonGo-Bot\pokemongo_bot\cell_workers\pokemon_hunter.py", line 74, in work elif self.walker.step(): File "C:\Python27\PokemonGo-Bot\pokemongo_bot\walkers\step_walker.py", line 39, in step new_position = self.get_next_position(origin_lat, origin_lng, origin_alt, self.dest_lat, self.dest_lng, self.dest_alt, speed) File "C:\Python27\PokemonGo-Bot\pokemongo_bot\walkers\polyline_walker.py", line 10, in get_next_position polyline = PolylineObjectHandler.cached_polyline((self.bot.position[0], self.bot.position[1]), (dest_lat, dest_lng), google_map_api_key=self.bot.config.gmapkey) File "C:\Python27\PokemonGo-Bot\pokemongo_bot\walkers\polyline_generator.py", line 52, in cached_polyline PolylineObjectHandler._cache = Polyline(origin, destination, google_map_api_key) File "C:\Python27\PokemonGo-Bot\pokemongo_bot\walkers\polyline_generator.py", line 71, in __init__ self._directions_response = requests.get(self.DIRECTIONS_URL).json() File "C:\Python27\lib\site-packages\requests\api.py", line 71, in get return request('get', url, params=params, **kwargs) File "C:\Python27\lib\site-packages\requests\api.py", line 57, in request return session.request(method=method, url=url, **kwargs) File "C:\Python27\lib\site-packages\requests\sessions.py", line 475, in request resp = self.send(prep, **send_kwargs) File "C:\Python27\lib\site-packages\requests\sessions.py", line 585, in send r = adapter.send(request, **kwargs) File "C:\Python27\lib\site-packages\requests\adapters.py", line 477, in send raise SSLError(e, request=request) requests.exceptions.SSLError: ("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",)

Steps to Reproduce

use PokemonHunter

Other Information

OS: Win10

Branch: dev

Git Commit: 0e8a03a5599e14452a3e6dbdb5988e63afb4a45b

Python Version: Python 2.7.10

Any other relevant files/configs (eg: path files)

einszA avatar Sep 14 '16 19:09 einszA