Skip to contentSkip to navigationSkip to topbar
Page toolsOn this pageProducts used
Looking for more inspiration?Visit the

31910: Stream - WebSocket - SSL Protocol Error


ERROR: 31910

error-31910 page anchor
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.

Possible causes

possible-causes page anchor
  • The <Stream> url points to an endpoint that does not support wss.
  • The WebSocket server is listening on the wrong port, or the port in the <Stream> url is 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> url to use a reachable wss endpoint. Do not use ws.
  • 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.

Additional resources

additional-resources page anchor