You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no option to specify a one way sync (e.g. download only).
Unfortunately when trying to workaround this with a couchdb readonly user (via a validation function) even if the file in storage has not been changed, the daemon will attempt to update the document on remote and exit on receiving a unexpected response.
12/17/2024, 11:01:13 PM 10 WATCH: PROCESS DONE: file.md
error: Uncaught (in promise) {
id: "file.md",
rev: "1-0123456789abcdef",
error: "forbidden",
reason: "Read-only access. Updates are not allowed.",
name: "forbidden",
status: 500,
message: "Read-only access. Updates are not allowed.",
stack: "Error\n" +
" at Object.generateErrorFromResponse (file:///var/lib/notes/.cache/deno/npm/registry.npmjs.org/pouchdb-errors/8.0.1/lib/index.js:100:18)\n" +
" at file:///var/lib/notes/.cache/deno/npm/registry.npmjs.org/pouchdb-adapter-http/8.0.1/lib/index.js:258:32\n" +
" at Array.map (<anonymous>)\n" +
" at fetchJSON (file:///var/lib/notes/.cache/deno/npm/registry.npmjs.org/pouchdb-adapter-http/8.0.1/lib/index.js:256:33)\n" +
" at Object.runMicrotasks (ext:core/01_core.js:691:26)\n" +
" at processTicksAndRejections (ext:deno_node/_next_tick.ts:57:10)\n" +
" at runNextTicks (ext:deno_node/_next_tick.ts:75:3)\n" +
" at eventLoopTick (ext:core/01_core.js:182:21)\n" +
" at async klass.HttpPouch.api._bulkDocs (file:///var/lib/notes/.cache/deno/npm/registry.npmjs.org/pouchdb-adapter-http/8.0.1/lib/index.js:753:22)",
docId: "file.md"
}
The text was updated successfully, but these errors were encountered:
I've also been thinking about this. Earlier this month I started to prototype a solution, but ran into #20 which limited my ability to test. Here's my initial patch, which stubs out the dispatcher function that sends events to the other peers (I did this for the local storage peer, but it could easily be moved to the Peer base class for all peers):
There is no option to specify a one way sync (e.g. download only).
Unfortunately when trying to workaround this with a couchdb readonly user (via a validation function) even if the file in storage has not been changed, the daemon will attempt to update the document on remote and exit on receiving a unexpected response.
The text was updated successfully, but these errors were encountered: