pluveto / upgit

Another upload hub that supports clipboard. It works well with Typora, Snipaste, VSCode.
MIT License
529 stars 44 forks source link

使用 lskypro 扩展报错 `Post "7bu.top/api/upload": unsupported protocol scheme ""` #36

Closed wchen9 closed 2 years ago

wchen9 commented 2 years ago

版本是当前最新release。

pluveto commented 2 years ago

你忘了写 protocol scheme

wchen9 commented 2 years ago

加前缀 https:// 一样报错

wchen9 commented 2 years ago

抱歉,昨晚试的加 https:// 也报错了,刚刚试了一下发现报的是另一个错了。

Failed: rawUrl path is not valid: for path data.url, key url not found

wchen9 commented 2 years ago

image 使用接口调用正常,数据返回的 data.url 也有数据,不知道为啥上传不成功。uploaders.lskypro 中配置了 token 跟 host。

wchen9 commented 2 years ago

破案了,repo里面提供的lskypro.jsonc 里面的body 写的不对,需要 加一个

"token": {
    "type": "string",
    "value": "$(ext_config.token)"
}
pluveto commented 2 years ago

欢迎 PR