31922: Stream - WebSocket - URL Schema Not Supported
VOICE
ERROR
This error occurs when the <Stream> url uses a protocol that Programmable Voice Media Streams does not support. Twilio connects Media Streams over a wss WebSocket connection, and wss is the only supported protocol for the <Stream> url attribute.
- The
<Stream>urluses a protocol other thanwss. - The WebSocket endpoint in your TwiML was configured with an unsupported URL schema.
- Update the
<Stream>urlso it points to a secure WebSocket endpoint that uses thewssschema. - Review the
urlattribute in your<Start><Stream>or<Connect><Stream>TwiML and confirm it is formatted for Media Streams. - If you need to pass values to your WebSocket server, do not add query string parameters to the
url. Use nested<Parameter>values instead.