auth0-blog / hapi-jwt-authentication

MIT License
42 stars 14 forks source link

Error: connect ECONNREFUSED 127.0.0.1:27017 #1

Closed ConAntonakos closed 8 years ago

ConAntonakos commented 8 years ago

Hi! Thanks for the article and tutorial.

Unfortunately, I'm getting this error when attempting to execute node server.js:

/node_modules/mongodb/lib/server.js:242
        process.nextTick(function() { throw err; })
                                      ^
Error: connect ECONNREFUSED 127.0.0.1:27017
    at Object.exports._errnoException (util.js:856:11)
    at exports._exceptionWithHostPort (util.js:879:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1057:14)
chenkie commented 8 years ago

Hey! Looks like it might be an issue with Mongo. Do you have MongoDB installed and running?

ConAntonakos commented 8 years ago

That was silly of me to not realize. Thanks, @chenkie.

chenkie commented 8 years ago

No prob!