pluveto / upgit

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

typora使用smms图床报错 #56

Closed MC-dusk closed 1 year ago

MC-dusk commented 1 year ago

open C:\Users\zzz\AppData\Roaming\Typora\extensions: The system cannot find the file specified.

这是要自己新建一个文件夹extensions,然后下载代码库里面对应的比如smms.jsonc放进去?readme里面没写啊。

而且做了以上步骤还是不行,Post "https://sm.ms/api/v2/upload": net/http: TLS handshake timeout,我猜是被樯了?

smms.jsonc里面换成smms.app域名也不行,换成"url": "https://smms.app/api/v2/upload",,报错Failed: rawUrl path is not valid: for path data.url, key data not found

到底该怎么办,整了一下午快自闭了。

pluveto commented 1 year ago

Try to add a proxy before it

MC-dusk commented 1 year ago

But the smms has a domain (smms.app) that can be visited in China mainland. What if upgit supports that?

pluveto commented 1 year ago
        need to check its api response format---- On Mon, 2022-12-05 20:49:39  ***@***.***> wrote ---- 

But the smms has a domain (smms.app) that can be visited in China mainland. What if upgit supports that?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

MC-dusk commented 1 year ago

Ok, something interesting happened:

  1. Using typora's uploading test and Failed: rawUrl path is not valid: for path data.url, key data not found(like the first comment), this is due to the typora's test pic I think, using proxy can't solve that, but uploading my pic in typora directly is fine.
  2. The "extensions" folder is necessary, if I delete it, typora will say The system cannot find the file specified. I think it's the upgit's bug because the readme didn't write that I should put a "extensions" folder.
  3. I don't know why, but I put smms.jsonc and smms2.jsonc in the "extensions" folder, the former is https://sm.ms/api/v2/upload and the latter is https://smms.app/api/v2/upload, and now I can upload pic without a proxy.