Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typora使用smms图床报错 #56

Closed
MC-dusk opened this issue Nov 26, 2022 · 4 comments
Closed

typora使用smms图床报错 #56

MC-dusk opened this issue Nov 26, 2022 · 4 comments

Comments

@MC-dusk
Copy link

MC-dusk commented Nov 26, 2022

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
Copy link
Owner

pluveto commented Dec 5, 2022

Try to add a proxy before it

@MC-dusk
Copy link
Author

MC-dusk commented Dec 5, 2022

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

@pluveto
Copy link
Owner

pluveto commented Dec 5, 2022 via email

@MC-dusk
Copy link
Author

MC-dusk commented Dec 5, 2022

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.

@pluveto pluveto closed this as completed Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants