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

[Bug]: server API上传失败 #291

Open
3 tasks done
abriko opened this issue Jan 27, 2025 · 0 comments
Open
3 tasks done

[Bug]: server API上传失败 #291

abriko opened this issue Jan 27, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@abriko
Copy link

abriko commented Jan 27, 2025

前置阅读 | Pre-reading

PicList的版本 | PicList Version

v2.9.7

系统信息 | System Information

Mac(arm64)

问题重现 | Bug reproduce

Hi PicList team

我遇到通过server API上传失败。
后端:AWS S3 -> Cloudflare R2

Request:

# url
http://127.0.0.1:36677/upload?picbed=aws-s3-plist&configName=default

# request header
POST /upload?picbed=aws-s3-plist&configName=default HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: en-US,en;q=0.9
Connection: keep-alive
Content-Length: 69705
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarypBWIuq8yKBL6yvty
Host: 127.0.0.1:36677
Origin: https://mp.weixin.qq.com
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: cross-site
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
sec-ch-ua: "Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "macOS"

# response header
HTTP/1.1 200 OK
Content-Type: application/json
access-control-allow-headers: *
access-control-allow-methods: POST, GET, OPTIONS
access-control-allow-origin: *
Date: Mon, 27 Jan 2025 09:09:34 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Transfer-Encoding: chunked

# response body
{"success":false,"message":"upload error. see /Users/rui/Library/Application Support/piclist/piclist.log for more detail."}

有两个奇怪的点:

  1. Log 中没有具体的错误的信息,就算把log level 开到all或者error也一样。
  2. 用piclist gui上传同一个配置是可以的。

相关日志 | Logs

2025-01-27 17:09:34 [PicList INFO] [PicList Server] get a POST request from IP: 127.0.0.1
2025-01-27 17:09:34 [PicList INFO] [PicList Server] get a formData request
2025-01-27 17:09:34 [PicList INFO] [PicList Server] upload clipboard file
2025-01-27 17:09:34 [PicList INFO] [PicList Server] upload result:
2025-01-27 17:09:34 [PicList WARN] [PicList Server] upload failed, see piclist.log for more detail ↑

@abriko abriko added the bug Something isn't working label Jan 27, 2025
@abriko abriko changed the title [Bug]: [Bug]: server API上传失败 Jan 27, 2025
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