AlistGo / AlistGo/alist

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

Abierto
#7,853 6 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
Go
Estrellas
50.2k
Forks
7.9k
Merge medio
7 d 21 h
PR fusionados (30 d)
6

Descripción

### Please make sure of the following things

- [x] I have read the [documentation](https://alist.nn.ci).
我已经阅读了[文档](https://alist.nn.ci)。

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

- [x] I'm sure it's due to `AList` and not something else(such as [Network](https://alist.nn.ci/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host) ,`Dependencies` or `Operational`).
我确定是`AList`的问题,而不是其他原因(例如[网络](https://alist.nn.ci/zh/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host),`依赖`或`操作`)。

- [x] 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](https://github.com/AlistGo/alist/blob/11b6a6012f256facbeaf9314281321b05eeadef3/drivers/baidu_netdisk/driver.go#L180) 处改为了直接返回`d.PutRapid`的结果,结果前端报错Network Error,日志里有如下报错。阿里云盘Open用类似的方法调试可以秒传成功,我上传的文件就是我自己网盘里另一个位置的文件所以应该不是文件本身不能秒传的问题。

### Reproduction / 复现链接

.

### Config / 配置

![Image](https://github.com/user-attachments/assets/f71490af-4145-4adf-b918-37dc090be97d)

### Logs / 日志

```text
ERRO[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/gin@v1.10.0/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/gin@v1.10.0/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/gin@v1.10.0/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/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
C:/Users/KirCute/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
C:/Users/KirCute/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
C:/Users/KirCute/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
C:/Users/KirCute/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
C:/Users/KirCute/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
C:/Users/KirCute/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/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
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.