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

突然出现WantWriteError,无法上传 #97

Closed
N46AN opened this issue Nov 12, 2014 · 2 comments
Closed

突然出现WantWriteError,无法上传 #97

N46AN opened this issue Nov 12, 2014 · 2 comments

Comments

@N46AN
Copy link

N46AN commented Nov 12, 2014

看上去像网络问题,但出现错误时没有一丝迟疑。
请查阅。

完整的错误信息:
Slice size: 20971520, Pieces: 33
Uploading MD5 slice: a809394a65b1009a3c63d8d5b8a8de45, #1 / 33
POST https://c.pcs.baidu.com/rest/2.0/pcs/file
actargs: /apps/bypy/ F1-2014-18-ONB-170506680.mp4
Params: {u'type': u'tmpfile', u'method': u'upload'}
[23:16:59] Error accessing 'https://c.pcs.baidu.com/rest/2.0/pcs/file'
[23:16:59] Exception:
Traceback (most recent call last):
File "bypy.py", line 1022, in __request_work
params = parsnew, timeout = self.__timeout, verify = False, *_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 94, in post
return request('post', url, data=data, json=json, *_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 49, in request
return session.request(method=method, url=url, *_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 457, in request
resp = self.send(prep, *_send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 569, in send
r = adapter.send(request, *_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 362, in send
timeout=timeout
File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 516, in urlopen
body=body, headers=headers)
File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 308, in _make_request
conn.request(method, url, *_httplib_request_kw)
File "/usr/lib/python2.7/httplib.py", line 1001, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1035, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 997, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 850, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 826, in send
self.sock.sendall(data)
File "/usr/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py", line 203, in sendall
return self.connection.sendall(data)
File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 977, in sendall
self._raise_ssl_error(self._ssl, result)
File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 849, in _raise_ssl_error
raise WantWriteError()
WantWriteError

[23:16:59] Function: __upload_slice_act
[23:16:59] Website parameters: {u'type': u'tmpfile', u'method': u'upload'}
[23:16:59] Fatal Exception.
Quitting...

Saving Hash Cache...
Hash Cache saved.

@houtianze
Copy link
Owner

谢谢反馈,不过我试了一下上传,没出现这个错误。升级下pyopenssl 或 request试试?

@N46AN
Copy link
Author

N46AN commented Nov 19, 2014

抱歉!今天尝试,好了。应该是随机网络问题,请关闭此条目。

@N46AN N46AN closed this as completed Nov 19, 2014
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