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]: upload error #1292

Closed jinzhao-data closed 3 days ago

jinzhao-data commented 3 days ago

前置阅读 | Pre-reading

PicGo的版本 | PicGo Version

2.4.0

系统信息 | System Information

Mac(arm64)

问题重现 | Bug reproduce

  1. obsidian 拖拽上传

  2. image

  3. image

相关日志 | Logs

2024-11-19 14:01:20 [PicGo ERROR] ------Error Stack Begin------ TypeError: Cannot read properties of null (reading 'startsWith') at se (/Applications/PicGo.app/Contents/Resources/app.asar/node_modules/picgo/dist/index.cjs.js:1:1964) at /Applications/PicGo.app/Contents/Resources/app.asar/node_modules/picgo/dist/index.cjs.js:1:37193 at Array.map () at Object.handle (/Applications/PicGo.app/Contents/Resources/app.asar/node_modules/picgo/dist/index.cjs.js:1:37164) at $e.doTransform (/Applications/PicGo.app/Contents/Resources/app.asar/node_modules/picgo/dist/index.cjs.js:1:16702) at $e.start (/Applications/PicGo.app/Contents/Resources/app.asar/node_modules/picgo/dist/index.cjs.js:1:15927) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Tt.upload (/Applications/PicGo.app/Contents/Resources/app.asar/node_modules/picgo/dist/index.cjs.js:1:71270) at async Object.upload (/Applications/PicGo.app/Contents/Resources/app.asar/background.js:2:653584) at async jn (/Applications/PicGo.app/Contents/Resources/app.asar/background.js:2:656251) -------Error Stack End------- 2024-11-19 14:01:20 [PicGo WARN] [PicGo Server] upload failed, see picgo.log for more detail ↑

Molunerfinn commented 3 days ago

参考前序 issue,请去ob反馈

jinzhao-data commented 2 days ago

picgo的权限问题,ob 1.74版本不给本地图片文件夹访问权限会有同样错误,给了权限就没问题。ob 1.77 在拖拽的过程中,picgo没有权限申请的对话了。

Molunerfinn commented 2 days ago

权限申请对话框不是 picgo 提供的功能 是系统级别的。如果你没有提供权限 那自然无法防问