No way to avoid ReplicaSetNoPrimary errors

Hi, I have the same problem, which is reproduced “randomly” when the lambda function tries to connect to MongoDB. Are there any updates?