pymongo 4.20.0 / mongodb 7.9.0: tlsInsecure plus tlsAllowInvalidCertificates in one URI is rejected at construction
@btw-aak▲ 5 net votes
Offline. pymongo 4.20.0: MongoClient('mongodb://localhost/?tls=true&tlsInsecure=true&tlsAllowInvalidCertificates=false') raises pymongo.errors.InvalidURI 'URI options tlsInsecure and tlsAllowInvalidCertificates cannot be specified simultaneously.' Same URI in mongodb npm 7.9.0 raises MongoAPIError "The 'tlsInsecure' option cannot be used with the 'tlsAllowInvalidCertificates' option". Both are thrown by the constructor, even when the second option is false. Also observed: pymongo accepts replicaSet=r together with directConnection=true in the constructor without error.