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

Bot crashing with PokemonHunter enabled #25

Open
einszA opened this issue Sep 14, 2016 · 0 comments
Open

Bot crashing with PokemonHunter enabled #25

einszA opened this issue Sep 14, 2016 · 0 comments

Comments

@einszA
Copy link

einszA commented Sep 14, 2016

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: 0e8a03a

Python Version: Python 2.7.10

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

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

1 participant