Re: CouchDB sync error net::ERR_CONNECTION_RESET

2017-11-29 Thread Joel Wallis Jucá
Hi Yvonne,

I think that, by *tunnel*, it was meant to have a HTTPS proxy - like Nginx
with a Let's Encrypt certificate running in front of CouchDB. This way your
HTTP requests wouldn't be going on plain text across the web.

After setting up your server to use HTTPS your browser will be doing the
encryption/decryption automatically.

2017-11-29 13:16 GMT-03:00 Yvonne Aburrow :

> Thanks Adam, that makes sense. (Except that one doesn't have this issue
> with other APIs...)
>
> Do you know if there is a way to create a SSH tunnel using JavaScript but
> without using Node.js?
>
> I've searched for one but it doesn't look as if there is.
>
> Regards,
>
> *Yvonne Aburrow*
> Applications Developer
> Information Systems Team
> *IT Services *
> Oxford Brookes University 
>
> extn 2706
>
> For enquiries and issues with live systems, please email
> broo...@service-now.com
>
>
>
> On 29 November 2017 at 14:48, Adam Kocoloski  wrote:
>
> > Hi Yvonne, yes, either the remote CouchDB instance needs to be directly
> > accessible from the internet, or you need some kind of tunnel or proxy
> that
> > will provide access to it. PouchDB is not special in this respect; it’s
> > using the same API as everyone else. Cheers,
> >
> > Adam
> >
> > > On Nov 29, 2017, at 5:15 AM, Yvonne Aburrow 
> > wrote:
> > >
> > > oops I mean SSH tunnel
> > >
> > > Regards,
> > >
> > > *Yvonne Aburrow*
> > > Applications Developer
> > > Information Systems Team
> > > *IT Services *
> > > Oxford Brookes University 
> > >
> > > extn 2706
> > >
> > > For enquiries and issues with live systems, please email
> > > broo...@service-now.com
> > >
> > >
> > >
> > > On 29 November 2017 at 09:48, Yvonne Aburrow 
> > wrote:
> > >
> > >> Thanks Adam
> > >>
> > >> Unfortunately that still didn't work - I got ERR_CONNECTION_RESET
> again.
> > >>
> > >> I am wondering if I need to use a SSL tunnel to create a local
> instance
> > (I
> > >> had to do that to access Fauxton).
> > >>
> > >> There doesn't seem to be a script for SSL tunnelling that doesn't
> > involve
> > >> using Node.js
> > >>
> > >> Regards,
> > >>
> > >> *Yvonne Aburrow*
> > >> Applications Developer
> > >> Information Systems Team
> > >> *IT Services *
> > >> Oxford Brookes University 
> > >>
> > >> extn 2706
> > >>
> > >> For enquiries and issues with live systems, please email
> > >> broo...@service-now.com
> > >>
> > >>
> > >>
> > >> On 28 November 2017 at 20:40, Adam Kocoloski 
> > wrote:
> > >>
> > >>> Hi Yvonne,
> > >>>
> > >>> It looks like you’re trying to make an HTTPS connection to port 5984.
> > Did
> > >>> you customize the server config? The default CouchDB configuration us
> > port
> > >>> *6984* for HTTPS. Cheers,
> > >>>
> > >>> Adam
> > >>>
> >  On Nov 28, 2017, at 9:37 AM, Yvonne Aburrow  >
> > >>> wrote:
> > 
> >  I am trying to sync a local PouchDB instance with a remote CouchDB
> > >>> instance
> >  on Google App Engine. I am not using Node.js
> > 
> >  I have successfully logged in to the remote instance
> >   > >>> access-on-google-app-engine>,
> >  but I am getting the following error when I try to sync:
> > 
> >    replication paused (e.g. user went offline)
> >    pouchdb-6.3.4.min.js:9 GET
> >  https://:5984/pouchnotes/?_nonce=1511870134012
> >  net::ERR_CONNECTION_RESET
> > 
> >  *This is my sync function:*
> > 
> >    PouchNotesObj.prototype.syncnoteset = function (start, end) {
> >    var start = new Date().getTime();
> >    document.getElementById("syncbutton").innerHTML =
> "Syncing...";
> > 
> >    var i,
> >    that = this,
> > 
> >    options = {
> >    doc_ids:['1450853987668']
> >  };
> > 
> > 
> >    //options.include_docs = true;
> > 
> >    if(start){ options.startkey = start; }
> >    if(end){ options.endkey = end; }
> > 
> >    PouchDB.sync(this.dbname, this.remote, { retry: true })
> >    //this.pdb.sync(this.remote, { doc_id:['1450853987668'] })
> >    .on('change', function (info) {
> >   console.log('change');
> >    document.getElementById("syncbutton").innerHTML = "Sync Notes";
> >    }).on('paused', function () {
> >   console.log('replication paused (e.g. user went offline)');
> >    document.getElementById("syncbutton").innerHTML = "Sync Notes";
> >    }).on('active', function () {
> >   console.log('replicate resumed (e.g. user went back
> > online)');
> >    document.getElementById("syncbutton").innerHTML = "Sync 

Re: CouchDB sync error net::ERR_CONNECTION_RESET

2017-11-29 Thread Yvonne Aburrow
Thanks Adam, that makes sense. (Except that one doesn't have this issue
with other APIs...)

Do you know if there is a way to create a SSH tunnel using JavaScript but
without using Node.js?

I've searched for one but it doesn't look as if there is.

Regards,

*Yvonne Aburrow*
Applications Developer
Information Systems Team
*IT Services *
Oxford Brookes University 

extn 2706

For enquiries and issues with live systems, please email
broo...@service-now.com



On 29 November 2017 at 14:48, Adam Kocoloski  wrote:

> Hi Yvonne, yes, either the remote CouchDB instance needs to be directly
> accessible from the internet, or you need some kind of tunnel or proxy that
> will provide access to it. PouchDB is not special in this respect; it’s
> using the same API as everyone else. Cheers,
>
> Adam
>
> > On Nov 29, 2017, at 5:15 AM, Yvonne Aburrow 
> wrote:
> >
> > oops I mean SSH tunnel
> >
> > Regards,
> >
> > *Yvonne Aburrow*
> > Applications Developer
> > Information Systems Team
> > *IT Services *
> > Oxford Brookes University 
> >
> > extn 2706
> >
> > For enquiries and issues with live systems, please email
> > broo...@service-now.com
> >
> >
> >
> > On 29 November 2017 at 09:48, Yvonne Aburrow 
> wrote:
> >
> >> Thanks Adam
> >>
> >> Unfortunately that still didn't work - I got ERR_CONNECTION_RESET again.
> >>
> >> I am wondering if I need to use a SSL tunnel to create a local instance
> (I
> >> had to do that to access Fauxton).
> >>
> >> There doesn't seem to be a script for SSL tunnelling that doesn't
> involve
> >> using Node.js
> >>
> >> Regards,
> >>
> >> *Yvonne Aburrow*
> >> Applications Developer
> >> Information Systems Team
> >> *IT Services *
> >> Oxford Brookes University 
> >>
> >> extn 2706
> >>
> >> For enquiries and issues with live systems, please email
> >> broo...@service-now.com
> >>
> >>
> >>
> >> On 28 November 2017 at 20:40, Adam Kocoloski 
> wrote:
> >>
> >>> Hi Yvonne,
> >>>
> >>> It looks like you’re trying to make an HTTPS connection to port 5984.
> Did
> >>> you customize the server config? The default CouchDB configuration us
> port
> >>> *6984* for HTTPS. Cheers,
> >>>
> >>> Adam
> >>>
>  On Nov 28, 2017, at 9:37 AM, Yvonne Aburrow 
> >>> wrote:
> 
>  I am trying to sync a local PouchDB instance with a remote CouchDB
> >>> instance
>  on Google App Engine. I am not using Node.js
> 
>  I have successfully logged in to the remote instance
>   >>> access-on-google-app-engine>,
>  but I am getting the following error when I try to sync:
> 
>    replication paused (e.g. user went offline)
>    pouchdb-6.3.4.min.js:9 GET
>  https://:5984/pouchnotes/?_nonce=1511870134012
>  net::ERR_CONNECTION_RESET
> 
>  *This is my sync function:*
> 
>    PouchNotesObj.prototype.syncnoteset = function (start, end) {
>    var start = new Date().getTime();
>    document.getElementById("syncbutton").innerHTML = "Syncing...";
> 
>    var i,
>    that = this,
> 
>    options = {
>    doc_ids:['1450853987668']
>  };
> 
> 
>    //options.include_docs = true;
> 
>    if(start){ options.startkey = start; }
>    if(end){ options.endkey = end; }
> 
>    PouchDB.sync(this.dbname, this.remote, { retry: true })
>    //this.pdb.sync(this.remote, { doc_id:['1450853987668'] })
>    .on('change', function (info) {
>   console.log('change');
>    document.getElementById("syncbutton").innerHTML = "Sync Notes";
>    }).on('paused', function () {
>   console.log('replication paused (e.g. user went offline)');
>    document.getElementById("syncbutton").innerHTML = "Sync Notes";
>    }).on('active', function () {
>   console.log('replicate resumed (e.g. user went back
> online)');
>    document.getElementById("syncbutton").innerHTML = "Sync Notes";
>    }).on('denied', function (info) {
>   console.log('a document failed to replicate, e.g. due to
>  permissions');
>    document.getElementById("syncbutton").innerHTML = "Sync Notes";
>    }).on('complete', function (info) {
>  console.log("Sync Complete");
>  document.getElementById("syncbutton").innerHTML = "Sync
> >>> Notes";
>  that.viewnoteset();
>  that.formobject.reset();
>  that.show(that.formobject.dataset.show);
>  that.hide(that.formobject.dataset.hide);
>  var end = new Date().getTime();
>  console.log("Time Taken - " + (end - start) 

Re: CouchDB sync error net::ERR_CONNECTION_RESET

2017-11-29 Thread Adam Kocoloski
Hi Yvonne, yes, either the remote CouchDB instance needs to be directly 
accessible from the internet, or you need some kind of tunnel or proxy that 
will provide access to it. PouchDB is not special in this respect; it’s using 
the same API as everyone else. Cheers,

Adam

> On Nov 29, 2017, at 5:15 AM, Yvonne Aburrow  wrote:
> 
> oops I mean SSH tunnel
> 
> Regards,
> 
> *Yvonne Aburrow*
> Applications Developer
> Information Systems Team
> *IT Services *
> Oxford Brookes University 
> 
> extn 2706
> 
> For enquiries and issues with live systems, please email
> broo...@service-now.com
> 
> 
> 
> On 29 November 2017 at 09:48, Yvonne Aburrow  wrote:
> 
>> Thanks Adam
>> 
>> Unfortunately that still didn't work - I got ERR_CONNECTION_RESET again.
>> 
>> I am wondering if I need to use a SSL tunnel to create a local instance (I
>> had to do that to access Fauxton).
>> 
>> There doesn't seem to be a script for SSL tunnelling that doesn't involve
>> using Node.js
>> 
>> Regards,
>> 
>> *Yvonne Aburrow*
>> Applications Developer
>> Information Systems Team
>> *IT Services *
>> Oxford Brookes University 
>> 
>> extn 2706
>> 
>> For enquiries and issues with live systems, please email
>> broo...@service-now.com
>> 
>> 
>> 
>> On 28 November 2017 at 20:40, Adam Kocoloski  wrote:
>> 
>>> Hi Yvonne,
>>> 
>>> It looks like you’re trying to make an HTTPS connection to port 5984. Did
>>> you customize the server config? The default CouchDB configuration us port
>>> *6984* for HTTPS. Cheers,
>>> 
>>> Adam
>>> 
 On Nov 28, 2017, at 9:37 AM, Yvonne Aburrow 
>>> wrote:
 
 I am trying to sync a local PouchDB instance with a remote CouchDB
>>> instance
 on Google App Engine. I am not using Node.js
 
 I have successfully logged in to the remote instance
 >> access-on-google-app-engine>,
 but I am getting the following error when I try to sync:
 
   replication paused (e.g. user went offline)
   pouchdb-6.3.4.min.js:9 GET
 https://:5984/pouchnotes/?_nonce=1511870134012
 net::ERR_CONNECTION_RESET
 
 *This is my sync function:*
 
   PouchNotesObj.prototype.syncnoteset = function (start, end) {
   var start = new Date().getTime();
   document.getElementById("syncbutton").innerHTML = "Syncing...";
 
   var i,
   that = this,
 
   options = {
   doc_ids:['1450853987668']
 };
 
 
   //options.include_docs = true;
 
   if(start){ options.startkey = start; }
   if(end){ options.endkey = end; }
 
   PouchDB.sync(this.dbname, this.remote, { retry: true })
   //this.pdb.sync(this.remote, { doc_id:['1450853987668'] })
   .on('change', function (info) {
  console.log('change');
   document.getElementById("syncbutton").innerHTML = "Sync Notes";
   }).on('paused', function () {
  console.log('replication paused (e.g. user went offline)');
   document.getElementById("syncbutton").innerHTML = "Sync Notes";
   }).on('active', function () {
  console.log('replicate resumed (e.g. user went back online)');
   document.getElementById("syncbutton").innerHTML = "Sync Notes";
   }).on('denied', function (info) {
  console.log('a document failed to replicate, e.g. due to
 permissions');
   document.getElementById("syncbutton").innerHTML = "Sync Notes";
   }).on('complete', function (info) {
 console.log("Sync Complete");
 document.getElementById("syncbutton").innerHTML = "Sync
>>> Notes";
 that.viewnoteset();
 that.formobject.reset();
 that.show(that.formobject.dataset.show);
 that.hide(that.formobject.dataset.hide);
 var end = new Date().getTime();
 console.log("Time Taken - " + (end - start) + " ms");
   }).on('error', function (error) {
 console.log("Sync Error:" + JSON.stringify(error));
 alert("Sync Error:" + error);
 that.showerror(error);
   });
 
   }
 
 Any idea what is causing the connection to reset?
 
 
 Regards,
 
 *Yvonne Aburrow*
 Applications Developer
 Information Systems Team
 *IT Services *
 Oxford Brookes University 
 
 extn 2706
>>> 
>>> 
>> 



Re: CouchDB sync error net::ERR_CONNECTION_RESET

2017-11-29 Thread Yvonne Aburrow
oops I mean SSH tunnel

Regards,

*Yvonne Aburrow*
Applications Developer
Information Systems Team
*IT Services *
Oxford Brookes University 

extn 2706

For enquiries and issues with live systems, please email
broo...@service-now.com



On 29 November 2017 at 09:48, Yvonne Aburrow  wrote:

> Thanks Adam
>
> Unfortunately that still didn't work - I got ERR_CONNECTION_RESET again.
>
> I am wondering if I need to use a SSL tunnel to create a local instance (I
> had to do that to access Fauxton).
>
> There doesn't seem to be a script for SSL tunnelling that doesn't involve
> using Node.js
>
> Regards,
>
> *Yvonne Aburrow*
> Applications Developer
> Information Systems Team
> *IT Services *
> Oxford Brookes University 
>
> extn 2706
>
> For enquiries and issues with live systems, please email
> broo...@service-now.com
>
>
>
> On 28 November 2017 at 20:40, Adam Kocoloski  wrote:
>
>> Hi Yvonne,
>>
>> It looks like you’re trying to make an HTTPS connection to port 5984. Did
>> you customize the server config? The default CouchDB configuration us port
>> *6984* for HTTPS. Cheers,
>>
>> Adam
>>
>> > On Nov 28, 2017, at 9:37 AM, Yvonne Aburrow 
>> wrote:
>> >
>> > I am trying to sync a local PouchDB instance with a remote CouchDB
>> instance
>> > on Google App Engine. I am not using Node.js
>> >
>> > I have successfully logged in to the remote instance
>> > > access-on-google-app-engine>,
>> > but I am getting the following error when I try to sync:
>> >
>> >replication paused (e.g. user went offline)
>> >pouchdb-6.3.4.min.js:9 GET
>> > https://:5984/pouchnotes/?_nonce=1511870134012
>> > net::ERR_CONNECTION_RESET
>> >
>> > *This is my sync function:*
>> >
>> >PouchNotesObj.prototype.syncnoteset = function (start, end) {
>> >var start = new Date().getTime();
>> >document.getElementById("syncbutton").innerHTML = "Syncing...";
>> >
>> >var i,
>> >that = this,
>> >
>> >options = {
>> >doc_ids:['1450853987668']
>> >  };
>> >
>> >
>> >//options.include_docs = true;
>> >
>> >if(start){ options.startkey = start; }
>> >if(end){ options.endkey = end; }
>> >
>> >PouchDB.sync(this.dbname, this.remote, { retry: true })
>> >//this.pdb.sync(this.remote, { doc_id:['1450853987668'] })
>> >.on('change', function (info) {
>> >   console.log('change');
>> >document.getElementById("syncbutton").innerHTML = "Sync Notes";
>> >}).on('paused', function () {
>> >   console.log('replication paused (e.g. user went offline)');
>> >document.getElementById("syncbutton").innerHTML = "Sync Notes";
>> >}).on('active', function () {
>> >   console.log('replicate resumed (e.g. user went back online)');
>> >document.getElementById("syncbutton").innerHTML = "Sync Notes";
>> >}).on('denied', function (info) {
>> >   console.log('a document failed to replicate, e.g. due to
>> > permissions');
>> >document.getElementById("syncbutton").innerHTML = "Sync Notes";
>> >}).on('complete', function (info) {
>> >  console.log("Sync Complete");
>> >  document.getElementById("syncbutton").innerHTML = "Sync
>> Notes";
>> >  that.viewnoteset();
>> >  that.formobject.reset();
>> >  that.show(that.formobject.dataset.show);
>> >  that.hide(that.formobject.dataset.hide);
>> >  var end = new Date().getTime();
>> >  console.log("Time Taken - " + (end - start) + " ms");
>> >}).on('error', function (error) {
>> >  console.log("Sync Error:" + JSON.stringify(error));
>> >  alert("Sync Error:" + error);
>> >  that.showerror(error);
>> >});
>> >
>> >}
>> >
>> > Any idea what is causing the connection to reset?
>> >
>> >
>> > Regards,
>> >
>> > *Yvonne Aburrow*
>> > Applications Developer
>> > Information Systems Team
>> > *IT Services *
>> > Oxford Brookes University 
>> >
>> > extn 2706
>>
>>
>


Re: CouchDB sync error net::ERR_CONNECTION_RESET

2017-11-29 Thread Yvonne Aburrow
Thanks Adam

Unfortunately that still didn't work - I got ERR_CONNECTION_RESET again.

I am wondering if I need to use a SSL tunnel to create a local instance (I
had to do that to access Fauxton).

There doesn't seem to be a script for SSL tunnelling that doesn't involve
using Node.js

Regards,

*Yvonne Aburrow*
Applications Developer
Information Systems Team
*IT Services *
Oxford Brookes University 

extn 2706

For enquiries and issues with live systems, please email
broo...@service-now.com



On 28 November 2017 at 20:40, Adam Kocoloski  wrote:

> Hi Yvonne,
>
> It looks like you’re trying to make an HTTPS connection to port 5984. Did
> you customize the server config? The default CouchDB configuration us port
> *6984* for HTTPS. Cheers,
>
> Adam
>
> > On Nov 28, 2017, at 9:37 AM, Yvonne Aburrow 
> wrote:
> >
> > I am trying to sync a local PouchDB instance with a remote CouchDB
> instance
> > on Google App Engine. I am not using Node.js
> >
> > I have successfully logged in to the remote instance
> >  login-access-on-google-app-engine>,
> > but I am getting the following error when I try to sync:
> >
> >replication paused (e.g. user went offline)
> >pouchdb-6.3.4.min.js:9 GET
> > https://:5984/pouchnotes/?_nonce=1511870134012
> > net::ERR_CONNECTION_RESET
> >
> > *This is my sync function:*
> >
> >PouchNotesObj.prototype.syncnoteset = function (start, end) {
> >var start = new Date().getTime();
> >document.getElementById("syncbutton").innerHTML = "Syncing...";
> >
> >var i,
> >that = this,
> >
> >options = {
> >doc_ids:['1450853987668']
> >  };
> >
> >
> >//options.include_docs = true;
> >
> >if(start){ options.startkey = start; }
> >if(end){ options.endkey = end; }
> >
> >PouchDB.sync(this.dbname, this.remote, { retry: true })
> >//this.pdb.sync(this.remote, { doc_id:['1450853987668'] })
> >.on('change', function (info) {
> >   console.log('change');
> >document.getElementById("syncbutton").innerHTML = "Sync Notes";
> >}).on('paused', function () {
> >   console.log('replication paused (e.g. user went offline)');
> >document.getElementById("syncbutton").innerHTML = "Sync Notes";
> >}).on('active', function () {
> >   console.log('replicate resumed (e.g. user went back online)');
> >document.getElementById("syncbutton").innerHTML = "Sync Notes";
> >}).on('denied', function (info) {
> >   console.log('a document failed to replicate, e.g. due to
> > permissions');
> >document.getElementById("syncbutton").innerHTML = "Sync Notes";
> >}).on('complete', function (info) {
> >  console.log("Sync Complete");
> >  document.getElementById("syncbutton").innerHTML = "Sync Notes";
> >  that.viewnoteset();
> >  that.formobject.reset();
> >  that.show(that.formobject.dataset.show);
> >  that.hide(that.formobject.dataset.hide);
> >  var end = new Date().getTime();
> >  console.log("Time Taken - " + (end - start) + " ms");
> >}).on('error', function (error) {
> >  console.log("Sync Error:" + JSON.stringify(error));
> >  alert("Sync Error:" + error);
> >  that.showerror(error);
> >});
> >
> >}
> >
> > Any idea what is causing the connection to reset?
> >
> >
> > Regards,
> >
> > *Yvonne Aburrow*
> > Applications Developer
> > Information Systems Team
> > *IT Services *
> > Oxford Brookes University 
> >
> > extn 2706
>
>


Re: CouchDB sync error net::ERR_CONNECTION_RESET

2017-11-28 Thread Adam Kocoloski
Hi Yvonne,

It looks like you’re trying to make an HTTPS connection to port 5984. Did you 
customize the server config? The default CouchDB configuration us port *6984* 
for HTTPS. Cheers,

Adam

> On Nov 28, 2017, at 9:37 AM, Yvonne Aburrow  wrote:
> 
> I am trying to sync a local PouchDB instance with a remote CouchDB instance
> on Google App Engine. I am not using Node.js
> 
> I have successfully logged in to the remote instance
> ,
> but I am getting the following error when I try to sync:
> 
>replication paused (e.g. user went offline)
>pouchdb-6.3.4.min.js:9 GET
> https://:5984/pouchnotes/?_nonce=1511870134012
> net::ERR_CONNECTION_RESET
> 
> *This is my sync function:*
> 
>PouchNotesObj.prototype.syncnoteset = function (start, end) {
>var start = new Date().getTime();
>document.getElementById("syncbutton").innerHTML = "Syncing...";
> 
>var i,
>that = this,
> 
>options = {
>doc_ids:['1450853987668']
>  };
> 
> 
>//options.include_docs = true;
> 
>if(start){ options.startkey = start; }
>if(end){ options.endkey = end; }
> 
>PouchDB.sync(this.dbname, this.remote, { retry: true })
>//this.pdb.sync(this.remote, { doc_id:['1450853987668'] })
>.on('change', function (info) {
>   console.log('change');
>document.getElementById("syncbutton").innerHTML = "Sync Notes";
>}).on('paused', function () {
>   console.log('replication paused (e.g. user went offline)');
>document.getElementById("syncbutton").innerHTML = "Sync Notes";
>}).on('active', function () {
>   console.log('replicate resumed (e.g. user went back online)');
>document.getElementById("syncbutton").innerHTML = "Sync Notes";
>}).on('denied', function (info) {
>   console.log('a document failed to replicate, e.g. due to
> permissions');
>document.getElementById("syncbutton").innerHTML = "Sync Notes";
>}).on('complete', function (info) {
>  console.log("Sync Complete");
>  document.getElementById("syncbutton").innerHTML = "Sync Notes";
>  that.viewnoteset();
>  that.formobject.reset();
>  that.show(that.formobject.dataset.show);
>  that.hide(that.formobject.dataset.hide);
>  var end = new Date().getTime();
>  console.log("Time Taken - " + (end - start) + " ms");
>}).on('error', function (error) {
>  console.log("Sync Error:" + JSON.stringify(error));
>  alert("Sync Error:" + error);
>  that.showerror(error);
>});
> 
>}
> 
> Any idea what is causing the connection to reset?
> 
> 
> Regards,
> 
> *Yvonne Aburrow*
> Applications Developer
> Information Systems Team
> *IT Services *
> Oxford Brookes University 
> 
> extn 2706



CouchDB sync error net::ERR_CONNECTION_RESET

2017-11-28 Thread Yvonne Aburrow
I am trying to sync a local PouchDB instance with a remote CouchDB instance
on Google App Engine. I am not using Node.js

I have successfully logged in to the remote instance
,
but I am getting the following error when I try to sync:

replication paused (e.g. user went offline)
pouchdb-6.3.4.min.js:9 GET
https://:5984/pouchnotes/?_nonce=1511870134012
net::ERR_CONNECTION_RESET

*This is my sync function:*

PouchNotesObj.prototype.syncnoteset = function (start, end) {
var start = new Date().getTime();
document.getElementById("syncbutton").innerHTML = "Syncing...";

var i,
that = this,

options = {
doc_ids:['1450853987668']
  };


//options.include_docs = true;

if(start){ options.startkey = start; }
if(end){ options.endkey = end; }

PouchDB.sync(this.dbname, this.remote, { retry: true })
//this.pdb.sync(this.remote, { doc_id:['1450853987668'] })
.on('change', function (info) {
   console.log('change');
document.getElementById("syncbutton").innerHTML = "Sync Notes";
}).on('paused', function () {
   console.log('replication paused (e.g. user went offline)');
document.getElementById("syncbutton").innerHTML = "Sync Notes";
}).on('active', function () {
   console.log('replicate resumed (e.g. user went back online)');
document.getElementById("syncbutton").innerHTML = "Sync Notes";
}).on('denied', function (info) {
   console.log('a document failed to replicate, e.g. due to
permissions');
document.getElementById("syncbutton").innerHTML = "Sync Notes";
}).on('complete', function (info) {
  console.log("Sync Complete");
  document.getElementById("syncbutton").innerHTML = "Sync Notes";
  that.viewnoteset();
  that.formobject.reset();
  that.show(that.formobject.dataset.show);
  that.hide(that.formobject.dataset.hide);
  var end = new Date().getTime();
  console.log("Time Taken - " + (end - start) + " ms");
}).on('error', function (error) {
  console.log("Sync Error:" + JSON.stringify(error));
  alert("Sync Error:" + error);
  that.showerror(error);
});

}

Any idea what is causing the connection to reset?


Regards,

*Yvonne Aburrow*
Applications Developer
Information Systems Team
*IT Services *
Oxford Brookes University 

extn 2706