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

这个错误是什么意思呀 #20

Open
bill-zzx opened this issue Feb 24, 2021 · 1 comment
Open

这个错误是什么意思呀 #20

bill-zzx opened this issue Feb 24, 2021 · 1 comment

Comments

@bill-zzx
Copy link

abc@abc:~/smzdm_bot$ python3 main.py
Traceback (most recent call last):
File "main.py", line 57, in
res = sb.checkin()
File "main.py", line 44, in checkin
msg = self.session.get(url)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/home/abc/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 600, in urlopen
httplib_response = self._make_request(conn, method, url,
File "/home/abc/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 355, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3.8/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1296, in _send_request
self.putheader(hdr, value)
File "/usr/lib/python3.8/http/client.py", line 1228, in putheader
values[i] = one_value.encode('latin-1')
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2026' in position 512: ordinal not in range(256)

@zhangjh953166
Copy link

cookie有中文,需要转换或删掉

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

2 participants