halo-sigs / halo-sigs/plugin-alist

附件上传后显示加载异常

Open
#44 4 comments 0 reactions 0 assignees View on GitHub
triage/needs-information
Dominant language
Java
Stars
12
Forks
7
PR merge metrics
No merged PRs in 30d

Description

### 配置信息:
存储策略为**123云盘** Alist中开启了Web本地代理 已启用Https并配置有效证书

### 复现步骤:
1 在Halo中添加Alist存储
2 上传文件(有极大概率显示**加载失败**)

### F12信息:

![Image](https://github.com/user-attachments/assets/106dc038-9153-4708-80f7-64f8d9c4d613)

此时访问Alist的目录

![Image](https://github.com/user-attachments/assets/4232c414-21be-4398-a0ba-bff4197fb6e8)

手动点击右下角刷新后 上传的两个文件均正常显示

https://github.com/user-attachments/assets/0deb4bb5-3904-4135-86be-c318a3492904

再回到Halo附件管理页面 刷新

https://github.com/user-attachments/assets/95421673-ef29-46e9-aecc-6bf28806f4c0

如上视频 手动刷新目录后 再回到Halo附件管理 会正常显示

### 日志
#### Alist日志
```
[GIN] 2025/04/21 - 17:17:41 | 200 | 98.285µs | IP | POST "/api/auth/login"
[GIN] 2025/04/21 - 17:17:42 | 200 | 92.78138ms | IP | POST "/api/fs/remove"
[GIN] 2025/04/21 - 17:17:42 | 200 | 95.279µs | IP | POST "/api/auth/login"
[GIN] 2025/04/21 - 17:17:42 | 200 | 94.372514ms | IP | POST "/api/fs/remove"
[GIN] 2025/04/21 - 17:17:42 | 200 | 102.903µs | IP | POST "/api/auth/login"
[GIN] 2025/04/21 - 17:17:42 | 200 | 86.217109ms | IP | POST "/api/fs/remove"
[GIN] 2025/04/21 - 17:18:08 | 200 | 94.878µs | IP | POST "/api/auth/login"
WARN[2025-04-21 17:18:09] failed get /image/cs1/QQ2025421-171110.mp4: object not found
[GIN] 2025/04/21 - 17:18:09 | 200 | 161.363838ms | IP | POST "/api/fs/get"
[GIN] 2025/04/21 - 17:18:16 | 200 | 7.719547132s | IP | PUT "/api/fs/put"
[GIN] 2025/04/21 - 17:18:17 | 200 | 96.942µs | IP | POST "/api/auth/login"
[GIN] 2025/04/21 - 17:18:17 | 200 | 115.447658ms | IP | POST "/api/fs/get"
[GIN] 2025/04/21 - 17:18:17 | 200 | 78.989µs | IP | GET "/api/me"
[GIN] 2025/04/21 - 17:18:17 | 200 | 94.648µs | IP | POST "/api/auth/login"
[GIN] 2025/04/21 - 17:18:17 | 200 | 190.066µs | IP | POST "/api/fs/get"
[GIN] 2025/04/21 - 17:18:18 | 200 | 74.49µs | IP | GET "/api/me"
ERRO[2025-04-21 17:18:20] context canceled
[GIN] 2025/04/21 - 17:18:30 | 200 | 94.177µs | IP | POST "/api/auth/login"
WARN[2025-04-21 17:18:30] failed get /image/cs1/ea055268c8792945de3b9c8d00e1cd08 (1).jpeg: object not found
[GIN] 2025/04/21 - 17:18:30 | 200 | 194.145µs | IP| POST "/api/fs/get"
[GIN] 2025/04/21 - 17:18:31 | 200 | 643.806956ms | IP| PUT "/api/fs/put"
[GIN] 2025/04/21 - 17:18:31 | 200 | 125.726µs | IP | POST "/api/auth/login"
[GIN] 2025/04/21 - 17:18:56 | 200 | 233.339µs | IP| POST "/api/fs/get"
[GIN] 2025/04/21 - 17:19:17 | 200 | 95.9µs | IP| POST "/api/auth/login"
WARN[2025-04-21 17:19:17] failed get /image/cs1/ea055268c8792945de3b9c8d00e1cd08 (1).jpeg: object not found
[GIN] 2025/04/21 - 17:19:17 | 200 | 275.366µs | IP| POST "/api/fs/get"
```

#### Halo相关日志

[log1.txt](https://github.com/user-attachments/files/19832262/log1.txt)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.