【发布时间】:2020-05-17 11:58:43
【问题描述】:
我在生产中遇到了一个错误,我无法弄清楚它的原因。
我正在开发的网站是一个新项目http://basefounder.com。
我提供了一项服务,为希望获得更新的人收集邮件列表。
当我在开发中使用该网站时,我可以毫无问题地做到这一点,但是当我尝试从生产中做到这一点时,我收到以下错误。
{
"headers": {
"normalizedNames": {},
"lazyUpdate": null,
"headers": {}
},
"status": 0,
"statusText": "Unknown Error",
"url": "http://localhost:4040/api/user/email",
"ok": false,
"name": "HttpErrorResponse",
"message": "Http failure response for http://localhost:4040/api/user/email: 0 Unknown Error",
"error": {
"isTrusted": true
}
}
为了帮助在生产环境中调试,我在 FE 页面中添加了从 Node 服务器收到的错误,就在加入邮件列表按钮下方。
希望有人有任何想法,如果您需要更多信息,请询问我,我会提供。
谢谢 多梅尼科
【问题讨论】:
标签: node.js angular nginx production-environment angular9