2021-04-29 13:20:16 [PicGo INFO] Before transform
2021-04-29 13:20:16 [PicGo INFO] Transforming... Current transformer is [path]
2021-04-29 13:20:16 [PicGo INFO] Before upload
2021-04-29 13:20:16 [PicGo INFO] beforeUploadPlugins: renameFn running
2021-04-29 13:20:17 [PicGo INFO] Uploading... Current uploader is [githubPlus]
2021-04-29 13:20:18 [PicGo ERROR]
------Error Stack Begin------
HttpError: path cannot start with a slash: {"resource":"Commit","field":"path","code":"invalid"}
at C:\Users\One\AppData\Roaming\picgo\node_modules\@octokit\request\dist-node\index.js:68:23
at processTicksAndRejections (internal/process/task_queues.js:89:5)
at async Octo.upload (C:\Users\One\AppData\Roaming\picgo\node_modules\picgo-plugin-github-plus\dist\lib\octokit.js:114:19)
at async Object.handle (C:\Users\One\AppData\Roaming\picgo\node_modules\picgo-plugin-github-plus\dist\index.js:142:5)
at async Lifecycle.doUpload (D:\soft\PicGo\resources\app.asar\node_modules\picgo\dist\src\core\Lifecycle.js:77:9)
at async Lifecycle.start (D:\soft\PicGo\resources\app.asar\node_modules\picgo\dist\src\core\Lifecycle.js:23:13)
at async PicGo.upload (D:\soft\PicGo\resources\app.asar\node_modules\picgo\dist\src\core\PicGo.js:193:21)
at async Object.upload (D:\soft\PicGo\resources\app.asar\background.js:16:28227)
at async At (D:\soft\PicGo\resources\app.asar\background.js:16:36945)
-------Error Stack End-------
GitHub图床可以上传成功日志如下
2021-04-29 13:19:22 [PicGo INFO] Before transform
2021-04-29 13:19:22 [PicGo INFO] Transforming... Current transformer is [path]
2021-04-29 13:19:22 [PicGo INFO] Before upload
2021-04-29 13:19:22 [PicGo INFO] beforeUploadPlugins: renameFn running
2021-04-29 13:19:24 [PicGo INFO] Uploading... Current uploader is [github]
2021-04-29 13:19:26 [PicGo SUCCESS]
https://raw.githubusercontent.com/One010101/picgo/master/img/xxxxxx.png
github plus 上传失败,日志如下
GitHub图床可以上传成功日志如下