简体   繁体   English

Rocket.Chat 无法接收来自 Twilio 的 SMS 文本。 (Twilio 的调试器:HTTP 检索失败)

[英]Rocket.Chat can not receive SMS texts from Twilio. (Twilio's Debugger: HTTP retrieval failure)

(This has been solved please read at the bottom for what fixed the issue.) (此问题已解决,请在底部阅读解决问题的方法。)

I am having trouble receiving Twilio's SMS texts from Rocket.Chat's LiveChat我无法从 Rocket.Chat 的 LiveChat 接收 Twilio 的 SMS 文本

In the admin panel on rocket.chat I put in the correct Twilio's "ACCOUNT SID" and "AUTH TOKEN"在 Rocket.chat 的管理面板中,我输入了正确的 Twilio 的“帐户 SID”和“授权令牌”

I also put the correct webhook details on Twilio's 'A message comes in': https://blahblah.ngrok.io:3000/api/v1/livechat/sms-incoming/twilio我还在 Twilio 的“消息传入”中添加了正确的 webhook 详细信息: https ://blahblah.ngrok.io:3000/api/v1/livechat/sms-incoming/twilio

I followed the details from:我遵循了以下详细信息:

https://github.com/RocketChat/Rocket.Chat.RaspberryPi#start-of-content https://github.com/RocketChat/Rocket.Chat.RaspberryPi#start-of-content

and

RocketChat: How to send SMS Messages to Livechat channel from mobile RocketChat:如何从手机向 Livechat 频道发送短信

I have Rocket.Chat server running on a Raspberry Pi 3+ B model with Raspbian Buster OS.我在带有 Raspbian Buster OS 的 Raspberry Pi 3+ B 型号上运行 Rocket.Chat 服务器。

Im using ngrok to tunnel and able to access my rocket.chat server on the web when using the ngrok http url.我使用 ngrok 进行隧道传输,并在使用 ngrok http url 时能够在网络上访问我的 Rocket.chat 服务器。

Twilio's Debugger shows "HTTP retrieval failure Error 11200" Twilio 的调试器显示“HTTP 检索失败错误 11200”

I also have tested this on Ubuntu Server on raspberry, same exact problem as above.我也在树莓派上的 Ubuntu Server 上对此进行了测试,与上述完全相同的问题。

I also have tested this on Ubuntu on MacBook Air, same exact problem as above.我还在 MacBook Air 上的 Ubuntu 上对此进行了测试,问题与上述完全相同。

Please view the pictures below:请查看以下图片:

image 1图 1

image 2图 2

image 3图 3

image 4图 4

image 5图 5

image 6图 6

EDIT:编辑:

This has been solved thanks to Alan's comment: "Don't put the port 3000 on the Ngrok URL (. You tell Ngrok what port to send to your app via the configuration and you just send to the Ngrok URL using HTTPS or HTTP."由于 Alan 的评论,这已经得到解决:“不要将端口 3000 放在 Ngrok URL 上(。您通过配置告诉 Ngrok 将哪个端口发送到您的应用程序,然后您只需使用 HTTPS 或 HTTP 发送到 Ngrok URL。”

On Twilio's 'Message comes in' webhook URL, I removed port ":3000" from " https://e60c0c8a.ngrok.io:3000/api/v1/livechat/sms-incoming/twilio " and it solved the problem.在 Twilio 的“消息传入”网络钩子 URL 上,我从“ https://e60c0c8a.ngrok.io:3000/api/v1/livechat/sms-incoming/twilio ”中删除了端口“:3000”,它解决了问题。

The proper webhook URL syntax that solved the issue is: "https://your_rocketchat_url/api/v1/livechat/sms-incoming/twilio "解决该问题的正确 webhook URL 语法是:“https://your_rocketchat_url/api/v1/livechat/sms-incoming/twilio

This has been solved thanks to Alan's comment: "Don't put the port 3000 on the Ngrok URL (. You tell Ngrok what port to send to your app via the configuration and you just send to the Ngrok URL using HTTPS or HTTP."由于 Alan 的评论,这已经得到解决:“不要将端口 3000 放在 Ngrok URL 上(。您通过配置告诉 Ngrok 将哪个端口发送到您的应用程序,然后您只需使用 HTTPS 或 HTTP 发送到 Ngrok URL。”

On Twilio's 'Message comes in' webhook URL, I removed port ":3000" from " https://e60c0c8a.ngrok.io:3000/api/v1/livechat/sms-incoming/twilio " and it solved the problem.在 Twilio 的“消息传入”网络钩子 URL 上,我从“ https://e60c0c8a.ngrok.io:3000/api/v1/livechat/sms-incoming/twilio ”中删除了端口“:3000”,它解决了问题。

The proper webhook URL syntax that solved the issue is: "https://your_rocketchat_url/api/v1/livechat/sms-incoming/twilio "解决该问题的正确 webhook URL 语法是:“https://your_rocketchat_url/api/v1/livechat/sms-incoming/twilio

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM