C-Service is automatically disconnected from CouchDB
The C-Service is automatically disconnected from CouchDB after few minutes of inactivity.
After few minutes of inactivity, we get the following error message:
Error: You are not a server admin.
at [...] {
error: 'unauthorized',
reason: 'You are not a server admin.',
scope: 'couch',
statusCode: 401,
request: {
method: 'DELETE',
headers: { 'content-type': 'application/json', accept: 'application/json' },
uri: 'http://localhost:5984/myapp',
qsStringifyOptions: { arrayFormat: 'repeat' }
},
headers: {
uri: 'http://localhost:5984/myapp',
statusCode: 401,
'cache-control': 'must-revalidate',
connection: 'close',
'content-type': 'application/json',
date: 'Fri, 08 Jan 2021 09:07:01 GMT',
'x-couch-request-id': 'ce111b481e',
'x-couchdb-body-time': '0'
},
errid: 'non_200',
description: 'couch returned 401'
}