i was facing the same problem , i didnt found anything on the internet , writing this so it might help someone , my connection string was correct i was using async await. everything was correct still i was getting the error. my problem was that , i was creating mongodb connection in different directory where the model was not present and trying to query in different directory . so it was to able to connect but not able to go to ready state. so i think better keep all your mongoose related file in one place and use only one connection file.

1 Like