Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-4539

Async pymongo fails with SSLContext object has no attribute a_wrap_socket

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Context

      Attempting to connect to a TLS server with AsyncMongoClient fails with: AttributeError("'SSLContext' object has no attribute 'a_wrap_socket'")

      \'SSLContext\' object has no attribute \'a_wrap_socket\', Timeout: 5.0s, Topology Description: <TopologyDescription id: 66886ca4a61556b0a272a56b, topology_type: Unknown, servers: [<ServerDescription (\'localhost\', 27017) server_type: Unknown, rtt: None, error=AttributeError("\'SSLContext\' object has no attribute \'a_wrap_socket\'")>
      

            Assignee:
            noah.stapp@mongodb.com Noah Stapp
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: