Skip to content Skip to sidebar Skip to footer

Pouchdb Etimedout Error

So we've been building an app that uses couchDb/cloudant with Pouchdb as our driver client side (ionic framework) and server side (node). Of late we've been getting errors when con

Solution 1:

I have these ETIMEDOUT errors from PouchDB when the HTTP request to a remote database cannot be done, presumably because of a poor internet connection.

If there is up and downs in your connection you can try to increase the duration before a timeout error is thrown (see the options for remote databases in the doc):

var remote = new PouchDB('address', {
  ajax: {
    timeout: 60000,
  }
});

In the above example, a timeout error will be thrown only if the HTTP request cannot be done for 60 seconds.

Post a Comment for "Pouchdb Etimedout Error"