Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to delete room via RoomServiceClient #373

Open
andypotato opened this issue Jan 4, 2025 · 3 comments
Open

Unable to delete room via RoomServiceClient #373

andypotato opened this issue Jan 4, 2025 · 3 comments

Comments

@andypotato
Copy link

Using livekit-server-sdk 2.9.4 on NodeJS 20.18.1

Using the RoomServiceClient I try to delete a room immediately after all participants have left. Here is the relevant code:

const rsc = new RoomServiceClient(my_url, my_api_key, my_secret);
await rsc.deleteRoom("the-room-name");
console.log("Room deleted");

The deleteRoom() method will never finish and also never timeout. It will just get stuck there forever.

Other methods like createRoom() or listRooms() will work just fine.

@lukasIO
Copy link
Contributor

lukasIO commented Jan 27, 2025

are you using LiveKit cloud or a self hosted server?

@andypotato
Copy link
Author

I'm seeing this issue on the LiveKit cloud. I can give it a try with a self hosted server.

Copy link
Contributor

lukasIO commented Jan 28, 2025

thanks, how do you determine "after everyone has left". Are you trying to delete the room when you get a webhook that the last participant left?
Detailed repro steps would be helpful for investigating this further

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants