Reputation: 135
I am trying to create an application that uses PouchDB as an adapter to a CouchDB running on a server.
Problem: After some minutes of inactivity I get the following error on trying to access the database again:
{
"error": "unauthorized",
"reason": "You are not authorized to access this db.",
"status": 401,
"name": "unauthorized",
"message": "You are not authorized to access this db.",
"docId": "category:aktien"
}
My feeling is, that the HTTP-Connection between Pouch and Couch has a timeout... what can I do about that?
I cant find a "signal" that informs me about the timeout, so I could reconnect. Is there any?
Best Regards, Tobias
Upvotes: 0
Views: 209
Reputation: 135
In the settings of CouchDB you can set the session timeout... default is 10 minutes (600 s).
Upvotes: 1