Error filtering not working

This page summarizes the projects mentioned and recommended in the original post on /r/mongodb

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • MongoDB

    The official MongoDB Node.js driver

  • The error probably is a MongoServerError, not MongoError, see https://github.com/mongodb/node-mongodb-native/blob/HEAD/etc/notes/errors.md

  • mongodb-connection-string-url

    MongoDB connection strings, based on the WhatWG URL API

  • You encountered probably the only case in the driver this happens lol. When constructing the client, the driver uses a class called ConnectionString from another mongodb maintained library (mongo connection string url). In this class, the url is parsed and if the url is malformed, the MongoParseError is thrown. But this is a third party library, so it doesn't have access to the errors defined in the driver. To get around this, it defines a fake MongoParseError here. Because this class isn't the same error class as the driver's error class and it only extends Error, the instanceof check breaks.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts