-
Type: Improvement
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
I made a test1.mdb.bsdpower.com host with two SRV records, one of which is valid (foo.test1.mdb.bsdpower.com) and one which is not (hhhh).
The driver rejects such a SRV URI but does not report which record it rejected, creating a suboptimal user experience:
>>> pymongo.MongoClient('mongodb+srv://test1.mdb.bsdpower.com') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pymongo/mongo_client.py", line 514, in __init__ res = uri_parser.parse_uri(entity, port, warn=True) File "pymongo/uri_parser.py", line 414, in parse_uri raise ConfigurationError("Invalid SRV host") pymongo.errors.ConfigurationError: Invalid SRV host
- related to
-
RUBY-1751 Weird error message for mismatched SRV domain
- Backlog