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

UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1

Open igoldny opened this issue 10 years ago • 18 comments

Hey,

i just got this error while running for some time

UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) 2016-08-10 16:29:29,642 [sentry.errors.uncaught] [ERROR] [u'ConnectionError: (\'Connection aborted.\', BadStatusLine("\'\'",))', u' File "pokecli.py", line 530, in <module>', u' File "pokecli.py", line 96, in main', u' File "pokemongo_bot/__init__.py", line 450, in tick', u' File "pokemongo_bot/health_record/bot_event.py", line 65, in heartbeat', u' File "pokemongo_bot/health_record/bot_event.py", line 78, in track_url', u' File "requests/api.py", line 111, in post', u' File "requests/api.py", line 57, in request', u' File "requests/sessions.py", line 475, in request', u' File "requests/sessions.py", line 585, in send', u' File "requests/adapters.py", line 453, in send']

igoldny avatar Aug 10 '16 13:08 igoldny

Are you running the latest dev version?

Ph4i1ur3 avatar Aug 10 '16 13:08 Ph4i1ur3

yes same just happened

Lordedi avatar Aug 10 '16 14:08 Lordedi

My guess would be an API error, how should I go about reproducing the effect? Or could you post the logs leading up to this point?

Ph4i1ur3 avatar Aug 10 '16 14:08 Ph4i1ur3

yes, latest dev branch. where is the logs file? i can share it with you or anything else i can do?

igoldny avatar Aug 10 '16 14:08 igoldny

Not sure of the bot writes logs by default, truthfully. Id recommend setting "health_record": false, in your config, that may solve your issue

Ph4i1ur3 avatar Aug 10 '16 14:08 Ph4i1ur3

ok, i will try, thnx. it's not urgent bug because after restart it keep on running just thought it might be good to have a record of it.

igoldny avatar Aug 10 '16 14:08 igoldny

I get the same error. Sometimes the bot can go on for 10 hours before the bug occurs, some times it's just a matter of minutes.

emilhe avatar Aug 10 '16 15:08 emilhe

Not fix for me :/

Lordedi avatar Aug 10 '16 15:08 Lordedi

@Lordedi attach your log

igoldny avatar Aug 10 '16 15:08 igoldny

[17:28:34] Going to a new place, ignoring cached location. [17:28:34] Login procedure started.Traceback (most recent call last): File "pokecli.py", line 530, in main() File "pokecli.py", line 138, in main report_summary(bot) File "pokecli.py", line 147, in report_summary metrics.capture_stats() File "/home/raviss_e/PokemonGo-Bot/pokemongo_bot/metrics.py", line 76, in capture_stats response_dict = request.call() File "/home/raviss_e/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 90, in call if not self.can_call(): File "/home/raviss_e/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 58, in can_call raise NotLoggedInException() pgoapi.exceptions.NotLoggedInException

(I changed health_record: false)

Lordedi avatar Aug 10 '16 15:08 Lordedi

no one has solved this issue ?

Lordedi avatar Aug 10 '16 16:08 Lordedi

NotLoggedIn is usually called when you've entered some part of your login information wrong, or the server is abnormally busy

Ph4i1ur3 avatar Aug 10 '16 17:08 Ph4i1ur3

My login is good maybe server is busy. Thank you to reply me mister

Lordedi avatar Aug 10 '16 17:08 Lordedi

Also, just to be sure. You've used "pip install -r requirements.txt --upgrade" when you run new versions of the bot right? The --upgrade tag is important

Ph4i1ur3 avatar Aug 10 '16 17:08 Ph4i1ur3

Yes I did.

Lordedi avatar Aug 10 '16 17:08 Lordedi

ok thanks I will try this ;)

Lordedi avatar Aug 10 '16 18:08 Lordedi

Still doesn't work

Lordedi avatar Aug 10 '16 19:08 Lordedi

OP is due to a connection error, not related to the bot

k4n30 avatar Aug 11 '16 13:08 k4n30