gpt4 book ai didi

https - Ngrok 错误 '502 bad gateway'

转载 作者:行者123 更新时间:2023-12-03 09:55:00 25 4
gpt4 key购买 nike

使用任何类型的 Web 应用程序都是新手,我一直在尝试慢慢构建 Facebook Messenger Bot。当我尝试使用 ngrok 时,我无法访问给定的地址,即:

ngrok http 5000

是我在命令行中输入的内容,它返回的是:
ngrok by @inconshreveable

Session Status online
Version 2.1.18
Region United States (us)
Web Interface http://127.0.0.1:4040
Forwarding http://ea986ca5.ngrok.io -> localhost:5000
Forwarding https://ea986ca5.ngrok.io -> localhost:5000

Connections ttl opn rt1 rt5 p50 p90
0 0 0.00 0.00 0.00 0.00

但是当我取地址' https://ea986ca5.ngrok.io ' 根据 Facebook 开发人员页面的要求,它说:
The connection to http://ea986ca5.ngrok.io was successfully tunneled to your
ngrok client, but the client failed to establish a connection to the local
address localhost:5000.


Make sure that a web service is running on localhost:5000 and that it is a
valid address.


The error encountered was: dial tcp [::1]:5000: connectex: No connection
could be made because the target machine actively refused it.

我的本地端口有问题吗?谢谢!

最佳答案

这对我有用

ngrok.exe http -host-header=rewrite localhost:

例如 ngrok.exe http -host-header=rewrite localhost:5219

我使用 Visual Studio 2017 不知道它是否会影响 anthing。

关于https - Ngrok 错误 '502 bad gateway',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40598428/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com