Molunerfinn / PicGo

:rocket:A simple & beautiful tool for pictures uploading built by vue-cli-electron-builder
https://molunerfinn.com/PicGo/
MIT License
24.25k stars 2.24k forks source link

[Bug]: 图片上传不成功 #1127

Closed you-hengh closed 1 year ago

you-hengh commented 1 year ago

前置阅读 | Pre-reading

PicGo的版本 | PicGo Version

2.4.0-beta.1

系统信息 | System Information

Mac(arm64)

问题重现 | Bug reproduce

上传图片 状态码401

相关日志 | Logs

2023-05-12 20:43:50 [PicGo INFO] Before transform 
2023-05-12 20:43:50 [PicGo INFO] Transforming... Current transformer is [path] 
2023-05-12 20:43:50 [PicGo INFO] Before upload 
2023-05-12 20:43:50 [PicGo INFO] beforeUploadPlugins: renameFn running 
2023-05-12 20:43:50 [PicGo INFO] Uploading... Current uploader is [upyun] 
2023-05-12 20:43:50 [PicGo WARN] failed 
2023-05-12 20:43:50 [PicGo ERROR] {
  "method": "PUT",
  "url": "https://v0.api.upyun.com/images-bed-bddxg/blog/202305122043035.png",
  "statusCode": 401,
  "message": "Request failed with status code 401",
  "stack": {},
  "response": {
    "status": 401,
    "statusCode": 401,
    "body": {
      "msg": "signature error",
      "code": 40100005,
      "id": "8dd9527818a1d2b219c93fdc5f0b8fa5"
    }
  }
} 
2023-05-12 20:43:50 [PicGo ERROR] {
  "method": "PUT",
  "url": "https://v0.api.upyun.com/images-bed-bddxg/blog/202305122043035.png",
  "statusCode": 401,
  "message": "Request failed with status code 401",
  "stack": {},
  "response": {
    "status": 401,
    "statusCode": 401,
    "body": {
      "msg": "signature error",
      "code": 40100005,
      "id": "8dd9527818a1d2b219c93fdc5f0b8fa5"
    }
  }
} 
Molunerfinn commented 1 year ago

401是你配置不对。