转载于:https://blog.youkuaiyun.com/weixin_42072280/article/details/119542805
问题
在typora中验证图片上传选项时出现问题:
StatusCodeError: 404 - {“message”:“Not Found”,“documentation_url”:“https://docs.github.com/rest/reference/repos#create-or-update-file-contents”}
方案
自己在github生成token的时候,没有勾选下面的那个repo,就一直上传不成功,血和泪的教训啊,一定要勾上repo,一定要勾上repo。
注意:自己github的默认分支名为main,不是master
所以
仓库名:[github账号]/[仓库名]
设定分支名:main
设定token
指定存储路径:随便写
设定自定义域名:https://cdn.jsdelivr.net/gh/[github账号]/[仓库名]@main

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-VF1plJ5c-1653702151684)(https://raw.githubusercontent.com/xkyvvv/blogpic3/main/img/202205280941931.png)]

被折叠的 条评论
为什么被折叠?



