31910: Stream - WebSocket - SSL Protocol Error
VOICE
ERROR
This error occurs when Twilio can't establish the secure WebSocket connection required for Media Streams. <Stream> supports only wss, so your WebSocket endpoint must accept a secure connection before Twilio can begin streaming audio.
- The
<Stream>urlpoints to an endpoint that does not supportwss. - The WebSocket server is listening on the wrong port, or the port in the
<Stream>urlis not configured for TLS. - The server certificate is not valid or is not accepted by standard HTTP clients, so the SSL handshake fails.
- A firewall or proxy is blocking secure WebSocket traffic to your public endpoint on port 443.
- Update the
<Stream>urlto use a reachablewssendpoint. Do not usews. - Configure your WebSocket server to accept secure connections on the port referenced in the
<Stream>url. Media Streams requires secure WebSocket connectivity on port 443. - Install or correct the TLS certificate so the endpoint presents a valid certificate that standard HTTP clients accept.
- Update your firewall or proxy rules to allow secure WebSocket connections from Twilio to your WebSocket server.