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

Onedrive文件夹内文件过多时响应时间过长导致Timeout #7506

Open
4 tasks done
shing-yu opened this issue Nov 16, 2024 · 1 comment
Open
4 tasks done

Onedrive文件夹内文件过多时响应时间过长导致Timeout #7506

shing-yu opened this issue Nov 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@shing-yu
Copy link

shing-yu commented Nov 16, 2024

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 版本

3.39.1

Driver used / 使用的存储驱动

Onedrive

Describe the bug / 问题描述

rt
当一个文件夹内有太多文件时(本例为5814个),会致使微软官方api响应时间过长导致client timeout
(前端表现为转圈圈)

也许可以把单次获取数(参数$top)由5000改为更小的值并进行分页获取
https://learn.microsoft.com/zh-cn/onedrive/developer/rest-api/api/driveitem_list_children?view=odsp-graph-online

Reproduction / 复现链接

https://txts.shingyu.cn

Config / 配置

image

Logs / 日志

Nov 16 23:26:13 VM-16-14-ubuntu alist[3208329]: 2024/11/16 23:26:13.385575 WARN RESTY Get "https://graph.microsoft.com/v1.0/me/drive/root:/output:/children?$top=5000&$expand=thumbnails($select=medium)&$select=id,name,size,fileSystemInfo,content.downloadUrl,file,parentReference": context deadline exceeded (Client.Timeout exceeded while awaiting headers), Attempt 1
Nov 16 23:26:43 VM-16-14-ubuntu alist[3208329]: 2024/11/16 23:26:43.512524 WARN RESTY Get "https://graph.microsoft.com/v1.0/me/drive/root:/output:/children?$top=5000&$expand=thumbnails($select=medium)&$select=id,name,size,fileSystemInfo,content.downloadUrl,file,parentReference": context deadline exceeded (Client.Timeout exceeded while awaiting headers), Attempt 2
Nov 16 23:27:13 VM-16-14-ubuntu alist[3208329]: 2024/11/16 23:27:13.649055 WARN RESTY Get "https://graph.microsoft.com/v1.0/me/drive/root:/output:/children?$top=5000&$expand=thumbnails($select=medium)&$select=id,name,size,fileSystemInfo,content.downloadUrl,file,parentReference": context deadline exceeded (Client.Timeout exceeded while awaiting headers), Attempt 3
Nov 16 23:27:43 VM-16-14-ubuntu alist[3208329]: 2024/11/16 23:27:43.956975 WARN RESTY Get "https://graph.microsoft.com/v1.0/me/drive/root:/output:/children?$top=5000&$expand=thumbnails($select=medium)&$select=id,name,size,fileSystemInfo,content.downloadUrl,file,parentReference": context deadline exceeded (Client.Timeout exceeded while awaiting headers), Attempt 4
Nov 16 23:27:43 VM-16-14-ubuntu alist[3208329]: 2024/11/16 23:27:43.957022 ERROR RESTY Get "https://graph.microsoft.com/v1.0/me/drive/root:/output:/children?$top=5000&$expand=thumbnails($select=medium)&$select=id,name,size,fileSystemInfo,content.downloadUrl,file,parentReference": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
@shing-yu shing-yu added the bug Something isn't working label Nov 16, 2024
@dnslin
Copy link

dnslin commented Nov 19, 2024

同样出现这种情况

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

No branches or pull requests

2 participants