PG 56 - Mongo Connection Issues
- Dominant language
- JavaScript
- Stars
- 165
- Forks
- 81
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
been following along and like the book, though finding some things in final code of chapter that weren't discussed in the section on it, but my issue here is with mongo
I'm installed mongo via npm and mongoose and created the db.js file.
when i try and connect to mongo (using terminal) i get
`$ mongo
MongoDB shell version: 3.0.5
connecting to: test
2016-04-12T09:19:12.414-0700 W NETWORK Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused
2016-04-12T09:19:12.415-0700 E QUERY Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed
at connect (src/mongo/shell/mongo.js:179:14)
at (connect):1:6 at src/mongo/shell/mongo.js:179
exception: connect failed`
Same comes back from using Postman. I've also changed my mongoose.connect from
mongo://localohost
to
mongo://127.0.0.1
just in case - with no help
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.