sboesen / remotely-sync

fork of remotely-save with security upgrades
Apache License 2.0
212 stars 8 forks source link

[Bug]: Error: .obsidian/bookmarks.json: Request failed, status 500 #77

Open hitctc opened 11 months ago

hitctc commented 11 months ago

What happened?

When synchronizing the bookmark file, an error occurs during synchronization.

image image

After deleting the bookmark file, synchronization is normal.

What OS are you using?

macOS

What remote cloud services are you using?

webdav

Version of the plugin

The latest version just released recently.

Version of Obsidian

Version 1.4.16 (Installer 1.4.16)

Using password or not

Ensure no sensitive information

sboesen commented 11 months ago

Will try to reproduce, appreciate the bug report & sorry for the error when syncing!

sboesen commented 11 months ago

@huachuan005 could you try something, would you mind deleting the bookmarks.json file, making sure syncing works, then enable "Sync Config Dir (experimental)" option? If you sync after enabling that option my prediction is it will error, and that is useful information to have.

I wonder if your webdav server doesn't like syncing files starting with .obsidian. If this results in errors could you please tell me more details about your webdav provider (hosted option and if so which, or self hosted and then what software are you using)

Thank you!

hitctc commented 11 months ago

@sboesen I have just tried deleting the bookmarks.json file. Previously, I did not enable "Synchronize Configuration Directory" and encountered an error. Now that I have enabled the option of "Synchronize Configuration Directory" and synchronized again, there is no error prompt. Everything is normal. Because I am not used to synchronizing the .obsidian directory in the past, which may cause anomalies on multiple devices, it is possible that the synchronization error issue was caused by having the bookmarks.json file without enabling "Synchronize Configuration Directory".

My webdav service is provided by a home NAS

sboesen commented 11 months ago

Hmm, that shouldn't be a problem then - will need to see if I can reproduce the issue. Maybe the best workaround for now will be adding a separate option to sync just bookmarks.json, and it can be disabled if it is causing sync issues (which still doesn't make sense to me).

Thanks for your help troubleshooting and the details about your issue!

sboesen commented 11 months ago

@huachuan005 I've added an option to disable bookmark sync for now. Could you let me know if that works for you?

Can you also let me know what software you use to setup webdav locally? Will help me reproduce the issue. Thank you!

sboesen commented 11 months ago

Added in https://github.com/sboesen/remotely-sync/releases/tag/0.4.32.