OpenList icon indicating copy to clipboard operation
OpenList copied to clipboard

[BUG] 加载超多文件的OneDrive目录时报错554

Open shoucandanghehe opened this issue 10 months ago • 3 comments

请确认以下事项

  • [x] 我已确认阅读并同意 AGPL-3.0 第15条 。 本程序不提供任何明示或暗示的担保,使用风险由您自行承担。

  • [x] 我已确认阅读并同意 AGPL-3.0 第16条 。 无论何种情况,版权持有人或其他分发者均不对使用本程序所造成的任何损失承担责任。

  • [x] 我确认我的描述清晰,语法礼貌,能帮助开发者快速定位问题,并符合社区规则。

  • [x] 我已确认阅读了OpenList文档。

  • [x] 我已确认没有重复的问题或讨论。

  • [x] 我已确认是OpenList的问题,而不是其他原因(例如 网络 ,依赖或操作)。

  • [x] 我认为此问题必须由OpenList处理,而非第三方。

  • [x] 我已确认这个问题在最新版本中没有被修复。

OpenList 版本(必填)

v4.1.9

使用的存储驱动(必填)

OneDrive APP

问题描述(必填)

加载超多文件的OneDrive目录时报错Request failed with status code 554 目标路径26049文件,均为图片文件

Image

日志(必填)

openlist  | [GIN] 2026/01/09 - 18:10:19 | 200 |     697.599µs |   43.175.18.177 | POST     "/api/fs/list"
openlist  | DEBU[2026-01-09 18:10:21]/home/runner/work/OpenList/OpenList/server/middlewares/auth.go:73 github.com/OpenListTeam/OpenList/v4/server.Init.Auth.func11() use login token: &{ID:1 Username:admin PwdHash:* PwdTS:* Salt:* Password: BasePath:/ Role:2 Disabled:false Permission:32767 OtpSecret: SsoID: Authn: AllowLdap:true} 
openlist  | DEBU[2026-01-09 18:10:21]/home/runner/work/OpenList/OpenList/internal/op/path.go:27 github.com/OpenListTeam/OpenList/v4/internal/op.GetStorageAndActualPath() use storage:  **                   
openlist  | DEBU[2026-01-09 18:10:21]/home/runner/work/OpenList/OpenList/internal/op/fs.go:35 github.com/OpenListTeam/OpenList/v4/internal/op.list() op.List **  

浏览器控制台报错↓

{
    "message": "Request failed with status code 554",
    "name": "AxiosError",
    "stack": "AxiosError: Request failed with status code 554\n    at Kb (https://*/assets/index-BFcje_PK.js:8:258388)\n    at XMLHttpRequest.x (https://*/assets/index-BFcje_PK.js:8:263165)",
    "config": {
        "transitional": {
            "silentJSONParsing": true,
            "forcedJSONParsing": true,
            "clarifyTimeoutError": false
        },
        "adapter": [
            "xhr",
            "http",
            "fetch"
        ],
        "transformRequest": [
            null
        ],
        "transformResponse": [
            null
        ],
        "timeout": 0,
        "xsrfCookieName": "XSRF-TOKEN",
        "xsrfHeaderName": "X-XSRF-TOKEN",
        "maxContentLength": -1,
        "maxBodyLength": -1,
        "env": {},
        "headers": {
            "Accept": "application/json, text/plain, */*",
            "Content-Type": "application/json;charset=utf-8",
            "Authorization": "*"
        },
        "baseURL": "https://*/api",
        "withCredentials": false,
        "cancelToken": {
            "promise": {},
            "_listeners": []
        },
        "method": "post",
        "url": "/fs/list",
        "data": "{\"path\":\"*\",\"password\":\"\",\"page\":1,\"per_page\":30,\"refresh\":false}",
        "allowAbsoluteUrls": true
    },
    "code": "ERR_BAD_RESPONSE",
    "status": 554
}

配置文件内容(必填)

{
  "force": false,
  "site_url": "",
  "cdn": "",
  "jwt_secret": "*",
  "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://*.zt:7700",
    "api_key": "*",
    "index": "openlist"
  },
  "scheme": {
    "address": "0.0.0.0",
    "http_port": 5244,
    "https_port": -1,
    "force_https": false,
    "cert_file": "",
    "key_file": "",
    "unix_file": "",
    "unix_file_perm": "",
    "enable_h2c": false,
    "enable_h3": false
  },
  "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,
    "filter": {
      "enable": false,
      "filters": [
        {
          "cidr": "",
          "path": "/ping",
          "method": ""
        },
        {
          "cidr": "",
          "path": "",
          "method": "HEAD"
        },
        {
          "cidr": "",
          "path": "/dav/",
          "method": "PROPFIND"
        }
      ]
    }
  },
  "delayed_start": 0,
  "max_buffer_limitMB": -1,
  "mmap_thresholdMB": 4,
  "max_connections": 0,
  "max_concurrency": 64,
  "tls_insecure_skip_verify": true,
  "tasks": {
    "download": {
      "workers": 5,
      "max_retry": 1,
      "task_persistant": false
    },
    "transfer": {
      "workers": 5,
      "max_retry": 2,
      "task_persistant": false
    },
    "upload": {
      "workers": 5,
      "max_retry": 0,
      "task_persistant": false
    },
    "copy": {
      "workers": 5,
      "max_retry": 2,
      "task_persistant": false
    },
    "move": {
      "workers": 5,
      "max_retry": 2,
      "task_persistant": false
    },
    "decompress": {
      "workers": 5,
      "max_retry": 2,
      "task_persistant": false
    },
    "decompress_upload": {
      "workers": 5,
      "max_retry": 2,
      "task_persistant": false
    },
    "allow_retry_canceled": false
  },
  "cors": {
    "allow_origins": [
      "*"
    ],
    "allow_methods": [
      "*"
    ],
    "allow_headers": [
      "*"
    ]
  },
  "s3": {
    "enable": false,
    "port": 5246,
    "ssl": false
  },
  "ftp": {
    "enable": false,
    "listen": ":5221",
    "find_pasv_port_attempts": 50,
    "active_transfer_port_non_20": false,
    "idle_timeout": 900,
    "connection_timeout": 30,
    "disable_active_mode": false,
    "default_transfer_binary": false,
    "enable_active_conn_ip_check": true,
    "enable_pasv_conn_ip_check": true
  },
  "sftp": {
    "enable": false,
    "listen": ":5222"
  },
  "last_launched_version": "v4.1.9",
  "proxy_address": ""
}
Image

复现链接(可选)

No response

shoucandanghehe avatar Jan 09 '26 18:01 shoucandanghehe

感谢您联系OpenList。我们会尽快回复您。 Thanks for contacting OpenList. We will reply to you as soon as possible.

github-actions[bot] avatar Jan 09 '26 18:01 github-actions[bot]

后端日志没问题,前端报错554,大概率是被中间件拦截请求了。程序是不是部署在云服务器,然后启用了防火墙

mkitsdts avatar Jan 12 '26 00:01 mkitsdts

后端日志没问题,前端报错554,大概率是被中间件拦截请求了。程序是不是部署在云服务器,然后启用了防火墙

哦知道了,cdn回源超时了 我把超时时间放宽就好了🫡

shoucandanghehe avatar Jan 13 '26 20:01 shoucandanghehe