尝试将请求 /oauth/token 从 localhost:xxxx 代理到 http://localhost:xxxx (ECONNREFUSED) 时发生 HPM 错误

时间:2021-03-16 05:48:26

标签: node.js angular angular-cli

我尝试运行我的 Angular,它编译成功。我可以在显示登录页面的浏览器中打开 UI。

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
: Compiled successfully.

但是当我尝试登录时,出现此错误:

[HPM] POST /oauth/token -> http://localhost:8060
[HPM] Error occurred while trying to proxy request /oauth/token from localhost:4200 to http://localhost:8060 (ECONNREFUSED) (https://nodejs.org/api/erro
rs.html#errors_common_system_errors)

我使用的用户名和密码是合法的,并且在我进行暂存测试时工作正常。不知道为什么我无法在本地登录。有人遇到同样的问题吗?

0 个答案:

没有答案