当我尝试使用程序化聊天时,我不断收到此错误
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
发布评论