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

Improve connection error messages

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 1.5.0
    • Component/s: errors, libmongoc, tls

      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.

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

              Created:
              Updated:
              Resolved: