egy*_*ado 1

当我在开发 Rails 应用程序时,我想在ngrok上运行它,但我遇到了以下相同的错误:

The connection to http://xxxxxx.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:3000.

看起来 ngrok 工作正常,但我的本地服务器却不行。这是真的,因为我忘记先通过 run 运行我的 Rails 应用程序$ rails s。通过这样做,我能够使 ngrok 调整工作正常。

确保您的本地服务器首先运行。

祝你好运。