Ngrok errors '502 bad gateway'

前端 未结 15 1421
谎友^
谎友^ 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:36

    It seems that this issue has now been resolved in the latest version of ngrok: https://github.com/inconshreveable/ngrok/issues/448

    Basically, what you do is to specify that you are using https like this:

    ngrok http https://localhost:54321 -host-header="localhost:54321"
    

    At least, this resolved the issue for me. Replace 54321 with your actual port number.

提交回复
热议问题