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

Stop after login procedure #5149

Closed
bhaveshrangani opened this issue Sep 3, 2016 · 5 comments
Closed

Stop after login procedure #5149

bhaveshrangani opened this issue Sep 3, 2016 · 5 comments

Comments

@bhaveshrangani
Copy link

2016-09-03 11:23:44,276 [ cli] [INFO] PokemonGO Bot v1.0
2016-09-03 11:23:44,293 [ cli] [INFO] commit: ca94424
2016-09-03 11:23:44,299 [ cli] [INFO] Configuration initialized
2016-09-03 11:23:44,299 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-09-03 11:23:44,300 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-09-03 11:23:44,306 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
[2016-09-03 11:23:44] [MainThread] [SleepSchedule] [INFO] [next_sleep] Next sleep at 17:23:00, for a duration of 3:02:53
[2016-09-03 11:23:44] [MainThread] [PokemonGoBot] [INFO] [set_start_location] Setting start location.
[2016-09-03 11:23:44] [MainThread] [PokemonGoBot] [INFO] [location_found] Location found: London Tower (51.50811239999999, -0.0759493, 0.0)
[2016-09-03 11:23:44] [MainThread] [PokemonGoBot] [INFO] [position_update] Now at (51.50811239999999, -0.0759493, 0.0)
[2016-09-03 11:23:44] [MainThread] [PokemonGoBot] [INFO] [login_started] Login procedure started.
Traceback (most recent call last):
File "pokecli.py", line 795, in
main()
File "pokecli.py", line 231, in main
report_summary(bot)
File "pokecli.py", line 279, in report_summary
metrics.capture_stats()
File "/root/Home/pokemongo_bot/metrics.py", line 108, in capture_stats
response_dict = request.call()
File "/root/Home/pokemongo_bot/api_wrapper.py", line 239, in call
result = self._call()
File "/root/Home/pokemongo_bot/api_wrapper.py", line 188, in _call
return PGoApiRequest.call(self, signature)
File "/root/Home/src/pgoapi/pgoapi/pgoapi.py", line 236, in call
response = request.request(self._api_endpoint, self._req_method_list, self.get_position())
File "/root/Home/src/pgoapi/pgoapi/rpc_api.py", line 127, in request
response_dict = self._parse_main_response(response, subrequests)
File "/root/Home/src/pgoapi/pgoapi/rpc_api.py", line 337, in _parse_main_response
raise ServerSideAccessForbiddenException("Seems your IP Address is banned or something else went badly wrong...")
pgoapi.exceptions.ServerSideAccessForbiddenException: Seems your IP Address is banned or something else went badly wrong...
[2016-09-03 11:23:47] [MainThread] [sentry.errors] [ERROR] Sentry responded with an error: 'utf8' codec can't decode byte 0x9c in position 1: invalid start byte (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/usr/local/lib/python2.7/dist-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/usr/local/lib/python2.7/dist-packages/raven/utils/http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py", line 494, in open
response = self._open(req, data)
File "/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py", line 512, in _open
'_open', req)
File "/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/usr/local/lib/python2.7/dist-packages/raven/utils/http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py", line 1284, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python2.7/httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 895, in _send_output
msg += message_body
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9c in position 1: invalid start byte
[2016-09-03 11:23:47] [MainThread] [sentry.errors.uncaught] [ERROR] [u'ServerSideAccessForbiddenException: Seems your IP Address is banned or something else went badly wrong...', u' File "pokecli.py", line 795, in ', u' File "pokecli.py", line 231, in main', u' File "pokecli.py", line 279, in report_summary', u' File "pokemongo_bot/metrics.py", line 108, in capture_stats', u' File "pokemongo_bot/api_wrapper.py", line 239, in call', u' File "pokemongo_bot/api_wrapper.py", line 188, in _call', u' File "pgoapi/pgoapi.py", line 236, in call', u' File "pgoapi/rpc_api.py", line 127, in request', u' File "pgoapi/rpc_api.py", line 337, in _parse_main_response']
Sat Sep 3 11:23:47 UTC 2016 Pokebot Stopped.
Press any button or wait 20 seconds to continue.

