gpt4 book ai didi

reactjs - 创建客户端时无法连接到 twilsock

转载 作者:行者123 更新时间:2023-12-05 04:02:39 28 4
gpt4 key购买 nike

我将 Twilio 与 React 结合使用,当我使用此代码创建客户端时

this.chatClient = new Chat(this.state.token);

但我一直收到这个错误

TransportUnavailableError: Can't connect to twilsock
at Upstream.send (http://localhost:3000/static/js/1.chunk.js:96516:31)
at TwilsockClient.post (http://localhost:3000/static/js/1.chunk.js:94626:28)
at http://localhost:3000/static/js/1.chunk.js:88943:33
at Retrier.<anonymous> (http://localhost:3000/static/js/1.chunk.js:88882:11)
at Retrier.push../node_modules/events/events.js.EventEmitter.emit (http://localhost:3000/static/js/1.chunk.js:25082:17)

提前致谢

最佳答案

问题出在我的设备和 Twilio 之间。所以我运行下面的测试以找出对我来说是什么问题这是网络/防火墙问题。修复了它,现在可以正常工作了

https://networktest.twilio.com 

关于reactjs - 创建客户端时无法连接到 twilsock,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54271668/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com