how to solve this how to solve this failed to send...
# ask-ai
r
how to solve this how to solve this failed to send request: cURL error 1: Protocol "wss" disabled (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for wss://callcenter-6g1iey62.livekit.cloud/twirp/livekit.RoomService/UpdateParticipant
t
Thanks for reaching out, Jovinary. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! The error you're seeing happens because the RoomService API doesn’t use WebSockets (wss://). Instead, it works over regular HTTP or HTTPS protocols. Here’s how you can fix it: 1. Make sure you’re using an HTTPS URL (like
https://your-room.livekit.cloud
) when you set up the RoomService client. 2. Send your request to the right Twirp endpoint:
/twirp/livekit.RoomService/UpdateParticipant
. 3. Use standard HTTP methods (POST) and the correct content types (JSON or Protobuf). So, using a WSS URL won’t work here because RoomService is all about stateless, request-response communication over HTTP—not WebSockets. Just tweak the URL and your request setup, and you should be good to go! Sources: livekit/livekit_room.twirp.go | src/main/kotlin/io/livekit/server/RoomService.kt | packages/livekit-server-sdk/src/RoomServiceClient.ts