Mongosh works but pymongo fails with same URI

I was able to complete this connection using the directConnection keyword argument. As far as I understand it, it’s because this is a non-replicated MongoDB pod?

1 Like