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

读取阿里网盘文件时,会报failed link: failed get link: unexpected end of JSON input错误 #4032

Closed
4 tasks done
cherl opened this issue Apr 3, 2023 · 17 comments
Closed
4 tasks done
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@cherl
Copy link

cherl commented Apr 3, 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.15.0

Driver used / 使用的存储驱动

阿里云-open

Describe the bug / 问题描述

读取阿里网盘文件时,偶发性会报failed link: failed get link: unexpected end of JSON input错误。刷新页面可能会好,可能不会。

Reproduction / 复现链接

原始请求包为:
curl 'http://xxx/api/fs/get'
-H 'Accept: application/json, text/plain, /'
-H 'Accept-Language: zh,zh-CN;q=0.9,zh-HK;q=0.8'
-H 'Authorization: xxx
-H 'Connection: keep-alive'
-H 'Content-Type: application/json;charset=UTF-8'
-H 'Cookie:xxxx'
-H 'Origin: '
-H 'Referer: http://xxx/aliyun/chenquan/%E5%BD%B1%E8%A7%86/%E7%94%B5%E8%A7%86%E5%89%A7/%E8%90%8C%E9%B8%A1%E5%B0%8F%E9%98%9F%20%E7%AC%AC%E5%9B%9B%E5%AD%A3/%E8%90%8C%E9%B8%A1%E5%B0%8F%E9%98%9F%20%E7%AC%AC%E5%9B%9B%E5%AD%A3%20%E7%AC%AC25%E9%9B%86.mp4'
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36'
--data-raw '{"path":"/aliyun/chenquan/影视/电视剧/萌鸡小队 第四季/萌鸡小队 第四季 第25集.mp4","password":""}'
--compressed
--insecure

Logs / 日志

No response

@cherl cherl added the bug Something isn't working label Apr 3, 2023
@welcome
Copy link

welcome bot commented Apr 3, 2023

Thanks for opening your first issue here! Be sure to follow the issue template!

@shaopak
Copy link

shaopak commented Apr 3, 2023

v3.13.2同样存在这个问题,我是部署在本地的

@a1768623020
Copy link

a1768623020 commented Apr 3, 2023

巧了,我今天也出现同样的问题,我还以为是我的问题,版本3.14.0
日志内容如下
2023/04/01 17:44:15.616667 ERROR RESTY Post "https://api.nn.ci/alist/ali_open/token": context deadline exceeded (Client.Timeout exceeded while awaiting headers), Attempt 1
2023/04/01 17:44:44.892279 ERROR RESTY invalid character 'T' looking for beginning of value, Attempt 2
2023/04/02 22:45:39.821300 ERROR RESTY Post "https://api.nn.ci/alist/ali_open/token": net/http: TLS handshake timeout, Attempt 1
2023/04/03 11:59:05.706788 ERROR RESTY unexpected end of JSON input, Attempt 1
2023/04/03 11:59:14.988076 ERROR RESTY unexpected end of JSON input, Attempt 1
2023/04/03 12:00:27.821061 ERROR RESTY unexpected end of JSON input, Attempt 1
2023/04/03 12:00:43.769595 ERROR RESTY unexpected end of JSON input, Attempt 1
2023/04/03 12:01:44.738278 ERROR RESTY unexpected end of JSON input, Attempt 1
2023/04/03 12:01:48.191425 ERROR RESTY unexpected end of JSON input, Attempt 1

@xiaohuwei
Copy link

就是这个问题 今天也遇到过

@su7th
Copy link

su7th commented Apr 3, 2023

image

@anwen-anyi
Copy link
Contributor

今天周一 应该是阿里8点多开始上班后改了什么东西导致的

日志补充

�[31mERRO�[0m[2023-04-03 11:57:49] failed link /TrollStore/lightricks-Leap全家桶/Facetune_3.5.1_Crack.tipa: unexpected end of JSON input
failed get link
github.com/alist-org/alist/v3/internal/op.Link.func1
	/Desktop/git/Alist-3.1.0/alist/internal/op/fs.go:253
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2
	/Desktop/git/Alist-3.1.0/alist/pkg/singleflight/singleflight.go:193
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall
	/Desktop/git/Alist-3.1.0/alist/pkg/singleflight/singleflight.go:195
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do
	/Desktop/git/Alist-3.1.0/alist/pkg/singleflight/singleflight.go:108
github.com/alist-org/alist/v3/internal/op.Link
	/Desktop/git/Alist-3.1.0/alist/internal/op/fs.go:260
github.com/alist-org/alist/v3/internal/fs.link
	/Desktop/git/Alist-3.1.0/alist/internal/fs/link.go:19
github.com/alist-org/alist/v3/internal/fs.Link
	/Desktop/git/Alist-3.1.0/alist/internal/fs/fs.go:35
github.com/alist-org/alist/v3/server/handles.FsGet
	/Desktop/git/Alist-3.1.0/alist/server/handles/fsread.go:289
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/context.go:174
github.com/alist-org/alist/v3/server/middlewares.Auth
	/Desktop/git/Alist-3.1.0/alist/server/middlewares/auth.go:67
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/context.go:174
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	/Desktop/git/Alist-3.1.0/alist/server/middlewares/check.go:14
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/context.go:174
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/context.go:174
github.com/gin-gonic/gin.LoggerWithConfig.func1
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/context.go:174
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/gin.go:620
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/gin.go:576
net/http.serverHandler.ServeHTTP
	C:/develop/golang/src/net/http/server.go:2947
net/http.(*conn).serve
	C:/develop/golang/src/net/http/server.go:1991
runtime.goexit
	C:/develop/golang/src/runtime/asm_amd64.s:1594
failed link

@coldnight9
Copy link

我也有这个问题

@seven3s
Copy link

seven3s commented Apr 3, 2023

我用Nova播放也不行,但是web端可以,用的replit免费搭建的,开始还以为是replit的问题

@seven3s
Copy link

seven3s commented Apr 3, 2023

@cherl 你的Authorization 暴露了你的token

@JasonLongBug
Copy link

同样遇到了

@imkratos
Copy link

imkratos commented Apr 3, 2023

同样的问题

@mixiaobu
Copy link

mixiaobu commented Apr 3, 2023

同样

@seven3s
Copy link

seven3s commented Apr 3, 2023

阿里云盘修复了,可以用了,兄弟们

@xhofe
Copy link
Collaborator

xhofe commented Apr 3, 2023

目测是阿里云盘抽风

@cherl
Copy link
Author

cherl commented Apr 3, 2023

@cherl你的授权暴露了你的令牌

收到,已修改。

@xhofe xhofe added the wontfix This will not be worked on label Apr 4, 2023
@github-actions
Copy link

github-actions bot commented Apr 4, 2023

Hello @cherl, this issue will not be worked on and will be closed.
你好 @cherl,这不会被处理,将被关闭。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2023
@mixiaobu
Copy link

mixiaobu commented Apr 6, 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 wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests