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 #2887

Closed
Corecrafts opened this issue Aug 7, 2016 · 7 comments
Closed

UnicodeDecodeError #2887

Corecrafts opened this issue Aug 7, 2016 · 7 comments

Comments

@Corecrafts
Copy link

Expected Behavior

Flawless workflow

Actual Behavior

Bot runs for 10sec - 1 min and hits out this error

(yes encrypt.so is located in root folder)

Traceback (most recent call last):
File "pokecli.py", line 493, in
main()
File "pokecli.py", line 129, in main
raise e
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
2016-08-07 20:03:07,957 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "/Users/nextlevelsam/PokemonGo-Bot/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/Users/nextlevelsam/PokemonGo-Bot/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/Users/nextlevelsam/PokemonGo-Bot/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "/Users/nextlevelsam/PokemonGo-Bot/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
response = self._open(req, data)
File "/Users/nextlevelsam/PokemonGo-Bot/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
'_open', req)
File "/Users/nextlevelsam/PokemonGo-Bot/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/Users/nextlevelsam/PokemonGo-Bot/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "/Users/nextlevelsam/PokemonGo-Bot/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/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1097, in _send_request
self.endheaders(body)
File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 895, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-07 20:03:07,958 [sentry.errors.uncaught] [ERROR] [u"UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)", u' File "pokecli.py", line 493, in ', u' File "pokecli.py", line 129, in main']

Steps to Reproduce

Other Information

OS: MAC OSX

@JWebCoder
Copy link

Same problem here.

OS: Linux Xubuntu

@thxmxx
Copy link

thxmxx commented Aug 7, 2016

sys.setdefaultencoding('utf8')

It may solve the problem

@DimaVIII
Copy link

DimaVIII commented Aug 7, 2016

sys.setdefaultencoding('utf8')

Don't solve it, I tried everything here nothing can stop this error.

@thxmxx
Copy link

thxmxx commented Aug 7, 2016

Well... Solved for me

@Corecrafts
Copy link
Author

@GitPupper i did this alrdy... still givin me the error

@RedViper9
Copy link
Contributor

Are you still having this issue?

@k4n30 k4n30 closed this as completed Aug 14, 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

7 participants
@thxmxx @k4n30 @JWebCoder @DimaVIII @RedViper9 @Corecrafts and others