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 0ef899d commit d71e1fbCopy full SHA for d71e1fb
src/client-side-encryption/auto_encrypter.ts
@@ -366,7 +366,12 @@ export class AutoEncrypter {
366
return client;
367
} catch (error) {
368
const { message } = error;
369
- if (message && (message.match(/timed out after/) || message.match(/ENOTFOUND/))) {
+ if (
370
+ message &&
371
+ (message.match(/timed out after/) ||
372
+ message.match(/ENOTFOUND/) ||
373
+ message.match(/ECONNREFUSED/))
374
+ ) {
375
throw new MongoRuntimeError(
376
'Unable to connect to `mongocryptd`, please make sure it is running or in your PATH for auto-spawn',
377
{ cause: error }
0 commit comments