-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anyone knows something about this error? Thanks! #28
Comments
I get the same error, so any comments from Author will be useful. |
This error shows only when , you run server.js with " if you use
rather than IP address , hostname can't resolve. or or IP port can't reach. install mongodb driver to connect using IP , PORT or hostname , post which on you use.
You will be able to connect mongodb, If you have user name and password then use Hope this will help you to resolve this issue |
~/projects/tutorials/yournewapp $ node server.js
App listening on port 8080
events.js:141
throw er; // Unhandled 'error' event
^
Error: connection closed
at null. (/home/pat/projects/tutorials/yournewapp/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:592:24)
at emitNone (events.js:67:13)
at emit (events.js:166:7)
at null. (/home/pat/projects/tutorials/yournewapp/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:155:15)
at emitTwo (events.js:87:13)
at emit (events.js:172:7)
at Socket. (/home/pat/projects/tutorials/yournewapp/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:494:12)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at TCP._onclose (net.js:487:12)
The text was updated successfully, but these errors were encountered: