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

百度网盘上传出现 errno2:参数错误 #4863

Closed
4 tasks done
earthjasonlin opened this issue Jul 29, 2023 · 6 comments · Fixed by #4939
Closed
4 tasks done

百度网盘上传出现 errno2:参数错误 #4863

earthjasonlin opened this issue Jul 29, 2023 · 6 comments · Fixed by #4939
Labels
bug Something isn't working
Milestone

Comments

@earthjasonlin
Copy link

earthjasonlin commented Jul 29, 2023

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure it's due to alist and not something else(such as Dependencies or Operational).
  • I'm sure I'm using the latest version

Alist Version / Alist 版本

v3.23.0

Driver used / 使用的存储驱动

百度网盘

Describe the bug / 问题描述

image
上传到百度网盘第一次出现errno2(参数有误),之后就一直跑条,一直errno2,两个小文件没问题,这个大点的文件就会出现。
多人反馈同样问题,重试后可以解决。

Reproduction / 复现链接

Logs / 日志

DEBU[2023-07-29 22:10:38]/source/internal/op/fs.go:556 github.com/alist-org/alist/v3/internal/op.Put() put file [2023-07-29_20-00-42_《崩坏3》「林海绮律」线上音乐会.xml] done
DEBU[2023-07-29 22:10:38]/source/internal/fs/copy.go:78 github.com/alist-org/alist/v3/internal/fs.copyBetween2Storages.func2() copy file between storages: errno: 2, refer to https://pan.baidu.com/union/doc/
github.com/alist-org/alist/v3/internal/op.Put
/source/internal/op/fs.go:575
github.com/alist-org/alist/v3/internal/fs.copyFileBetween2Storages
/source/internal/fs/copy.go:101
github.com/alist-org/alist/v3/internal/fs.copyBetween2Storages.func2
/source/internal/fs/copy.go:77
github.com/alist-org/alist/v3/pkg/task.(*Task[...]).run
/source/pkg/task/task.go:82
github.com/alist-org/alist/v3/pkg/task.(*Manager[...]).do.func1
/source/pkg/task/manager.go:33
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1598
ERRO[2023-07-29 22:10:38]/source/pkg/task/task.go:84 github.com/alist-org/alist/v3/pkg/task.(*Task[...]).run() error [errno: 2, refer to https://pan.baidu.com/union/doc/
github.com/alist-org/alist/v3/internal/op.Put
/source/internal/op/fs.go:575
github.com/alist-org/alist/v3/internal/fs.copyFileBetween2Storages
/source/internal/fs/copy.go:101
github.com/alist-org/alist/v3/internal/fs.copyBetween2Storages.func2
/source/internal/fs/copy.go:77
github.com/alist-org/alist/v3/pkg/task.(*Task[...]).run
/source/pkg/task/task.go:82
github.com/alist-org/alist/v3/pkg/task.(*Manager[...]).do.func1
/source/pkg/task/manager.go:33
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1598] while run task [copy /_BililiveRecord to /百度网盘]

@earthjasonlin earthjasonlin added the bug Something isn't working label Jul 29, 2023
@github-actions
Copy link

See

  1. 60% 百度网盘上传问题 #3242

@earthjasonlin
Copy link
Author

理论上根据bot提到的issue的处理来看,早在2月就解决了,但是今天又出现了这个问题

@SeanHeuc
Copy link
Contributor

SeanHeuc commented Jul 29, 2023

通过本地调试,复现问题。

Screenshot 2023-07-29 at 21 52 00

但是通过对比发现成功的请求和失败的请求并没有什么区别,参数都是合法的,失败的请求重试一次就成功了。感觉是百度云盘服务器的问题?
ref:https://pan.baidu.com/union/doc/okumlx17r
https://pan.baidu.com/union/doc/mksg0s9l4

@xhofe
Copy link
Collaborator

xhofe commented Jul 29, 2023

百度网盘API文档的错误码不完整

错误码2 在授权部分的文档中有,感觉是他们的服务的问题
image
https://openauth.baidu.com/doc/appendix.html#_4-openapi%E9%94%99%E8%AF%AF%E7%A0%81%E5%88%97%E8%A1%A8

@earthjasonlin
Copy link
Author

那把这个问题写到文档里吧

@sanwecn
Copy link

sanwecn commented Jul 29, 2023

我也遇到相同问题,国外大盘鸡上传大文件报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants