Skip to content

阿里云盘下载链接失效,提示错误0002-00000069:URL签名已过期 #5547

@9-2-1

Description

@9-2-1

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

Driver used / 使用的存储驱动

Aliyunopen

Describe the bug / 问题描述

启动 Alist 服务器连接阿里云盘后,有时文件会下载出错,会获得一些疑似错误报告的内容:

...Reponse: \u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cError\u003e\n  \u003cCode\u003eAccessDenied\u003c/Code\u003e\n  \u003cMessage\u003eRequest has expired.\u003c/Message\u003e\n  \u003cRequestId\u003e655B726DCE3E4E36386267CC\u003c/RequestId\u003e\n  \u003cHostId\u003ecn-beijing-data.aliyundrive.net\u003c/HostId\u003e\n  \u003cExpires\u003e2023-11-20T14:18:32.000Z\u003c/Expires\u003e\n  \u003cServerTime\u003e2023-11-20T14:51:25.000Z\u003c/ServerTime\u003e\n  \u003cEC\u003e0002-00000069\u003c/EC\u003e\n  \u003cRecommendDoc\u003ehttps://api.aliyun.com/troubleshoot?q=0002-00000069\u003c/RecommendDoc\u003e\n\u003c/Error\u003e\n","data":null}

将 Response 后面的内容复制后转换结果如下:

<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>AccessDenied</Code>
  <Message>Request has expired.</Message>
  <RequestId>655B726DCE3E4E36386267CC</RequestId>
  <HostId>cn-beijing-data.aliyundrive.net</HostId>
  <Expires>2023-11-20T14:18:32.000Z</Expires>
  <ServerTime>2023-11-20T14:51:25.000Z</ServerTime>
  <EC>0002-00000069</EC>
  <RecommendDoc>https://api.aliyun.com/troubleshoot?q=0002-00000069</RecommendDoc>
</Error>
","data":null}

查看https://api.aliyun.com/troubleshoot?q=0002-00000069后会发现“URL签名已过期”的提示。

Reproduction / 复现链接

重启Alist后可以正常下载,一段时间后会下载失败。猜想:同一文件下载一次后隔一段时间再次下载就会失败,暂时没有验证。

Config / 配置

{
  "force": false,
  "site_url": "",
  "cdn": "",
  "jwt_secret": "...",
  "token_expires_in": 48,
  "database": {
    "type": "sqlite3",
    "host": "",
    "port": 0,
    "user": "",
    "password": "",
    "name": "",
    "db_file": "D:\\data\\data.db",
    "table_prefix": "x_",
    "ssl_mode": ""
  },
  "scheme": {
    "address": "localhost",
    "http_port": 5244,
    "https_port": -1,
    "force_https": false,
    "cert_file": "",
    "key_file": "",
    "unix_file": "",
    "unix_file_perm": ""
  },
  "temp_dir": "D:\\data\\temp",
  "bleve_dir": "D:\\data\\bleve",
  "log": {
    "enable": true,
    "name": "D:\\data\\log\\log.log",
    "max_size": 10,
    "max_backups": 5,
    "max_age": 28,
    "compress": false
  },
  "delayed_start": 0,
  "max_connections": 0,
  "tls_insecure_skip_verify": true
}

image

image

Logs / 日志

�[31mERRO�[0m[2023-11-20 21:46:47] GET /dav/aliyun/kopia/kopia.repository.f http request [https://cn-beijing-data.aliyundrive.net/U028UiXN%2F364632050%2F6503f4fc3ad3288cb0444969983ca7884638cb09%2F6503f4fce91f6d1410774710bd833aeafb718f89?di=bj29&dr=364632050&f=6503f4fc3ad3288cb0444969983ca7884638cb09&response-content-disposition=attachment%3B%20filename%2A%3DUTF-8%27%27kopia.repository.f&security-token=CAIS%2BgF1q6Ft5B2y########################%2BkHK8aHphyw71FlI1KkyvmxgHT6gsgAA%3D%3D&u=b996958d7a3343c88e278d844f1b7315&x-oss-access-key-id=STS.NSn3auWRFnbkHcpgNjXTDgFdV&x-oss-expires=1700486231&x-oss-signature=pW%2F0KOiU0ecVnlRskfTZmYsZNTfGTVlyhIKSOnOhPSU%3D&x-oss-signature-version=OSS2] failure,status: 403 response:<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>AccessDenied</Code>
  <Message>Request has expired.</Message>
  <RequestId>655B63464B9C1334353E9F5E</RequestId>
  <HostId>cn-beijing-data.aliyundrive.net</HostId>
  <Expires>2023-11-20T13:17:11.000Z</Expires>
  <ServerTime>2023-11-20T13:46:46.000Z</ServerTime>
  <EC>0002-00000069</EC>
  <RecommendDoc>https://api.aliyun.com/troubleshoot?q=0002-00000069</RecommendDoc>
</Error> 
[GIN] 2023/11/20 - 21:46:47 | 500 |     60.8056ms |       127.0.0.1 | GET      "/dav/aliyun/kopia/kopia.repository.f"
�[31mERRO�[0m[2023-11-20 21:46:49] webdav proxy error: http request [https://cn-beijing-data.aliyundrive.net/U028UiXN%2F364632050%2F6503f4fc3ad3288cb0444969983ca7884638cb09%2F6503f4fce91f6d1410774710bd833aeafb718f89?di=bj29&dr=364632050&f=6503f4fc3ad3288cb0444969983ca7884638cb09&response-content-disposition=attachment%3B%20filename%2A%3DUTF-8%27%27kopia.repository.f&security-token=CAIS%2BgF1q6Ft5B################1KkyvmxgHT6gsgAA%3D%3D&u=b996958d7a3343c88e278d844f1b7315&x-oss-access-key-id=STS.NSn3auWRFnbkHcpgNjXTDgFdV&x-oss-expires=1700486231&x-oss-signature=pW%2F0KOiU0ecVnlRskfTZmYsZNTfGTVlyhIKSOnOhPSU%3D&x-oss-signature-version=OSS2] failure,status: 403 response:<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>AccessDenied</Code>
  <Message>Request has expired.</Message>
  <RequestId>655B6348C93A583931F8D1B3</RequestId>
  <HostId>cn-beijing-data.aliyundrive.net</HostId>
  <Expires>2023-11-20T13:17:11.000Z</Expires>
  <ServerTime>2023-11-20T13:46:48.000Z</ServerTime>
  <EC>0002-00000069</EC>
  <RecommendDoc>https://api.aliyun.com/troubleshoot?q=0002-00000069</RecommendDoc>
</Error> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions