PeterDing/BaiduPCS-Py

upload秒传挂了, 是否可以在upload加入跳过秒传的选项

Opened this issue · 0 comments

Describe the bug / 描述 bug
upload 进度条一闪而过,无进度

To Reproduce / 复现问题
任意

BaiduPCS-py upload 文件大于300M

Envrionment / 运行环境

  • OS: [Ubuntu 22.04]
  • Python [e.g. Python3.10.14]
  • BaiduPCS-Py Version 0.7.6

Runing log / 运行日志

LOG_LEVEL=DEBUG BaiduPCS-Py upload Miniconda3-py310_24.4.0-0-Linux-x86_64.sh /wiwiMST
2024-06-06 01:05:34,953 | DEBUG | upload: ======== Uploading start ========
-> UploadType: UploadType.Many
-> Size of from_to_list: 1
⠋ Miniconda3-py310_24.4.0-0-Linux-x86_64.sh ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0/100 bytes • ? • -:--:--2024-06-06 01:05:34,955 | DEBUG | upload: upload_many: Upload: index: 0, task_id: 0
⠴ Miniconda3-py310_24.4.0-0-Linux-x86_64.sh ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0/100 bytes • ? • -:--:--2024-06-06 01:05:36,188 | DEBUG | upload: _init_encrypt_io: encrypt_type: EncryptType.No, localpath: Miniconda3-py310_24.4.0-0-Linux-x86_64.sh, remotepath: /wiwiMST/Miniconda3-py310_24.4.0-0-Linux-x86_64.sh, encrypt_io_len: 133712233
⠦ Miniconda3-py310_24.4.0-0-Linux-x86_64.sh ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0.0/127.5 MiB • ? • -:--:--2024-06-06 01:05:36,357 | DEBUG | upload: _rapid_upload: rapid_upload starts
⠋ Miniconda3-py310_24.4.0-0-Linux-x86_64.sh ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0.0/127.5 MiB • ? • -:--:--2024-06-06 01:05:36,658 | WARNING | upload: _rapid_upload: rapid_upload fails
2024-06-06 01:05:36,658 | WARNING | upload: _rapid_upload: unknown error: error_code: 31023, message: 输入参数错误
2024-06-06 01:05:36,658 | WARNING | upload: upload_file: fails: error: error_code: 31023, message: 输入参数错误, fail_count: 1
Traceback (most recent call last):
File "/home/jldz9/miniconda3/lib/python3.10/site-packages/baidupcs_py/common/concurrent.py", line 25, in retry_it
r = func(*args, **kwargs)
File "/home/jldz9/miniconda3/lib/python3.10/site-packages/baidupcs_py/commands/upload.py", line 679, in upload_file
ok = _rapid_upload(
File "/home/jldz9/miniconda3/lib/python3.10/site-packages/baidupcs_py/commands/upload.py", line 297, in _rapid_upload
raise err
File "/home/jldz9/miniconda3/lib/python3.10/site-packages/baidupcs_py/commands/upload.py", line 257, in _rapid_upload
api.rapid_upload_file(
File "/home/jldz9/miniconda3/lib/python3.10/site-packages/baidupcs_py/baidupcs/api.py", line 168, in rapid_upload_file
info = self._baidupcs.rapid_upload_file(
File "/home/jldz9/miniconda3/lib/python3.10/site-packages/baidupcs_py/baidupcs/errors.py", line 152, in check
raise err
baidupcs_py.baidupcs.errors.BaiduPCSError: error_code: 31023, message: 输入参数错误
2024-06-06 01:05:37,007 | DEBUG | upload: _init_encrypt_io: encrypt_type: EncryptType.No, localpath: Miniconda3-py310_24.4.0-0-Linux-x86_64.sh, remotepath: /wiwiMST/Miniconda3-py310_24.4.0-0-Linux-x86_64.sh, encrypt_io_len: 133712233
2024-06-06 01:05:37,175 | DEBUG | upload: _rapid_upload: rapid_upload starts
2024-06-06 01:05:37,488 | WARNING | upload: _rapid_upload: rapid_upload fails
2024-06-06 01:05:37,488 | WARNING | upload: _rapid_upload: unknown error: error_code: 31023, message: 输入参数错误
2024-06-06 01:05:37,488 | WARNING | upload: upload_file: fails: error: error_code: 31023, message: 输入参数错误, fail_count: 2

Additional context / 补充内容
Add any other context about the problem here.
在这里增加补充内容。
没有测试跳过秒传是否可以上传
如果可以提供API文档可以帮忙修复