We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7741ae9 commit 576868cCopy full SHA for 576868c
scout-server/lib/middleware/mongodb-boom.js
@@ -32,6 +32,8 @@ function decodeDriverError(err, msg, fn) {
32
err = boom.badRequest(msg);
33
} else if (/(target namespace exists|already exists)/.test(err.message)) {
34
return boom.conflict('Collection already exists');
35
+ } else if (/server .* sockets closed/.test(msg)) {
36
+ err = boom.serverTimeout('Too many connections to MongoDB');
37
} else {
38
// Have a case where we're not properly validating invalid
39
// replicaset commands on a deployment with no replicaset.else if (/valid replicaset|No primary found in set/.test(msg)) {
0 commit comments