我的mongoose db正在连接节点服务器。但是当我插入值时。它得到的错误是
server {
listen 8002 ssl default;
location /static {
alias /code/static;
}
location / {
proxy_pass http://web:8031;
proxy_set_header X-Real-IP $remote_addr;
#proxy_set_header Host $host:$server_port;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
。请解决方法
答案 0 :(得分:0)
我得到了完美的解决方案是mongoose和mango db server之间的兼容性
MongoDB Server 2.4.x: mongoose ~3.8, 4.x
MongoDB Server 2.6.x: mongoose ~3.8.8, 4.x
MongoDB Server 3.0.x: mongoose ~3.8.22, 4.x
MongoDB Server 3.2.x: mongoose >=4.3.0
npm install --save --save-exact mongoose@4.1.9