You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read and agree to AGPL-3.0 Section 15 .
The program is provided "as is" without any warranties; you bear all risks of using it.
I have read and agree to AGPL-3.0 Section 16 .
The copyright holders and distributors are not liable for any damages resulting from the use or inability to use the program.
I confirm my description is clear, polite, helps developers quickly locate the issue, and complies with community rules.
All attempts fail: #1: oss: service returned error: StatusCode=403, ErrorCode=SecurityTokenExpired, ErrorMessage="The security token you provided has expired."
changed the title [-][BUG] Please modify the title to describe the issue you are facing[/-][+][BUG] 115open驱动上传大文件失败,提示token expired[/+]on Sep 28, 2025
Activity
github-actions commentedon Sep 28, 2025
感谢您联系OpenList。我们会尽快回复您。
Thanks for contacting OpenList. We will reply to you as soon as possible.
[-][BUG] Please modify the title to describe the issue you are facing[/-][+][BUG] 115open驱动上传大文件失败,提示token expired[/+]jyxjjj commentedon Sep 28, 2025
文件具体大小是?
shangguanhongxin commentedon Sep 28, 2025
大概40个g,官方浏览器可以上传,但通过openlist失败了
我上传带宽是50m,大概20个g以内一个小时就可以上传的文件通过openlist都上传成功了
Ya-RZ commentedon Sep 28, 2025
这个问题我大概可以回答,115open中上传文件需要先获取上传凭证,获取上传凭证的接口返回值有一个参数是上传凭证的有效期,这个有效时间差不多就是1个小时,如果上传同一个文件的时间超过1个小时,那凭证就会失效,也就不可能再上传了。
所以你的猜测没错。
文档地址:https://www.yuque.com/115yun/open/kzacvzl0g7aiyyn4
PS:115对于开发者真不友好,远不如123
shangguanhongxin commentedon Sep 28, 2025
那是不是重新获取凭证再继续上传就可以了
jyxjjj commentedon Sep 28, 2025
新的token那就不是同一个文件了,无法合并。你需要考虑增加你的带宽,或减小文件。
Ya-RZ commentedon Sep 28, 2025
大概率不行,这个上传凭证是临时的,每次上传都需要申请,每次返回的参数都不一样,除非115那边修改。我是怀疑有些接口115没有对外开放,毕竟会员可以上传的文件比你这大得多,而且你用浏览器都没问题。
PS:我昨天和115的上传斗争了一天,我被打败了,接口设计得挺垃圾,一点都不友好。
shangguanhongxin commentedon Sep 28, 2025
我去问了官方技术,回复是重新获取即可。。。。
Ya-RZ commentedon Sep 28, 2025
那就有意思了,https://www.yuque.com/115yun/open/ul4mrauo5i2uza0q ,接口返回里有一个objectid,oss会使用这个objectid返回upload_id,oss上传需要用到upload_id,上传完成后也要用upload_id通知oss合并文件,通知115那边要用objectid,但是每次上传的objectid都是不一样的,官方说可以,那就有点意思了。
很可惜我和115斗法失败了,不然可以帮你测试一下。
jyxjjj commentedon Sep 28, 2025
我重新看了下文档,确实有pick_code这个东西。
团队目前认为这个问题可能会在后续解耦完成后再支持。
所以你的情况还是建议将文件拆分(比如使用Chunked驱动)防止出错,或增加带宽到200Mbps。
我们发布5.0后,你可以重新提交此问题。
Ya-RZ commentedon Sep 28, 2025
看到了,https://www.yuque.com/115yun/open/tzvi9sbcg59msddz ,断点续传,官方说的是这个
shangguanhongxin commentedon Sep 28, 2025
搞了个python的脚本改了改可以上传大文件了,中途确实要重新获取一下上传凭证,token文件的位置参数要自定义
my115v3.1.py