Twilio可编程聊天引发无法连接到twilsock [英] Twilio Programmable Chat throwing Can't connect to twilsock

查看:187
本文介绍了Twilio可编程聊天引发无法连接到twilsock的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用程序化聊天时,我不断收到此错误

When I'm trying to use the programmatic chat I'm constantly getting this error

Error: Can't connect to twilsock
at t (twilio-chat.min.js:204)
at t (twilio-chat.min.js:204)
at new t (twilio-chat.min.js:204)
at e.value (twilio-chat.min.js:204)
at t.value (twilio-chat.min.js:204)
at twilio-chat.min.js:204
at t.<anonymous> (twilio-chat.min.js:204)
at twilio-chat.min.js:168
at t.a.emit (twilio-chat.min.js:168)
at t.value (twilio-chat.min.js:175)

我按照我正在测试的 repo 的所有说明进行操作.我生成令牌.所以不确定什么是错的.我了解生成令牌时出了点问题.谁能告诉我需要传递什么身份?我通过Twilio控制台在服务中创建了测试用户,但仍然无法正常工作.

I followed all the instruction for the repo I'm testing on. I generate the token. So not sure what is wrong. I understand something is wrong when generating the token. Can anyone tell me what identity needs to be passed? I created the test user in the service from the Twilio console but still it's not working.

推荐答案

此处是Twilio开发人员的福音.

Twilio developer evangelist here.

我相信您可能正在使用测试凭据来生成您的访问令牌.通过可编程聊天,您不能使用测试凭据,它们仅用于伪造发送消息,购买号码和拨打电话.

I believe you might be using test credentials to generate your access token. With Programmable Chat you cannot use test credentials, they are only to be used to fake sending messages, buying numbers and making phone calls.

请再次尝试生成您的访问令牌,但要在您的帐户中提供实时凭据 Twilio控制台.

Please try generating your access token again but with live credentials available in your Twilio console.

这篇关于Twilio可编程聊天引发无法连接到twilsock的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