javascript - Trouble with replicate with PouchDB -
i try replicate couchdb database pouchdb have problem when try following:
var localdb = new pouchdb('namedb'); var remote = new pouchdb('https://example.com:6984/namedb'); var rep = pouchdb.replicate( remote, localdb,{ live: true, retry: true }).on('change', function (info) { // handle change }).on('paused', function (err) { // replication paused (e.g. replication date, user went offline) }).on('active', function () { // replicate resumed (e.g. new changes replicating, user went online) }).on('denied', function (err) { // document failed replicate (e.g. due permissions) }).on('complete', function (info) { // handle complete }).on('error', function (err) { // handle error });
the console says :net::err_connection_closed
,
object {status: 0, name: "unknown", message: "getcheckpoint rejected ", result: object} message : "getcheckpoint rejected " name : "unknown" result : object status : 0 __proto__ : object
Comments
Post a Comment