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

Way to disable UserWarning: You appear to be connected to a DocumentDB cluster

    • Type: Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Priority: Icon: Unknown Unknown
    • 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

      Every time I use mongo: URL for AWS Document DB cluster pymongo spits "UserWarning: You appear to be connected to a DocumentDB cluster..." I cannot find in any documentation how to disable that warning, although I believe it should be made possible.

      # python -c "import sys; print(sys.version)"
      3.12.4 | packaged by Anaconda, Inc. | (main, Jun 18 2024, 15:12:24) [GCC 11.2.0]

      # python -c "import pymongo; print(pymongo.version); print(pymongo.has_c())"
      4.8.0
      True

      # uname -a
      Linux XXX 6.1.94-99.176.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 18 14:57:56 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

      Definition of done

      The way to disable such warning should be documented.

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            vzuevsky@mimecast.com Vitaly Zuevsky
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: