Ngrok errors '502 bad gateway'

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

    502 gateway error occurs because ngrok not able to receive any reponse from Localhost.

    The things need to be done is :

    1. Start a webserver in a Port
    2. Trigger ngrok command in that Port.

    What I have done is

    • Started a tomcat Web Server in 8080.
    • Then Triggered ngrok http 8080.

    It works really cool ...
    Try this .....
    Hope it works for You .

提交回复
热议问题