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;








1















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










share|improve this question
























  • 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

















1















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










share|improve this question
























  • 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













1












1








1








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










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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












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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript