Hi it’s hard to help find a problem without any code snippets. If you could share the code that you are using to connect. I would also check that the DB is up and running correctly and you can connect through the mongoshell.
Here is a document that could possibly help:
Here is another forum post that could also help: