bypy
bypy copied to clipboard
上传失败
使用命令:
python3 -m bypy upload 文件名 -v -d
错误:
<E> [11:58:33] Error accessing 'https://c.pcs.baidu.com/rest/2.0/pcs/file'
<E> [11:58:33] Exception:
<class 'requests.exceptions.ConnectionError'> - HTTPSConnectionPool(host='c.pcs.baidu.com', port=443): Max retries exceeded with url: /rest/2.0/pcs/file?method=upload&type=tmpfile&access_token=121.39996d23136f25f3967a886b19f03490.YB5Z-id3SONSA9VdMueVxIcgxX0Oz7nCAHC1qte.4LD7Cw (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7797b8e3c8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Stack:
File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/data/yanghu/.local/lib/python3.6/site-packages/bypy/main.py", line 13, in
<E> [11:58:33] Function: __upload_slice_act <E> [11:58:33] Website parameters: {'method': 'upload', 'type': 'tmpfile'} <E> [11:58:33] Waiting 10 seconds before retrying... <E> [11:58:43] Request Try #2 / 5
+1
+1
同出现相同的问题,但是在我安装 acme.sh
,上传证书之后可以正常使用
curl https://get.acme.sh | sh
https://github.com/acmesh-official/acme.sh
猜测可能是 SSL证书 请求百度的问题? 可以试试看能不能解决问题 服务器系统:Debian 10
我试了一下,上传下载没遇见问题。看起来应该是SSL
证书的问题,试试看加入--disable-ssl-check
这个参数( bypy --disable-ssl-check upload
)能不能解决问题。
和 #583 可能是同样问题。