Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't connect to twilsock while creating Client

i am using Twilio with react and when i create the client using this code

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

but i keep geting this error

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)

Thanks in advance

like image 899
Abel Lamesgen Avatar asked Feb 04 '26 12:02

Abel Lamesgen


1 Answers

The issues were between my device and Twilio. so I run the test bellow to find out what was the issue for me it was a network/firewall issue. fixed that and now it is working

https://networktest.twilio.com 
like image 70
Abel Lamesgen Avatar answered Feb 06 '26 03:02

Abel Lamesgen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!