twilio / twilio-node

Node.js helper library
MIT License
1.37k stars 495 forks source link

Problem with Twilio streams using Websockets #988

Closed dmitriy-uvin closed 6 months ago

dmitriy-uvin commented 6 months ago

Preflight Checklist

Problem Description

Problem with ngrok websockets. You can the app code here - https://github.com/dmitriy-uvin/cold-caller. When I go to the ngrok link I have a simple HTML page where I am able to connect to websockets. On the backend, I have a simple method that allows you to fetch some messages to the frontend and it works.

But, I need to receive and establish a connection with Twilio. photo_2023-12-21_20-23-06 The first screenshot (where is no code response) it's when Twilio tries to establish websocket connection.

photo_2023-12-21_20-22-16 The second one (with response code) it's when I connect from index.html, and that works.

photo_2023-12-21_20-21-26 The third one is the error in Twilio logs.

How it can be solved?

Proposed Solution

.

Alternatives Considered

.

Additional Information

No response