Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2616

Improve connection error messages

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • 1.5.0
    • errors, libmongoc, tls

    Description

      Currently, many connections errors return "error: Error from MongoDB Client: No suitable servers found (`serverSelectionTryOnce` set). It doesn't specify what is the exact problem is.

      For example, we want to connect to a mongo atlas server with SSL enabled.
      1) We don't have any IP address in the whitelist or
      2) we don't provide the path to the CA file.

      For the above two cases, the error message coming from mongoc_topology_select_server_id API call returned is very generic. Is it possible to provide some detail message like "client cannot connect to the server" and"CA file is empty" respectively.

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            JixingLi Jixing Li [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: