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

复制文件到115网盘报错: upload failed #7413

Closed
4 tasks done
crtf1999 opened this issue Oct 25, 2024 · 27 comments · Fixed by #7452
Closed
4 tasks done

复制文件到115网盘报错: upload failed #7413

crtf1999 opened this issue Oct 25, 2024 · 27 comments · Fixed by #7452
Labels
bug Something isn't working

Comments

@crtf1999
Copy link

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.38.0

Driver used / 使用的存储驱动

115

Describe the bug / 问题描述

  • 版本
./alist version
Built At: 2024-10-11 17:03:33 +0000
Go Version: go1.22.4 linux/amd64
Author: Xhofe <i@nn.ci>
Commit ID: c3e43ff6
Version: v3.38.0
WebVersion: 3.38.0
  • 问题

alist 所在服务器的本地文件(100M以上)复制到115网盘报错: upload failed
Snipaste_2024-10-25_13-55-59

但通过网页上传文件(100M以上)到115网盘是成功的
Snipaste_2024-10-25_13-56-45

Reproduction / 复现链接

详见描述

Config / 配置

{
  "force": false,
  "site_url": "",
  "cdn": "",
  "jwt_secret": "UrOws0KhRK6Q9MFY",
  "token_expires_in": 48,
  "database": {
    "type": "sqlite3",
    "host": "",
    "port": 0,
    "user": "",
    "password": "",
    "name": "",
    "db_file": "data/data.db",
    "table_prefix": "x_",
    "ssl_mode": "",
    "dsn": ""
  },
  "meilisearch": {
    "host": "http://localhost:7700",
    "api_key": "",
    "index_prefix": ""
  },
  "scheme": {
    "address": "0.0.0.0",
    "http_port": 5244,
    "https_port": -1,
    "force_https": false,
    "cert_file": "",
    "key_file": "",
    "unix_file": "",
    "unix_file_perm": ""
  },
  "temp_dir": "data/temp",
  "bleve_dir": "data/bleve",
  "dist_dir": "",
  "log": {
    "enable": true,
    "name": "data/log/log.log",
    "max_size": 50,
    "max_backups": 30,
    "max_age": 28,
    "compress": false
  },
  "delayed_start": 0,
  "max_connections": 0,
  "tls_insecure_skip_verify": true,
  "tasks": {
    "download": {
      "workers": 5,
      "max_retry": 1,
      "task_persistant": true
    },
    "transfer": {
      "workers": 5,
      "max_retry": 2,
      "task_persistant": true
    },
    "upload": {
      "workers": 5,
      "max_retry": 0,
      "task_persistant": false
    },
    "copy": {
      "workers": 5,
      "max_retry": 2,
      "task_persistant": true
    }
  },
  "cors": {
    "allow_origins": [
      "*"
    ],
    "allow_methods": [
      "*"
    ],
    "allow_headers": [
      "*"
    ]
  },
  "s3": {
    "enable": false,
    "port": 5246,
    "ssl": false
  }
}

Logs / 日志

ERRO[2024-10-25 13:19:18] COPY /dav/local/live/biliup/upload/2024-10-25/星星星星星的工作室/星星星星星的工作室.2024-10-25 09_39_27.ing.flv upload failed
github.com/SheltonZhu/115driver/pkg/driver.init
	<autogenerated>:1
runtime.doInit1
	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/src/runtime/proc.go:7176
runtime.doInit
	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/src/runtime/proc.go:7143
runtime.main
	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/src/runtime/proc.go:253
runtime.goexit
	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/src/runtime/asm_amd64.s:1695
github.com/alist-org/alist/v3/internal/op.Put
	/home/runner/work/alist/alist/internal/op/fs.go:587
github.com/alist-org/alist/v3/internal/fs._copy
	/home/runner/work/alist/alist/internal/fs/copy.go:91
github.com/alist-org/alist/v3/internal/fs.Copy
	/home/runner/work/alist/alist/internal/fs/fs.go:73
github.com/alist-org/alist/v3/server/webdav.copyFiles
	/home/runner/work/alist/alist/server/webdav/file.go:59
github.com/alist-org/alist/v3/server/webdav.(*Handler).handleCopyMove
	/home/runner/work/alist/alist/server/webdav/webdav.go:477
github.com/alist-org/alist/v3/server/webdav.(*Handler).ServeHTTP
	/home/runner/work/alist/alist/server/webdav/webdav.go:70
github.com/alist-org/alist/v3/server.ServeWebDAV
	/home/runner/work/alist/alist/server/webdav.go:46
