Ask coding questions

← Back to all posts
How did you solve the MongoNetworkError?
ajolukanni (0)

I'm working on the FCC mongodb & mongoose Create Schema challenge. I just can't connect to my atlas cluster from my repl. In the previous challenge, I already allowed connections from anywhere in the Network Access on my mongodb atlas. I had to remove the '+srv' part of my MONGO_URI to pass the previous challenge. But whether I include it or not, I can't connect to the database: I get TypeError for 'split' under the parsedSRVConnectionString error and MongoNetworkError without the '+srv'.

Comments
hotnewtop
codingjlu (481)

Are you using MongoDB cloud?