PeterDing/BaiduPCS-Py

上传速度突然变慢/8.19彻底无法上传

fedstryale opened this issue · 8 comments

SVIP用户,一直以来用得很好,上传速度能5m以上,昨天开始上传速度变成50k以下了,用客户端上传速度正常,我看域名客户端上传已经不是用的pcs.baidu.com了,而这个地址现在很慢,不知道是不是这个原因

8.19
今天彻底无法上传了,debug的错误:

2023-08-19 11:13:36,874 | DEBUG | upload: `_init_encrypt_io`: encrypt_type: EncryptType.No, localpath: /mnt/borg/data/10/10336, remotepath: /apps/borg/data/10/10336, encrypt_io_len: 172968630                                              
2023-08-19 11:13:37,220 | DEBUG | upload: `_rapid_upload`: rapid_upload starts                                                  
2023-08-19 11:13:37,282 | WARNING | upload: `_rapid_upload`: rapid_upload fails                                                 
2023-08-19 11:13:37,282 | WARNING | upload: `_rapid_upload`: unknown error: error_code: 31023, message: 输入参数错误            
2023-08-19 11:13:37,282 | WARNING | upload: `upload_file_concurrently`: fails: error: error_code: 31023, message: 输入参数错误, fail_count: 22
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/baidupcs_py/common/concurrent.py", line 25, in retry_it
    r = func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/baidupcs_py/commands/upload.py", line 427, in upload_file_concurrently
    ok = _rapid_upload(
  File "/usr/local/lib/python3.10/dist-packages/baidupcs_py/commands/upload.py", line 297, in _rapid_upload
    raise err
  File "/usr/local/lib/python3.10/dist-packages/baidupcs_py/commands/upload.py", line 257, in _rapid_upload
    api.rapid_upload_file(
  File "/usr/local/lib/python3.10/dist-packages/baidupcs_py/baidupcs/api.py", line 168, in rapid_upload_file
   info = self._baidupcs.rapid_upload_file(
  File "/usr/local/lib/python3.10/dist-packages/baidupcs_py/baidupcs/errors.py", line 152, in check
    raise err
baidupcs_py.baidupcs.errors.BaiduPCSError: error_code: 31023, message: 输入参数错误

可能是秒传的问题,完全失效了,我用的是其他的工具

https://pcs.baidu.com/rest/2.0/pcs/file 似乎不再支持 rapidupload (秒传) 了。

有朋友知道是接口更新了吗? 我在 https://pan.baidu.com/union/doc/3ksg0s9ye 没找到 rapidupload 接口。

https://pcs.baidu.com/rest/2.0/pcs/file 似乎不再支持 rapidupload (秒传) 了。

有朋友知道是接口更新了吗? 我在 https://pan.baidu.com/union/doc/3ksg0s9ye 没找到 rapidupload 接口。

在其他地方说是:百度对接口做了修改了,原理上第三方无法秒穿了

确实,大概半个月前就没法传了。。。。

请问现在还可以使用命令行上传吗?

请问现在还可以使用命令行上传吗?

可以的

https://pcs.baidu.com/rest/2.0/pcs/file 似乎不再支持 rapidupload (秒传) 了。

有朋友知道是接口更新了吗? 我在 https://pan.baidu.com/union/doc/3ksg0s9ye 没找到 rapidupload 接口。

似乎有途径恢复了: qjfoidnh/BaiduPCS-Go#290

在docker里面跑
现在进度条一闪而过,没有网络传输
image
image