github.com/gin-gonic/gin.(*Context).Next
	/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/alist-org/alist/v3/server.WebDAVAuth
	/home/runner/work/alist/alist/server/webdav.go:113
github.com/gin-gonic/gin.(*Context).Next
	/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	/home/runner/work/alist/alist/server/middlewares/check.go:14
github.com/gin-gonic/gin.(*Context).Next
	/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
	/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
	/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
	/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589
net/http.serverHandler.ServeHTTP
	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/src/net/http/server.go:3137
net/http.(*conn).serve
	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/src/net/http/server.go:2039
runtime.goexit
	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/src/runtime/asm_amd64.s:1695 
[GIN] 2024/10/25 - 13:19:18 | 500 | 39.043209803s |       127.0.0.1 | COPY     "/dav/local/live/biliup/upload/2024-10-25/星星星星星的工作室/星星星星星的工作室.2024-10-25 09_39_27.ing.flv"
@crtf1999 crtf1999 added the bug Something isn't working label Oct 25, 2024
@wixb50
Copy link

wixb50 commented Oct 25, 2024

+1,上传5m的zip都不行

@KeithW0726
Copy link

+1
准确地说,是秒传还可以用,但全新完整地上传是报错的,就是提示"Upload failed"

@crtf1999
Copy link
Author

+1 准确地说,是秒传还可以用,但全新完整地上传是报错的,就是提示“Upload failed”

是的,现在我网页上传一个未上传过的文件报:

{"StatusCode":"400","ErrorCode":"400","ErrorMessage":"Throttling.User"}: unexpected error

@Katou-Kouseki
Copy link

+1

@sun3u
Copy link

sun3u commented Oct 25, 2024

上传文件报错:{"StatusCode":"400","ErrorCode":"400","ErrorMessage":"Throttling.User"}: unexpected error

@sln162
Copy link

sln162 commented Oct 25, 2024

+1

1 similar comment
@VanTzz
Copy link

VanTzz commented Oct 25, 2024

+1

@wiserain
Copy link

can't obtain oss token from here https://uplb.115.com/3.0/gettoken.php which gives {"StatusCode":"400","ErrorCode":"400","ErrorMessage":"Throttling.User"}

@ImproveRei0
Copy link

+1 准确地说,是秒传还可以用,但全新完整地上传是报错的,就是提示“Upload failed”

是的,现在我网页上传一个未上传过的文件报:

{"StatusCode":"400","ErrorCode":"400","ErrorMessage":"Throttling.User"}: unexpected error

确实是这样,upload failed 和 400 Throttling.User 交替出现

@pengs361
Copy link

+1

@tlzwss
Copy link

tlzwss commented Oct 26, 2024

关注中

@gZDJCVcH
Copy link

+1

@MrYu719
Copy link

MrYu719 commented Oct 26, 2024

是的, 最近突然出现的问题

@Yortl
Copy link

Yortl commented Oct 26, 2024

同样的问题,期待修复,感谢

@blu-jeans
Copy link

115调整接口了,期待大佬修复

@cnpilot
Copy link

cnpilot commented Oct 27, 2024

期待大佬早日修复解决 非常感谢

@yumengbai
Copy link

+1,希望尽快修复

@jiemo9527
Copy link

mark

@a15355447898a
Copy link

相同问题,期待修复

@yxyxyz6
Copy link

yxyxyz6 commented Oct 27, 2024

+1 相同问题,期待修复

@alexallen1
Copy link

猜测是115再次收紧API以及上传限制

@libratechie
Copy link

+1

@gitcook
Copy link

gitcook commented Oct 28, 2024

等大佬修复

@jiangtao-guo
Copy link

+1

@git8477
Copy link

git8477 commented Oct 29, 2024

频繁更新接口,官方开始打击三方了,项目风险很高

@UVJkiNTQ
Copy link

orzogc/fake115uploader#74 (comment)

这个串有定位到问题。

@xhofe

@xuchuang199636
Copy link

+1 准确地说,是秒传还可以用,但全新完整地上传是报错的,就是提示"Upload failed"
@KeithW0726
+1

@xhofe xhofe closed this as completed in 216e390 Nov 1, 2024
foxxorcat added a commit to foxxorcat/alist that referenced this issue Nov 2, 2024
xrgzs pushed a commit to xrgzs/alist that referenced this issue Nov 16, 2024
…AlistGo#7413)

- Introduce a file size restriction to handle uploads more securely.
- Provide an informative error for uploads that exceed the new limit.
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.