Couchdb won't sync to empty pouchdb (broken in electron)Sync PouchDB with CouchDB serverPartial syncing in pouchdb / couchdb with a particular scenarioIs there a way to sync between two pouchdb instances?Pouchdb database creation no_db_filePouchDB view lookup by keyCouchDB login access on Google App EngineNot able to replicate CouchDB databases with admin and self signed SSL certificateUsing pouchdb-authentication, is it possible to add a user to a remote couchdb database members group on signup?CouchDB/PouchDB Selectors not syncing properlypouchdb-adapter-cordova-sqlite works locally but is not syncing
Theorems that impeded progress
What are these boxed doors outside store fronts in New York?
N.B. ligature in Latex
Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?
What exactly is the parasitic white layer that forms after iron parts are treated with ammonia?
Why are 150k or 200k jobs considered good when there are 300k+ births a month?
New order #4: World
Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)
How to report a triplet of septets in NMR tabulation?
Copenhagen passport control - US citizen
"which" command doesn't work / path of Safari?
Email Account under attack (really) - anything I can do?
How long does it take to type this?
declaring a variable twice in IIFE
Are tax years 2016 & 2017 back taxes deductible for tax year 2018?
Download, install and reboot computer at night if needed
How is it possible to have an ability score that is less than 3?
How to re-create Edward Weson's Pepper No. 30?
Why CLRS example on residual networks does not follows its formula?
How can I automatically replace [[ and ]] with the [LeftDoubleBracket] and [RightDoubleBracket] operators?
Why is "Reports" in sentence down without "The"
Patience, young "Padovan"
I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine
Why don't electron-positron collisions release infinite energy?
Couchdb won't sync to empty pouchdb (broken in electron)
Sync PouchDB with CouchDB serverPartial syncing in pouchdb / couchdb with a particular scenarioIs there a way to sync between two pouchdb instances?Pouchdb database creation no_db_filePouchDB view lookup by keyCouchDB login access on Google App EngineNot able to replicate CouchDB databases with admin and self signed SSL certificateUsing pouchdb-authentication, is it possible to add a user to a remote couchdb database members group on signup?CouchDB/PouchDB Selectors not syncing properlypouchdb-adapter-cordova-sqlite works locally but is not syncing
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have a couchdb server. With fauxton I create some docs and upload attachments in a database named module. My (vue)application uses pouchdb. When the application is starting, pouchdb should sync with the remote couchdb and get all docs and attachments.
Home.vue
import PouchDB from "pouchdb";
const dbOFF = new PouchDB('module');
const dbON = new PouchDB('http://XXXX.XXXX.XXXX.XXXX:5984/module');
mounted()
dbOFF.sync('http://XXXX.XXXX.XXXX.XXXX/module', live: true, retry: true )
dbOFF.allDocs(include_docs: true, attachments: true, function(err, res)
console.log(JSON.stringify(res.rows));
The result of allDocs will be []
(an empty array)
If I save something in pouchdb and then sync, the doc will be added on the remote server and it also gets shown by allDocs on Reload. Unfortunately the docs created by fauxton won't sync.
Edit:
At first I wanted to make a jsfiddle. It was s surpise, that the code worked in that. I thought the code is wrong, but for the jsfiddle in firefox it works. I see, I didn't mentioned electron. I using vue.js in electron and to reproduce the issue, I created a simplified github repo, which runs electron and vue: https://github.com/Ydalirsson/hello-couch
javascript vue.js electron couchdb pouchdb
add a comment |
I have a couchdb server. With fauxton I create some docs and upload attachments in a database named module. My (vue)application uses pouchdb. When the application is starting, pouchdb should sync with the remote couchdb and get all docs and attachments.
Home.vue
import PouchDB from "pouchdb";
const dbOFF = new PouchDB('module');
const dbON = new PouchDB('http://XXXX.XXXX.XXXX.XXXX:5984/module');
mounted()
dbOFF.sync('http://XXXX.XXXX.XXXX.XXXX/module', live: true, retry: true )
dbOFF.allDocs(include_docs: true, attachments: true, function(err, res)
console.log(JSON.stringify(res.rows));
The result of allDocs will be []
(an empty array)
If I save something in pouchdb and then sync, the doc will be added on the remote server and it also gets shown by allDocs on Reload. Unfortunately the docs created by fauxton won't sync.
Edit:
At first I wanted to make a jsfiddle. It was s surpise, that the code worked in that. I thought the code is wrong, but for the jsfiddle in firefox it works. I see, I didn't mentioned electron. I using vue.js in electron and to reproduce the issue, I created a simplified github repo, which runs electron and vue: https://github.com/Ydalirsson/hello-couch
javascript vue.js electron couchdb pouchdb
Would it be possible to create a Minimal, Complete, and Verifiable example
– Kristopher Ives
Mar 22 at 3:07
I hope the repo will help. I had no imagination to simplified it more with the usage of electron.
– Völund Friedemann Jordan
Mar 22 at 20:03
add a comment |
I have a couchdb server. With fauxton I create some docs and upload attachments in a database named module. My (vue)application uses pouchdb. When the application is starting, pouchdb should sync with the remote couchdb and get all docs and attachments.
Home.vue
import PouchDB from "pouchdb";
const dbOFF = new PouchDB('module');
const dbON = new PouchDB('http://XXXX.XXXX.XXXX.XXXX:5984/module');
mounted()
dbOFF.sync('http://XXXX.XXXX.XXXX.XXXX/module', live: true, retry: true )
dbOFF.allDocs(include_docs: true, attachments: true, function(err, res)
console.log(JSON.stringify(res.rows));
The result of allDocs will be []
(an empty array)
If I save something in pouchdb and then sync, the doc will be added on the remote server and it also gets shown by allDocs on Reload. Unfortunately the docs created by fauxton won't sync.
Edit:
At first I wanted to make a jsfiddle. It was s surpise, that the code worked in that. I thought the code is wrong, but for the jsfiddle in firefox it works. I see, I didn't mentioned electron. I using vue.js in electron and to reproduce the issue, I created a simplified github repo, which runs electron and vue: https://github.com/Ydalirsson/hello-couch
javascript vue.js electron couchdb pouchdb
I have a couchdb server. With fauxton I create some docs and upload attachments in a database named module. My (vue)application uses pouchdb. When the application is starting, pouchdb should sync with the remote couchdb and get all docs and attachments.
Home.vue
import PouchDB from "pouchdb";
const dbOFF = new PouchDB('module');
const dbON = new PouchDB('http://XXXX.XXXX.XXXX.XXXX:5984/module');
mounted()
dbOFF.sync('http://XXXX.XXXX.XXXX.XXXX/module', live: true, retry: true )
dbOFF.allDocs(include_docs: true, attachments: true, function(err, res)
console.log(JSON.stringify(res.rows));
The result of allDocs will be []
(an empty array)
If I save something in pouchdb and then sync, the doc will be added on the remote server and it also gets shown by allDocs on Reload. Unfortunately the docs created by fauxton won't sync.
Edit:
At first I wanted to make a jsfiddle. It was s surpise, that the code worked in that. I thought the code is wrong, but for the jsfiddle in firefox it works. I see, I didn't mentioned electron. I using vue.js in electron and to reproduce the issue, I created a simplified github repo, which runs electron and vue: https://github.com/Ydalirsson/hello-couch
javascript vue.js electron couchdb pouchdb
javascript vue.js electron couchdb pouchdb
edited Mar 22 at 20:01
Völund Friedemann Jordan
asked Mar 22 at 0:33
Völund Friedemann JordanVölund Friedemann Jordan
93
93
Would it be possible to create a Minimal, Complete, and Verifiable example
– Kristopher Ives
Mar 22 at 3:07
I hope the repo will help. I had no imagination to simplified it more with the usage of electron.
– Völund Friedemann Jordan
Mar 22 at 20:03
add a comment |
Would it be possible to create a Minimal, Complete, and Verifiable example
– Kristopher Ives
Mar 22 at 3:07
I hope the repo will help. I had no imagination to simplified it more with the usage of electron.
– Völund Friedemann Jordan
Mar 22 at 20:03
Would it be possible to create a Minimal, Complete, and Verifiable example
– Kristopher Ives
Mar 22 at 3:07
Would it be possible to create a Minimal, Complete, and Verifiable example
– Kristopher Ives
Mar 22 at 3:07
I hope the repo will help. I had no imagination to simplified it more with the usage of electron.
– Völund Friedemann Jordan
Mar 22 at 20:03
I hope the repo will help. I had no imagination to simplified it more with the usage of electron.
– Völund Friedemann Jordan
Mar 22 at 20:03
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55291196%2fcouchdb-wont-sync-to-empty-pouchdb-broken-in-electron%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55291196%2fcouchdb-wont-sync-to-empty-pouchdb-broken-in-electron%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Would it be possible to create a Minimal, Complete, and Verifiable example
– Kristopher Ives
Mar 22 at 3:07
I hope the repo will help. I had no imagination to simplified it more with the usage of electron.
– Völund Friedemann Jordan
Mar 22 at 20:03