我正在开发一个使用rasa的Telegram机器人,并希望使用ngrok来接收来自webhook的消息。
设置一个webhook是可行的。当我将可公开访问的域设置为URL,并尝试在电报上运行bot时,没有任何结果。机器人没有回复。
“”“
ngrok by @inconshreveable
Session Status online
Session Expires 7 hours, 43 minutes
Version 2.3.35
Region United States (us)
Web Interface http://127.0.0.1:4040
Forwarding http://ef87f17b7c55.ngrok.io -> http://mybot.myserver.com:80
Forwarding https://ef87f17b7c55.ngrok.io -> http://mybot.myserver.com:80
Connections ttl opn rt1 rt5 p50 p90
20 0 0.02 0.02 1.01 3.01“”“
当我尝试在电报上运行时,什么也没有出现,并且出现了严重的网关错误。
ngrok的CLI输出:
“”“
POST /webhooks/telegram/webhook 502 Bad Gateway
POST /webhooks/telegram/webhook 502 Bad Gateway
POST /webhooks/telegram/webhook 502 Bad Gateway
POST /webhooks/telegram/webhook 502 Bad Gateway
POST /webhooks/telegram/webhook 502 Bad Gateway
POST /webhooks/telegram/webhook 502 Bad Gateway
OPTIONS /webhooks/rest/webhook 502 Bad Gateway
POST /webhooks/telegram/webhook 502 Bad Gateway
POST /webhooks/telegram/webhook 502 Bad Gateway
POST /webhooks/telegram/webhook 502 Bad Gateway“”“
发布于 2020-10-21 21:24:21
控制台上的输出是什么?试着用rasa run --debug运行你的机器人,你应该会得到一些有用的输出,告诉你哪里出了问题。您的凭据可能有问题
https://stackoverflow.com/questions/64457945
复制相似问题