@BreezeRo
Copy link
Contributor

BreezeRo commented Sep 3, 2016

Maybe IP banned, try using the bot from a diff. IP address

@ravey-davey
Copy link

ravey-davey commented Sep 3, 2016

I'm definitely not IP banned and have literally just updated and now have this issue as well..

[EDIT] I found a fault in my auth.json where I'd not put the correct location in. Perhaps you have a similar issue?

@Shentang
Copy link

Shentang commented Sep 3, 2016

Exact same issue. I can't be ip banned - I still run pokemap without any issues.

Traceback (most recent call last):
File "pokecli.py", line 795, in
main()
File "pokecli.py", line 153, in main
bot.tick()
File "/root/bot2/PokemonGo-Bot/pokemongo_bot/init.py", line 662, in tick
if worker.work() == WorkerResult.RUNNING:
File "/root/bot2/PokemonGo-Bot/pokemongo_bot/cell_workers/catch_pokemon.py", line 44, in work
if self.catch_pokemon(self.pokemon.pop()) == WorkerResult.ERROR:
File "/root/bot2/PokemonGo-Bot/pokemongo_bot/cell_workers/catch_pokemon.py", line 138, in catch_pokemon
return_value = worker.work()
File "/root/bot2/PokemonGo-Bot/pokemongo_bot/cell_workers/pokemon_catch_worker.py", line 174, in work
self._do_catch(pokemon, encounter_id, catch_rate_by_ball, is_vip=is_vip)
File "/root/bot2/PokemonGo-Bot/pokemongo_bot/cell_workers/pokemon_catch_worker.py", line 583, in _do_catch
sleep (randrange(self.catchsim_newtodex_wait_min, self.catchsim_newtodex_wait_max))
File "/usr/lib/python2.7/random.py", line 218, in randrange
raise ValueError, "empty range for randrange() (%d,%d, %d)" % (istart, istop, width)
ValueError: empty range for randrange() (1,1, 0)
[2016-09-03 16:54:49] [MainThread] [sentry.errors] [ERROR] Sentry responded with an error: 'utf8' codec can't decode byte 0x9c in position 1: invalid start byte (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "/root/bot/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/root/bot/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/root/bot/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "/root/bot/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
response = self._open(req, data)
File "/root/bot/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
'_open', req)
File "/root/bot/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/root/bot/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "/root/bot/PokemonGo-Bot/local/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/lib/python2.7/httplib.py", line 1001, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1035, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 997, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 848, in _send_output
msg += message_body
File "/root/bot/PokemonGo-Bot/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9c in position 1: invalid start byte
[2016-09-03 16:54:49] [MainThread] [sentry.errors.uncaught] [ERROR] [u'ValueError: empty range for randrange() (1,1, 0)', u' File "pokecli.py", line 795, in ', u' File "pokecli.py", line 153, in main', u' File "pokemongo_bot/init.py", line 662, in tick', u' File "pokemongo_bot/cell_workers/catch_pokemon.py", line 44, in work', u' File "pokemongo_bot/cell_workers/catch_pokemon.py", line 138, in catch_pokemon', u' File "pokemongo_bot/cell_workers/pokemon_catch_worker.py", line 174, in work', u' File "pokemongo_bot/cell_workers/pokemon_catch_worker.py", line 583, in _do_catch', u' File "python2.7/random.py", line 218, in randrange']

@ravey-davey what was your wrong location?

@alephmelo
Copy link

I was getting this when using:

"location": "Location Name",

And now I'm using:

"location": "00.000000,00.000000", # long, lat

@oralunal
Copy link
Contributor

oralunal commented Sep 4, 2016

Use the issue template please.

@oralunal oralunal closed this as completed Sep 4, 2016
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

6 participants