Closed qbmiller closed 3 months ago
我用类似的配置,还是无法复现你的问题。你的 picgo 是 2.4.0-beta.7 么
是这个版本。我把目录所在文件夹,全删了。又重启好了。起码能上传了。 虽然 结果还是urlencode . rename插件就那几个,都试了,都这样....起码能用了...
https://xxxxxxx.cos.ap-beijing.myqcloud.com/blog/2024%2F07%2F92ba00e784715c3ef7e1ff27408e67f5.png
有点神奇 我看代码是不会对路径做 encode 只会对文件名做encode
找到问题了,我修复下
明天发个 beta.8
辛苦大佬
beta.8 已经发布,可以体验下
是不是没打包进去? 没区别。 直接无法上传了... 清空日志文件目录。重启过
`
2024-07-17 17:36:25 [PicGo INFO] register builtin shortKey command: [picgo:upload] - [CommandOrControl+Shift+P] 2024-07-17 17:36:25 [PicGo INFO] register builtin shortKey command: [picgo:upload] - [CommandOrControl+Shift+P] successfully 2024-07-17 17:36:37 [PicGo INFO] Before transform 2024-07-17 17:36:37 [PicGo INFO] Transforming... Current transformer is [path] 2024-07-17 17:36:37 [PicGo INFO] Before upload 2024-07-17 17:36:37 [PicGo INFO] beforeUploadPlugins: renameFn running 2024-07-17 17:36:37 [PicGo INFO] Uploading... Current uploader is [tcyun] 2024-07-17 17:37:09 [PicGo WARN] failed 2024-07-17 17:37:09 [PicGo ERROR] { "method": "PUT", "url": "http://nxxxxxx.cos.ap-beijing.myqcloud.com/blog/8.jpeg", "statusCode": 0, "message": "read ETIMEDOUT", "stack": "Error: read ETIMEDOUT\n at TCP.onStreamRead (node:internal/stream_base_commons:220:20)", "response": { "status": 0, "statusCode": 0, "body": "" } } 2024-07-17 17:37:09 [PicGo ERROR] { "method": "PUT", "url": "http://nxxxxx6.cos.ap-beijing.myqcloud.com/blog/8.jpeg", "statusCode": 0, "message": "read ETIMEDOUT", "stack": "Error: read ETIMEDOUT\n at TCP.onStreamRead (node:internal/stream_base_commons:220:20)", "response": { "status": 0, "statusCode": 0, "body": "" } } 2024-07-17 17:37:33 [PicGo INFO] [PicGo Server] is listening at 36677 2024-07-17 17:37:33 [PicGo INFO] register builtin shortKey command: [picgo:upload] - [CommandOrControl+Shift+P] 2024-07-17 17:37:33 [PicGo INFO] register builtin shortKey command: [picgo:upload] - [CommandOrControl+Shift+P] successfully 2024-07-17 17:37:43 [PicGo INFO] Before transform 2024-07-17 17:37:43 [PicGo INFO] Transforming... Current transformer is [path] 2024-07-17 17:37:43 [PicGo INFO] Before upload 2024-07-17 17:37:43 [PicGo INFO] beforeUploadPlugins: rename-file running 2024-07-17 17:37:43 [PicGo INFO] beforeUploadPlugins: renameFn running 2024-07-17 17:37:43 [PicGo INFO] Uploading... Current uploader is [tcyun] 2024-07-17 17:38:26 [PicGo WARN] failed 2024-07-17 17:38:26 [PicGo ERROR] { "method": "PUT", "url": "http://nxxxxx.cos.ap-beijing.myqcloud.com/blog/2024%2F07%2F4a8dc687998c91248c833e32097a9932.jpeg", "statusCode": 0, "message": "read ETIMEDOUT", "stack": "Error: read ETIMEDOUT\n at TCP.onStreamRead (node:internal/stream_base_commons:220:20)", "response": { "status": 0, "statusCode": 0, "body": "" } } 2024-07-17 17:38:26 [PicGo ERROR] { "method": "PUT", "url": "http://nxxxx.cos.ap-beijing.myqcloud.com/blog/2024%2F07%2F4a8dc687998c91248c833e32097a9932.jpeg", "statusCode": 0, "message": "read ETIMEDOUT", "stack": "Error: read ETIMEDOUT\n at TCP.onStreamRead (node:internal/stream_base_commons:220:20)", "response": { "status": 0, "statusCode": 0, "body": "" } } `
这个 timeout 是网络超时问题,这个跟你的网络环境有关,比如挂了什么代理之类的,打不通,这个需要你自己排查下网络。但是我看你日志看起来不像是升级过的样子,你的是看下这样的么?如果是你可以把你的配置文件贴上来看看,关键字段可以标*
{ "picBed": { "current": "tcyun", "uploader": "tcyun", "smms": { "token": "" }, "tcyun": { "_configName": "Default", "_id": "7188ce2f-dd95-43db-9904-62f7fddcd424", "_createdAt": 1721208215419, "_updatedAt": 1721208215419 }, "tcyun": { "_configName": "Default", "_id": "964212c9-6375-484b-9820-3e4889c32778", "_createdAt": 1721139244709, "_updatedAt": 1721208056455, "version": "v5", "secretId": "AKIxxxxWqv", "secretKey": "88xxxx0oSpx", "bucket": "nxxx136", "appId": "12xxxx", "area": "ap-beijing", "endpoint": "", "path": "blog/", "customUrl": "", "options": "", "slim": "" }, "aliyun": { "_configName": "Default", "_id": "4dcf16fb-f397-4892-b04e-7755563ce6b7", "_createdAt": 1721208221181, "_updatedAt": 1721208221181 }, "list": [ { "type": "tcyun", "name": "腾讯云COS", "visible": true }, { "type": "aliyun", "name": "阿里云OSS", "visible": true }, { "type": "smms", "name": "SM.MS", "visible": false }, { "type": "github", "name": "GitHub", "visible": false }, { "type": "qiniu", "name": "七牛云", "visible": false }, { "type": "imgur", "name": "Imgur", "visible": false }, { "type": "upyun", "name": "又拍云", "visible": false } ] }, "settings": { "shortKey": { "picgo:upload": { "enable": true, "key": "CommandOrControl+Shift+P", "name": "upload", "label": "QUICK_UPLOAD" } }, "showUpdateTip": true, "privacyEnsure": true }, "needReload": false, "uploader": { "tcyun": { "configList": [ { "_configName": "Default", "_id": "7188ce2f-dd95-43db-9904-62f7fddcd424", "_createdAt": 1721208215419, "_updatedAt": 1721208215419 } ], "defaultId": "7188ce2f-dd95-43db-9904-62f7fddcd424" }, "aliyun": { "configList": [ { "_configName": "Default", "_id": "4dcf16fb-f397-4892-b04e-7755563ce6b7", "_createdAt": 1721208221181, "_updatedAt": 1721208221181 } ], "defaultId": "4dcf16fb-f397-4892-b04e-7755563ce6b7" } } }
全部删除,重新下载安装 。 我也看不懂前端js ..要不也能调试下😄...
2024-07-18 15:21:23 [PicGo INFO] Before transform 2024-07-18 15:21:23 [PicGo INFO] Transforming... Current transformer is [path] 2024-07-18 15:21:23 [PicGo INFO] Before upload 2024-07-18 15:21:23 [PicGo INFO] beforeUploadPlugins: renameFn running 2024-07-18 15:21:23 [PicGo INFO] beforeUploadPlugins: rename-image running 2024-07-18 15:21:23 [PicGo INFO] Uploading... Current uploader is [tcyun] 2024-07-18 15:22:07 [PicGo WARN] failed 2024-07-18 15:22:07 [PicGo ERROR] { "method": "PUT", "url": "http://nexxxx.ap-beijing.myqcloud.com/blog/2024%2F07%2F2724b81df30ba6f151ee116930ccee40.jpeg", "statusCode": 0, "message": "write EPIPE", "stack": "Error: write EPIPE\n at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:98:16)", "response": { "status": 0, "statusCode": 0, "body": "" } } 2024-07-18 15:22:07 [PicGo ERROR] { "method": "PUT", "url": "http://nerxxxxos.ap-beijing.myqcloud.com/blog/2024%2F07%2F2724b81df30ba6f151ee116930ccee40.jpeg", "statusCode": 0, "message": "write EPIPE", "stack": "Error: write EPIPE\n at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:98:16)", "response": { "status": 0, "statusCode": 0, "body": "" } }
你这个配置的 blog/
后面那个 /
已经不会被转义了。你把 rename-file 的插件卸载,然后重启试试
我本地始终无法复现这个问题
macos 重启后,好了,能上传了。虽然不知道为啥,需要重启.....
https://xxx-beijing.myqcloud.com/blog/2024/07%2F634d59ca16c2667a3193074e6cbb4d12.jpeg 实际就是 https://xxx-beijing.myqcloud.com/blog/2024/07/634d59ca16c2667a3193074e6cbb4d12.jpeg 上传路径都是对, 不知道为什么显示\回显带了urlencode . 确实感觉插件问题。 辛苦大佬。 支付宝请你喝碗兰州拉面😄
能上传就好哈 谢谢支持
补充,Windows版本好像未解决
2024-08-12 20:29:51 [PicGo INFO] [PicGo Server] upload result: https://xxxxx.cos.ap-shanghai.myqcloud.com/Blog_images/2024%2F03%2F12%2F20240812202951.png 2024-08-12 20:30:15 [PicGo INFO] [PicGo Server] is listening at 63677 2024-08-12 20:30:15 [PicGo INFO] register builtin shortKey command: [picgo:upload] - [CommandOrControl+Shift+P] 2024-08-12 20:30:15 [PicGo WARN] builtin shortKey command: [picgo:upload] - [CommandOrControl+Shift+P] register failed, it's disabled 2024-08-12 20:30:35 [PicGo INFO] detect second instance 2024-08-12 20:30:39 [PicGo INFO] [PicGo Server] get the request 2024-08-12 20:30:39 [PicGo INFO] [PicGo Server] upload clipboard file 2024-08-12 20:30:39 [PicGo INFO] upload clipboard file 2024-08-12 20:30:39 [PicGo INFO] Before transform 2024-08-12 20:30:39 [PicGo INFO] Transforming... Current transformer is [path] 2024-08-12 20:30:39 [PicGo INFO] Before upload 2024-08-12 20:30:39 [PicGo INFO] beforeUploadPlugins: super-prefix running 2024-08-12 20:30:39 [PicGo INFO] beforeUploadPlugins: renameFn running 2024-08-12 20:30:39 [PicGo INFO] Uploading... Current uploader is [tcyun] 2024-08-12 20:30:39 [PicGo SUCCESS] https://xxxxx.cos.ap-shanghai.myqcloud.com/Blog_images/2024%2F03%2F12%2F20240812203039.png 2024-08-12 20:30:39 [PicGo INFO] [PicGo Server] upload result: https://xxxx.cos.ap-shanghai.myqcloud.com/Blog_images/2024%2F03%2F12%2F20240812203039.png
前置阅读 | Pre-reading
PicGo的版本 | PicGo Version
v2.4.0-beta.7
系统信息 | System Information
Mac(arm64)
问题重现 | Bug reproduce
相关日志 | Logs
2024-07-16 17:08:26 [PicGo INFO] Before transform 2024-07-16 17:08:26 [PicGo INFO] Transforming... Current transformer is [path] 2024-07-16 17:08:26 [PicGo INFO] Before upload 2024-07-16 17:08:26 [PicGo INFO] beforeUploadPlugins: renameFn running 2024-07-16 17:08:26 [PicGo INFO] Uploading... Current uploader is [tcyun] 2024-07-16 17:09:14 [PicGo WARN] failed 2024-07-16 17:09:14 [PicGo ERROR] { "method": "PUT", "url": "http://xxxxxx.cos.ap-beijing.myqcloud.com/blog%2F2024%2F07202407161708267.png", "statusCode": 0, "message": "write EPIPE", "stack": "Error: write EPIPE\n at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:98:16)", "response": { "status": 0, "statusCode": 0, "body": "" } } 2024-07-16 17:09:14 [PicGo ERROR] { "method": "PUT", "url": "http://xxxxxcos.ap-beijing.myqcloud.com/blog%2F2024%2F07202407161708267.png", "statusCode": 0, "message": "write EPIPE", "stack": "Error: write EPIPE\n at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:98:16)", "response": { "status": 0, "statusCode": 0, "body": "" } }
无插件,都删了。.db也删了重启的