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

百度网盘的秒传好像是有问题的 #7853

Open
4 tasks done
KirCute opened this issue Jan 20, 2025 · 6 comments
Open
4 tasks done

百度网盘的秒传好像是有问题的 #7853

KirCute opened this issue Jan 20, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@KirCute
Copy link
Contributor

KirCute commented Jan 20, 2025

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

  • I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

  • I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.41.0

Driver used / 使用的存储驱动

百度网盘

Describe the bug / 问题描述

RT,用的是官方 API,我在写 #7851 的时候发现的问题,当时我把 driver.go#L180 处改为了直接返回d.PutRapid的结果,结果前端报错Network Error,日志里有如下报错。阿里云盘Open用类似的方法调试可以秒传成功,我上传的文件就是我自己网盘里另一个位置的文件所以应该不是文件本身不能秒传的问题。

Reproduction / 复现链接

.

Config / 配置

Image

Logs / 日志

�[31mERRO�[0m[2025-01-20 23:01:52] failed put /baidu/: req: [https://pan.baidu.com/rest/2.0/xpan/file] ,errno: 31500, refer to https://pan.baidu.com/union/doc/
github.com/alist-org/alist/v3/internal/op.Put
	C:/Users/KirCute/GolandProjects/alist/internal/op/fs.go:587
github.com/alist-org/alist/v3/internal/fs.putDirectly
	C:/Users/KirCute/GolandProjects/alist/internal/fs/put.go:80
github.com/alist-org/alist/v3/internal/fs.PutDirectly
	C:/Users/KirCute/GolandProjects/alist/internal/fs/fs.go:98
github.com/alist-org/alist/v3/server/handles.FsStream
	C:/Users/KirCute/GolandProjects/alist/server/handles/fsup.go:84
github.com/gin-gonic/gin.(*Context).Next
	C:/Users/KirCute/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/alist-org/alist/v3/server/middlewares.FsUp
	C:/Users/KirCute/GolandProjects/alist/server/middlewares/fsup.go:43
github.com/gin-gonic/gin.(*Context).Next
	C:/Users/KirCute/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/alist-org/alist/v3/server/middlewares.Auth
	C:/Users/KirCute/GolandProjects/alist/server/middlewares/auth.go:73
github.com/gin-gonic/gin.(*Context).Next
	C:/Users/KirCute/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	C:/Users/KirCute/GolandProjects/alist/server/middlewares/check.go:14
github.com/gin-gonic/gin.(*Context).Next
	C:/Users/KirCute/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	C:/Users/KirCute/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
	C:/Users/KirCute/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
	C:/Users/KirCute/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
	C:/Users/KirCute/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	C:/Users/KirCute/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	C:/Users/KirCute/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:589
net/http.serverHandler.ServeHTTP
	C:/Program Files/Go/src/net/http/server.go:3210
net/http.(*conn).serve
	C:/Program Files/Go/src/net/http/server.go:2092
runtime.goexit
	C:/Program Files/Go/src/runtime/asm_amd64.s:1700 
@KirCute KirCute added the bug Something isn't working label Jan 20, 2025
Copy link

@foxxorcat
Copy link
Contributor

原因很简单,这个秒传方法被和谐了。得换个接口

@KirCute
Copy link
Contributor Author

KirCute commented Jan 21, 2025

原因很简单,这个秒传方法被和谐了。得换个接口

所以得换非官方的接口吗还是

@foxxorcat
Copy link
Contributor

得用官方接口,之前官方和谐过秒传,现在这个是被遗漏的接口。

@foxxorcat
Copy link
Contributor

不过接口估计得抓前端的,open api 的之前就没秒传

@KirCute
Copy link
Contributor Author

KirCute commented Jan 21, 2025

得用官方接口,之前官方和谐过秒传,现在这个是被遗漏的接口。

OK,明白了

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

No branches or pull requests

2 participants