mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-04-29 12:28:35 +00:00
When couchDB_URI ends with a trailing slash (e.g. https://host/), the database name concatenation produces a double-slash path (https://host//obsidiannotes), which causes CouchDB to reject requests with 401 "Name or password is incorrect". Strip trailing slashes from couchDB_URI / baseUri at the path concatenation sites in: - src/common/utils.ts (_requestToCouchDBFetch, _requestToCouchDB) - src/features/LocalDatabaseMainte/CmdLocalDatabaseMainte.ts The companion fix for the replication path is in the livesync-commonlib submodule. Ref: #859