Picgo+typora报错:"success".false, "message"."upload error. see C.Users\lAdministratorlAppDatallRoamingllpicgollpicgo.log for more

参考:Markdown编辑器Typora+PicGo图床

笔记:

  1. 用typora粘贴图片的时候会报错,比如:
  2. 定位到Log文件,打开,查看
    -------Error Stack End------- 
    2021-11-19 13:00:27 [PicGo ERROR] 
    ------Error Stack Begin------
    StatusCodeError: 422 - {"message":"Invalid request.\n\n\"sha\" wasn't supplied.","documentation_url":"https://docs.github.com/rest/reference/repos#create-or-update-file-contents"}
        at new StatusCodeError (E:\software\picgo\resources\app.asar\node_modules\request-promise-core\lib\errors.js:32:15)
        at Request.plumbing.callback (E:\software\picgo\resources\app.asar\node_modules\request-promise-core\lib\plumbing.js:104:33)
        at Request.RP$callback [as _callback] (E:\software\picgo\resources\app.asar\node_modules\request-promise-core\lib\plumbing.js:46:31)
        at Request.self.callback (E:\software\picgo\resources\app.asar\node_modules\request\request.js:185:22)
        at Request.emit (events.js:200:13)
        at Request.<anonymous> (E:\software\picgo\resources\app.asar\node_modules\request\request.js:1154:10)
        at Request.emit (events.js:200:13)
        at IncomingMessage.<anonymous> (E:\software\picgo\resources\app.asar\node_modules\request\request.js:1076:12)
        at Object.onceWrapper (events.js:288:20)
        at IncomingMessage.emit (events.js:205:15)
    -------Error Stack End------- 
    2021-11-19 13:00:27 [PicGo WARN] [PicGo Server] upload failed, see picgo.log for more detail ↑ 
  3. 百度StatusCodeError: 422 - {"message":"Invalid request.\n\n\"sha\" wasn't supplied    找到Typora 支持 PicGo 来上传图片了   ,看到下面的评论:
  4. 尝试了下,报错原因确实是因为同名文件。
  5.  
posted @ 2021-11-19 13:06  旷野之息  阅读(3630)  评论(0编辑  收藏  举报