This message was deleted.
# helpdesk
s
This message was deleted.
b
I'm asking because from time to time I see theses errors with some tests:
Copy code
✘ Delete room
   ┐
   ├ Livekit\TwirpError: operation cannot be completed

✘ Update room metadata
   ┐
   ├ Livekit\TwirpError: operation cannot be completed
   │
Strange, in some instance the same code returns all good.. and rerunning that same code.. it then fails.
a
(fyi Pat, I forwarded this question to the folks on the team who would know)
b
Thanks a lot @acoustic-engineer-41666 🙏
d
Pat, can you share the code that you've used for this? It's not clear what these tests are doing.
b
These are tests built for the php sdk
@dry-elephant-14928 So this is automated test using PHPUnit.
Copy code
private function createRoom($roomName): Room {
    $opts = (new RoomCreateOptions())
      ->setName($roomName)
      ->setEmptyTimeout(10)
      ->setMaxParticipants(20);
    return $this->client->createRoom($opts);
  }

public function testDeleteRoom() {
    $roomName = 'testRoom1';
    $room = $this->createRoom($roomName);
    $this->assertEquals($roomName, $room->getName());

    $response = $this->client->deleteRoom($roomName);
    $this->assertInstanceOf(DeleteRoomResponse::class, $response);

    $response = $this->client->listRooms([$roomName]);
    $this->assertEquals(0, $response->getRooms()->count());
  }
This one sometimes fails, sometimes it works.
d
got it. as long as createRoom returns (and is successful), it should be possible to delete it right away. if you are running against Cloud, do you have an example roomName (and rough time) when it errored out for you? I'll take a look
b
Its always testing roomname "testRoom1" . Under the project "php-sdk" .
👀 1
@dry-elephant-14928, I just gave it another go:
Copy code
✘ Delete room
   ┐
   ├ Livekit\TwirpError: operation cannot be completed
For some odd reason, if the room is already created.. and you try to recreate it.. and delete it.. its not working.. although if I create a fresh room and delete it, then its working.
Copy code
✔ Delete room
Things now passes.
m
#helpdesk i face the same issue does deleteRoom also delete the ingress/Egress/Participants associated with the room, we see this error during deleteRoom but we don't know the reason from the logs
Copy code
operation cannot be completed
s
i also face the same, when deleting room getting error "operation cannot be completed"
b
@strong-receptionist-62811, I'm somewhat curious, the room has been created for how long before you tried to deleting the room?