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

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

Closed
igoldny opened this issue Aug 10, 2016 · 19 comments
Closed

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

igoldny opened this issue Aug 10, 2016 · 19 comments

Comments

@igoldny
Copy link

igoldny commented Aug 10, 2016

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']

@Ph4i1ur3
Copy link

Are you running the latest dev version?

@Lordedi
Copy link

Lordedi commented Aug 10, 2016

yes same just happened

@Ph4i1ur3
Copy link

Ph4i1ur3 commented Aug 10, 2016

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?

@igoldny
Copy link
Author

igoldny commented Aug 10, 2016

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

@Ph4i1ur3
Copy link

Ph4i1ur3 commented Aug 10, 2016

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

@igoldny
Copy link
Author

igoldny commented Aug 10, 2016

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.

@emilhe
Copy link

emilhe commented Aug 10, 2016

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.

@Lordedi
Copy link

Lordedi commented Aug 10, 2016

Not fix for me :/

@igoldny
Copy link
Author

igoldny commented Aug 10, 2016

@Lordedi attach your log

@Lordedi
Copy link

Lordedi commented Aug 10, 2016

[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
Copy link

Lordedi commented Aug 10, 2016

no one has solved this issue ?

@Ph4i1ur3
Copy link

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

@Lordedi
Copy link

Lordedi commented Aug 10, 2016

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

@Ph4i1ur3
Copy link

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

@Lordedi
Copy link

Lordedi commented Aug 10, 2016

Yes I did.

@Lordedi
Copy link

Lordedi commented Aug 10, 2016

ok thanks I will try this ;)

@Lordedi
Copy link

Lordedi commented Aug 10, 2016

Still doesn't work

@k4n30
Copy link
Contributor

k4n30 commented Aug 11, 2016

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

@k4n30 k4n30 closed this as completed Aug 11, 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
@igoldny @emilhe @k4n30 @Ph4i1ur3 @Lordedi and others