Node 应用程序在部署到 Heroku 后无法命中 API。它说 err::Connection 拒绝

Node app fails to hit API after Deployment to Heroku. It says err::Connection Refused

我已经将我的 Node 应用程序部署到 heroku。它工作得很好,但后来它未能达到任何 api 终点。控制台有一个 err::connection 拒绝。 Here's the screenshot

我尝试重新部署,但问题仍然存在。

查看您的屏幕截图,您似乎是在 localhost:8080 上进行 HTTP 调用,而不是在您的 Heroku 实例上进行调用。