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

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현