vrtmrz / obsidian-livesync

MIT License
5.02k stars 164 forks source link

Remote Configuration Error #419

Open xushier opened 6 months ago

xushier commented 6 months ago

I have created a container using Traefik and CouchDB that can be accessed via HTTPS on the public network. When I visit it in the browser, it displays the following interface, which should be correct. image

After filling out the configuration in Obsidian, I have checked and found all the settings to be correct. However, when I click on the test button, an error occurs, as shown in the image below. Which part of the configuration should I check to troubleshoot this issue? image image image

vrtmrz commented 6 months ago

Sorry for being late! Indeed, it is strange...

From the situation, connecting with the request API of Obsidian has succeeded. However, it seems like we have failed with the fetch API of the browser.

In this case, there could be a possible CORS problem, but this is information that we are not informed about. Would you mind trying to open DevTools by pressing Ctrl+Shift+i, and let me know what errors you see in the Network pane?

xushier commented 6 months ago

Sure. The following image shows the information in the Network panel of DevTools when I click Test.

image

image

arkeane commented 5 months ago

Same problem with version 1.6.3 only does that when trying to connect via https. http does not work if behind reverse proxy

ericober commented 2 months ago

I'm on MacOS with latest Obsidian (v1.6.7 and Obsidian-Livesync v0.23.20. I have Obsidian-Livesync running on separate homelab server with Docker and Traefik setup successfully. I'm still experiencing the same TypeError: Failed to Fetch. Similar logs to user Xushier.

Did anyone figure out how to get this working?