Molunerfinn / PicGo

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

[Bug]: 无法上传至阿里云oss,已按教程一步步配置 #1250

Closed Shuis004 closed 5 months ago

Shuis004 commented 5 months ago

前置阅读 | Pre-reading

PicGo的版本 | PicGo Version

v2.3.1

系统信息 | System Information

Windows

问题重现 | Bug reproduce

感觉我这个问题应该有很多人出现过,我也看了很多错误示范反复检查,但就是无法正常运行,很抱歉打扰到作者,烦请作者帮我看看问题出现在哪里🥹。 按照步骤一步步设置,但就是无法成功上传图片。阿里云oss配置如下 Screenshot 2024-06-06 233112 日志显示403,但我反复检查了KeyId和KeySecret,我是从阿里云oss下载的用户信息csv文件中直接复制粘贴的,应该不会出错的呀。甚至我从obsidian中已经成功运行的remotely-save插件里复制了同样的id和secret,也还是无法上传。 image

相关日志 | Logs

2024-06-06 23:45:33 [PicGo ERROR] { "method": "PUT", "url": "https://lidddpic.oss-cn-shenzhen.aliyuncs.com/Screenshot%202023-11-05%20105620.png", "statusCode": 403, "message": "Request failed with status code 403", "stack": {}, "response": { "status": 403, "statusCode": 403, "body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n AccessDenied\n You have no right to access this object because of bucket acl.\n 6661D99C9935E338390F6F6B\n lidddpic.oss-cn-shenzhen.aliyuncs.com\n 0003-00000001\n https://api.aliyun.com/troubleshoot?q=0003-00000001\n\n" } }

Molunerfinn commented 5 months ago

应该是你的上传的文件名里含有转义字符 尝试勾选时间戳重命名再上传试试

Shuis004 commented 5 months ago

应该是你的上传的文件名里含有转义字符 尝试勾选时间戳重命名再上传试试

你好,我勾选了,但还是无法上传呀?怎么回事呢,而且还是403错误 2024-06-07 08:52:02 [PicGo ERROR] { "method": "PUT", "url": "https://lidddpic.oss-cn-shenzhen.aliyuncs.com/202406070852293.png", "statusCode": 403, "message": "Request failed with status code 403", "stack": {}, "response": { "status": 403, "statusCode": 403, "body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n AccessDenied\n You have no right to access this object because of bucket acl.\n 666259B2E144DC3038037541\n lidddpic.oss-cn-shenzhen.aliyuncs.com\n 0003-00000001\n https://api.aliyun.com/troubleshoot?q=0003-00000001\n\n" } }

Molunerfinn commented 5 months ago

那就是你的配置项有问题,导致签名校验不过。可以打开配置文件 看看key 或者 secrect 有没有多个空格之类的

Shuis004 commented 5 months ago

我已经检查了超级多遍了🥹。重复地复制粘贴,就是不行。