Skip to content

PG 56 - Mongo Connection Issues #48

@mikevarela

Description

@mikevarela

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions