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

百度盘上传好像不行 #132

Open
josephzjw opened this issue Apr 1, 2018 · 3 comments
Open

百度盘上传好像不行 #132

josephzjw opened this issue Apr 1, 2018 · 3 comments

Comments

@josephzjw
Copy link

josephzjw commented Apr 1, 2018

|-- upload_function: _rapidupload_file
Traceback (most recent call last):
File "/home/xxx/my-project/iScript/pan.baidu.com.py", line 3610, in
main(argv)
File "/home/xxx/my-project/iScript/pan.baidu.com.py", line 3606, in main
handle_command(comd, xxx)
File "/home/xxx/my-project/iScript/pan.baidu.com.py", line 3208, in handle_command
px.upload(xxx[:-1], xxx[-1])
File "/home/xxx/my-project/iScript/pan.baidu.com.py", line 1477, in upload
self._upload_dir(lpath, rpath)
File "/home/xxx/my-project/iScript/pan.baidu.com.py", line 1439, in _upload_dir
self._upload_file(localpath, remotepath)
File "/home/xxx/my-project/iScript/pan.baidu.com.py", line 1397, in _upload_file
result = self._rapidupload_file(lpath, rpath)
File "/home/xxx/my-project/iScript/pan.baidu.com.py", line 1141, in _rapidupload_file
r = ss.post(url, params=p, data=data, verify=VERIFY)
File "/home/xxx/.local/lib/python2.7/site-packages/requests/sessions.py", line 555, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/home/xxx/.local/lib/python2.7/site-packages/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "/home/xxx/.local/lib/python2.7/site-packages/requests/sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "/home/xxx/.local/lib/python2.7/site-packages/requests/adapters.py", line 508, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='c.pcs.baidu.com', port=443): Max retries exceeded with url: /rest/2.0/pcs/file?method=rapidupload&app_id=250528 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f73c9ca5450>: Failed to establish a new connection: [Errno 110] Connection timed out',))
显示这个错误。。。

@PeterDing
Copy link
Owner

@josephzjw 不要把 BDUSS 公开,不然,你网盘的内容就暴露了

@PeterDing
Copy link
Owner

@josephzjw 这个错(Failed to establish a new connection: [Errno 110] Connection timed out) 应该是你网络的问题或者是 百度服务器的问题。

@josephzjw
Copy link
Author

好的,我知道了,谢谢啦

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