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

Obtuse heartbeatFrequencyMS error message

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      This is the actual error raised when heartbeatFrequencyMS is less than 500:

      >>> MongoClient(heartbeatFrequencyMS=499)
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "pymongo/mongo_client.py", line 538, in _init_
      heartbeat_frequency=options.heartbeat_frequency)
      File "pymongo/settings.py", line 46, in _init_
      common.MIN_HEARTBEAT_INTERVAL * 1000)
      pymongo.errors.ConfigurationError: heartbeatFrequencyMS cannot be less than 0heartbeatFrequencyMS cannot be less than 0heartbeatFrequencyMS cannot be less than 0heartbeatFrequencyMS cannot be less than 0heartbeatFrequencyMS cannot be less than 0heartbeatFrequencyMS cannot be less than 0heartbeatFrequencyMS cannot be less than
      ....
      0heartbeatFrequencyMS cannot be less than 0heartbeatFrequencyMS cannot be less than 0heartbeatFrequencyMS cannot be less than 0heartbeatFrequencyMS cannot be less than 0heartbeatFrequencyMS cannot be less than 0heartbeatFrequencyMS cannot be less than 0heartbeatFrequencyMS cannot be less than 0

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: