Twilio可编程聊天引发无法连接到twilsock

编程入门 行业动态 更新时间:2024-10-23 12:24:36
本文介绍了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

本文发布于:2023-06-04 08:33:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/493328.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:可编程   连接到   Twilio   twilsock

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!