Modulus issue connection to Mongoose

时间:2016-08-31 16:52:00

标签: javascript node.js mongodb mongoose

I am following a CRUD application by this website: https://scotch.io/tutorials/build-a-restful-api-using-node-and-express-4.

When I try to use the server it gives me this message error:

[devops@localhost CRUD - Node.Js Express.JS & MongoDb]$ node server.js
Aplicação executando na porta 8080

/home/devops/Documentos/Labs/CRUD - Node.Js Express.JS & MongoDb/node_modules/mongoose/node_modules/mongodb/lib/server.js:242
        process.nextTick(function() { throw err; })
                                      ^
Error: getaddrinfo ENOTFOUND waffle.modulusmongo.net waffle.modulusmongo.net:27017
    at errnoException (dns.js:27:10)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:78:26)
[devops@localhost CRUD - Node.Js Express.JS & MongoDb]$

P.S.: I am using a internal proxy (because I am developing this tutorial on the Company network)

1 个答案:

答案 0 :(得分:0)

我可以解决问题...问题是我的代理和防火墙阻止了外部连接....所以我决定创建一个本地数据库......现在工作得很好! :)