当我 运行 nodemon 服务器时,我收到错误 "bad auth Authentication failed. [nodemon] app crashed - waiting for file changes before starting..."
When I run nodemon server I get the error "bad auth Authentication failed. [nodemon] app crashed - waiting for file changes before starting..."
我一直在开发 node.js / React 应用程序并将其上传到 heroku。大约一个月前它起作用了(在本地和 heroku 上)。现在不是了。当我 运行 nodemon 服务器时,即使我下载了应用程序的旧提交(确实有效),我似乎也遇到了同样的错误。终端这样做:
TDI-MacBook-Air:udemy-MERN-FromGithub bob$ nodemon server
[nodemon] 1.19.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node server.js`
Server started on Port 5000
bad auth Authentication failed.
[nodemon] app crashed - waiting for file changes before starting...
1. 从我的 githum 下载旧的旧提交 https://github.com/PaulAyling/COURSE-MernStackFrontToBack
2. 运行 在终端:npm install
3. 运行 在终端 nodemon server
(出现与之前相同的错误)。
4. 我尝试使用 postman 连接到 mongo 数据库,但出现以下错误:
Could not get any response
There was an error connecting to http://localhost:5000/api/posts.
Why this might have happened:
The server couldn't send a response:
Ensure that the backend is working properly
Self-signed SSL certificates are being blocked:
Fix this by turning off 'SSL certificate verification' in Settings > General
Proxy configured incorrectly
Ensure that proxy is configured correctly in Settings > Proxy
Request timeout:
Change request timeout in Settings > General
阅读错误后,我将 SSL 证书验证更改为关闭,但并没有解决问题
有很多代码 - 不确定最有用的文件是什么 - 但一个月前它确实有效。
完整代码在这里:https://github.com/PaulAyling/COURSE-MernStackFrontToBack
如果您需要特定代码,请告诉我,我会post。
期待服务器运行。错误是;
TDI-MacBook-Air:udemy-MERN-FromGithub bob$ nodemon server
[nodemon] 1.19.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node server.js`
Server started on Port 5000
bad auth Authentication failed.
[nodemon] app crashed - waiting for file changes before starting...
在你的/config/default.json或/config/production.json中有一个对象mongoURI.
将 url 替换为 用户密码和用户名 而不是您当前有效的帐户名和帐户密码。
You have probably deleted that user or changed the password.
Also I tried launching in my local machine and it worked without any trouble.
我一直在开发 node.js / React 应用程序并将其上传到 heroku。大约一个月前它起作用了(在本地和 heroku 上)。现在不是了。当我 运行 nodemon 服务器时,即使我下载了应用程序的旧提交(确实有效),我似乎也遇到了同样的错误。终端这样做:
TDI-MacBook-Air:udemy-MERN-FromGithub bob$ nodemon server
[nodemon] 1.19.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node server.js`
Server started on Port 5000
bad auth Authentication failed.
[nodemon] app crashed - waiting for file changes before starting...
1. 从我的 githum 下载旧的旧提交 https://github.com/PaulAyling/COURSE-MernStackFrontToBack
2. 运行 在终端:npm install
3. 运行 在终端 nodemon server
(出现与之前相同的错误)。
4. 我尝试使用 postman 连接到 mongo 数据库,但出现以下错误:
Could not get any response
There was an error connecting to http://localhost:5000/api/posts.
Why this might have happened:
The server couldn't send a response:
Ensure that the backend is working properly
Self-signed SSL certificates are being blocked:
Fix this by turning off 'SSL certificate verification' in Settings > General
Proxy configured incorrectly
Ensure that proxy is configured correctly in Settings > Proxy
Request timeout:
Change request timeout in Settings > General
阅读错误后,我将 SSL 证书验证更改为关闭,但并没有解决问题
有很多代码 - 不确定最有用的文件是什么 - 但一个月前它确实有效。
完整代码在这里:https://github.com/PaulAyling/COURSE-MernStackFrontToBack
如果您需要特定代码,请告诉我,我会post。
期待服务器运行。错误是;
TDI-MacBook-Air:udemy-MERN-FromGithub bob$ nodemon server
[nodemon] 1.19.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node server.js`
Server started on Port 5000
bad auth Authentication failed.
[nodemon] app crashed - waiting for file changes before starting...
在你的/config/default.json或/config/production.json中有一个对象mongoURI.
将 url 替换为 用户密码和用户名 而不是您当前有效的帐户名和帐户密码。
You have probably deleted that user or changed the password.
Also I tried launching in my local machine and it worked without any trouble.