LBF38 / obsidian-syncthing-integration

Obsidian plugin for Syncthing integration
MIT License
185 stars 6 forks source link

[BUG] Can't check API status on Android after manually adding API in the plugin options #177

Open GrimmDrippah opened 9 months ago

GrimmDrippah commented 9 months ago

Describe the bug After manually typing the API in the plugin options, an error comes up: "unexpected token: '<', "<a href = "h"... is not valid JSON"

To Reproduce

  1. In android, go into the Obsidian settings.
  2. Scroll down until the separate settings for each community plugin is seen.
  3. Go into "Syncthing Integration" settings.
  4. Manually type in API key from other device (in my case, Linux Mint laptop).
  5. Click on "Check API Status".
  6. Error is shown.

Expected behavior I expected to see a "pong" message received from the API check, just like how it does on my Linux system.

Screenshot Screenshot_20240227-000603_Obsidian

Desktop:

Smartphone:

LBF38 commented 9 months ago

Hi, thanks for the report ! I think that this should be resolved thanks to #102 . However, I haven't used it in a while on Android.. The plugin is more intended on desktop than mobile and development has been slowing down lately due to other projects/constraints.

I will take a closer look to this issue when I have more free time. Please expect some delay. Thanks for your understanding

GrimmDrippah commented 9 months ago

Of course! Take your time.

GottZ commented 8 months ago

can confirm the exact same error also exists when using http rather than https

lone-faerie commented 2 months ago

I got it to work by going into the Syncthing GUI and disabling TLS, and then setting the plugin to use http