How to connect to my mongoDB service

Created a web service using the mongoDB example github repo… I can access the DB from the shell in my account… But trying to connect to the DB from MongoDB compass the connection times out… Given that my web service URL looks something like this: https://mongodb-xxxx.onrender.com how do I connect… I tried mongodb://mongodb-xxxx.onrender.com:27017/test but did not work

Hi @Emmanx

Our web services only support HTTP protocol. You won’t be able to connect with the mongodb:// protocol.

We have this task on our roadmap that you can upvote, Allow connecting to non-HTTP services from outside Render | Feature Requests | Render but it is not yet scheduled.

1 Like