Occasionally, when I deploy my node application, this error occurs when trying to access the database:
{ CouchbaseError: Client-Side timeout exceeded for operation. Inspect network conditions or increase the timeout
message: 'Client-Side timeout exceeded for operation. Inspect network conditions or increase the timeout',
code: 23 }
Even though I have increased the bucket timeout value to 120 seconds, this error still occurs sometimes. (Bucket.operationTimeout = 120*1000;)
I added the statement process.exit(1); on Bucket.on('error') to force the restart of the service, but isn’t there any other way to try and reconnect with the database (if the case when the error message occurs is due to a timeout) ?