typora+github+picgo搭建图床401
PicGo
:rocket:A simple & beautiful tool for pictures uploading built by vue-cli-electron-builder
项目地址:https://gitcode.com/gh_mirrors/pi/PicGo
免费下载资源
·
之前使用的图床好好的突然上传图片失败了,就搜索原因StatusCodeError: 401
问题:上传图片出现错误,StatusCodeError: 401 - {“message”:"Bad credentials",“documentation_url”:“https://docs.github.com/rest”}
一会会
打开配置文件
-------Error Stack End-------
2022-08-09 21:15:54 [PicGo ERROR]
------Error Stack Begin------
StatusCodeError: 401 - {"message":"Bad credentials","documentation_url":"https://docs.github.com/rest"}
at new StatusCodeError (D:\Program Files\PicGo\resources\app.asar\node_modules\request-promise-core\lib\errors.js:32:15)
at Request.plumbing.callback (D:\Program Files\PicGo\resources\app.asar\node_modules\request-promise-core\lib\plumbing.js:104:33)
at Request.RP$callback [as _callback] (D:\Program Files\PicGo\resources\app.asar\node_modules\request-promise-core\lib\plumbing.js:46:31)
at Request.self.callback (D:\Program Files\PicGo\resources\app.asar\node_modules\request\request.js:185:22)
at Request.emit (events.js:200:13)
at Request.<anonymous> (D:\Program Files\PicGo\resources\app.asar\node_modules\request\request.js:1154:10)
at Request.emit (events.js:200:13)
at IncomingMessage.<anonymous> (D:\Program Files\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-------
刚开始搜索StatusCodeError: 401 ,大部分出现的是404的。
这个原因是分支名要写成main,不能写成master,从某一年开始github把“master”去掉了,(原来的仍然是master)
另一种说是PicGo-server设置错误,我看了下也没有错
解决方法:删掉github上老的token,创建一个新的,然后在picgo把token修改一下
- 在 Settings / Developer Setting 目录中
- 记得勾选仓库相关的属性
搞定
参考:
http://t.csdn.cn/X2AD6
GitHub 加速计划 / pi / PicGo
23.59 K
2.2 K
下载
:rocket:A simple & beautiful tool for pictures uploading built by vue-cli-electron-builder
最近提交(Master分支:1 个月前 )
917ec730 - 6 个月前
8e91582a
ISSUES CLOSED: #1237
6 个月前
更多推荐
已为社区贡献4条内容
所有评论(0)