Ngrok errors '502 bad gateway'

前端 未结 15 1424
谎友^
谎友^ 2020-12-15 03:16

Quite new to using any sort of Web App stuff, and I\'ve been trying to slowly build a Facebook Messenger Bot. When I try to use ngrok I can\'t visit the address I\'m given,

相关标签:
15条回答
  • 2020-12-15 03:37

    I found I had to remove the quotes around the -host-header section to get this to work with the latest ngrok version (2.3.35):

    ngrok http https://localhost:5001 -host-header=localhost:5001

    (Currently not enough rep to add comments on any of the answers above)

    0 讨论(0)
  • 2020-12-15 03:41

    If you are trying to use ngrok to point to an https localhost url, set up a proxy.

    see this github issue comment:

    https://github.com/inconshreveable/ngrok/issues/448#issuecomment-414214242

    0 讨论(0)
  • 2020-12-15 03:44

    In my case, it was the project in Visual Studio 2017 .Net Core 2.1 was created to use https with a self-signed certificate. If you don't need your localhost to be https, then what fixed it for me was creating a new web project and unchecking https. When you run ngrok (ngrok http port-number-from-IISExpress) it provides you with an https url you can use for development.

    0 讨论(0)
提交回复
热议问题