PokemonGoF / PokemonGo-Bot

The Pokemon Go Bot, baking with community.
MIT License
3.85k stars 1.54k forks source link

exception when IP seems be banned #4908

Closed aaronsuns closed 7 years ago

aaronsuns commented 7 years ago

When having the following exception, it seems the IP is banned.

$ git checkout origin/master M web HEAD is now at 56339fb... Merge dev to master (#4889) aaron@laptop:~/PokemonGo-Bot$ ./run.sh 2016-08-29 21:45:45,007 [ cli] [INFO] PokemonGO Bot v1.0 2016-08-29 21:45:45,026 [ cli] [INFO] commit: 56339fba1ba7f77a0275078ea0cf7a73e60c2ed0 2016-08-29 21:45:45,053 [ cli] [INFO] Configuration initialized 2016-08-29 21:45:45,054 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information: 2016-08-29 21:45:45,055 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics 2016-08-29 21:45:45,071 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com [2016-08-29 21:45:45] [SleepSchedule] [INFO] [next_sleep] Next sleep at 2016-08-30 12:28:55.259307 [2016-08-29 21:45:45] [PokemonGoBot] [INFO] [set_start_location] Setting start location. [2016-08-29 21:45:45] [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding. [2016-08-29 21:45:45] [PokemonGoBot] [INFO] [location_found] Location found: 59.330998,18.071761 (59.330998, 18.071761, 8.0) [2016-08-29 21:45:45] [PokemonGoBot] [INFO] [position_update] Now at (59.330998, 18.071761, 8.0) [2016-08-29 21:45:45] [PokemonGoBot] [INFO] [login_started] Login procedure started. Traceback (most recent call last): File "pokecli.py", line 768, in main() File "pokecli.py", line 207, in main report_summary(bot) File "pokecli.py", line 253, in report_summary metrics.capture_stats() File "/home/aaron/PokemonGo-Bot/pokemongo_bot/metrics.py", line 109, in capture_stats response_dict = request.call() File "/home/aaron/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 223, in call if not self.can_call(): File "/home/aaron/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 128, in can_call raise NotLoggedInException() pgoapi.exceptions.NotLoggedInException [2016-08-29 21:45:45] [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 "/home/aaron/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync super(ThreadedHTTPTransport, self).send(data, headers) File "/home/aaron/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send ca_certs=self.ca_certs, File "/home/aaron/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen return opener.open(url, data, timeout) File "/home/aaron/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open response = self._open(req, data) File "/home/aaron/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open '_open', req) File "/home/aaron/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain result = func(*args) File "/home/aaron/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open return self.do_open(ValidHTTPSConnection, req) File "/home/aaron/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 1048, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 1088, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 1044, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 886, in _send_output msg += message_body File "/home/aaron/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-08-29 21:45:45] [sentry.errors.uncaught] [ERROR] [u'NotLoggedInException', u' File "pokecli.py", line 768, in ', u' File "pokecli.py", line 207, in main', u' File "pokecli.py", line 253, in report_summary', u' File "pokemongo_bot/metrics.py", line 109, in capture_stats', u' File "pokemongo_bot/api_wrapper.py", line 223, in call', u' File "pokemongo_bot/api_wrapper.py", line 128, in can_call'] mån 29 aug 2016 21:45:45 CEST Pokebot Stopped. Press any button or wait 20 seconds to continue.

mjmadsen commented 7 years ago

Try: git pull git submodule update --init --recursive git submodule foreach git pull origin master source bin/activate (-- do not skip this step --) pip install -r requirements.txt --upgrade pip install -r requirements.txt

4912

mjmadsen commented 7 years ago

@aaronsuns News?

aaronsuns commented 7 years ago

Still the same, its from a clean installation. update just get the same result. Then I copy the same folder to another server, it works immediately. Seems like my IP is banned.

aaron@laptop:~/PokemonGo-Bot$ git pull remote: Counting objects: 236, done. remote: Compressing objects: 100% (48/48), done. remote: Total 236 (delta 117), reused 95 (delta 95), pack-reused 93 Receiving objects: 100% (236/236), 95.03 KiB | 0 bytes/s, done. Resolving deltas: 100% (150/150), completed with 35 local objects. From https://github.com/PokemonGoF/PokemonGo-Bot 8c6a578..a674b26 dev -> origin/dev

aaron@laptop:~/PokemonGo-Bot$ git submodule update --init --recursive Submodule path 'web': checked out '6ba5609c6151507b5b832a74e471b6b7b1a182c9' aaron@laptop:~/PokemonGo-Bot$ git sub^C aaron@laptop:~/PokemonGo-Bot$ ./run.sh 2016-08-31 18:13:24,343 [ cli] [INFO] PokemonGO Bot v1.0 2016-08-31 18:13:24,349 [ cli] [INFO] commit: 56339fba1ba7f77a0275078ea0cf7a73e60c2ed0 2016-08-31 18:13:24,352 [ cli] [INFO] Configuration initialized [2016-08-31 18:13:24] [SleepSchedule] [INFO] [next_sleep] Next sleep at 2016-09-01 11:36:31.426698 [2016-08-31 18:13:25] [PokemonGoBot] [INFO] [set_start_location] Setting start location. [2016-08-31 18:13:25] [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding. [2016-08-31 18:13:25] [PokemonGoBot] [INFO] [location_found] Location found: 59.330998,18.071761 (59.330998, 18.071761, 8.0) [2016-08-31 18:13:25] [PokemonGoBot] [INFO] [position_update] Now at (59.330998, 18.071761, 8.0) [2016-08-31 18:13:25] [PokemonGoBot] [INFO] [login_started] Login procedure started. Traceback (most recent call last): File "pokecli.py", line 768, in main() File "pokecli.py", line 207, in main report_summary(bot) File "pokecli.py", line 253, in report_summary metrics.capture_stats() File "/home/aaron/PokemonGo-Bot/pokemongo_bot/metrics.py", line 109, in capture_stats response_dict = request.call() File "/home/aaron/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 223, in call if not self.can_call(): File "/home/aaron/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 128, in can_call raise NotLoggedInException() pgoapi.exceptions.NotLoggedInException ons 31 aug 2016 18:13:25 CEST Pokebot Stopped. Press any button or wait 20 seconds to continue. 2016-08-31 18:13:28,169 [ cli] [INFO] PokemonGO Bot v1.0 2016-08-31 18:13:28,174 [ cli] [INFO] commit: 56339fba1ba7f77a0275078ea0cf7a73e60c2ed0 2016-08-31 18:13:28,177 [ cli] [INFO] Configuration initialized ^Cons 31 aug 2016 18:13:28 CEST Pokebot Stopped. Press any button or wait 20 seconds to continue.

aaron@laptop:~/PokemonGo-Bot$ git submodule foreach git pull origin master Entering 'web' From https://github.com/OpenPoGo/OpenPoGoWeb

(PokemonGo-Bot)aaron@laptop:~/PokemonGo-Bot$

jrjhealey commented 7 years ago

Did anything come of this? Bug?

ikariya69 commented 7 years ago

got same error here any way to correct ?