limited-arm-86913
07/23/2025, 5:04 AMtall-airline-16756
07/23/2025, 5:04 AMtall-airline-16756
07/23/2025, 5:05 AMEgressService.list_egress() got an unexpected keyword argument 'room_name' occurs because the list_egress method in the LiveKit Python SDK expects a ListEgressRequest object as its parameter, not individual keyword arguments.
To fix this, create a ListEgressRequest object and pass it to `list_egress`:
from livekit.protocol.egress import ListEgressRequest
# Example: filter by room name
list_request = ListEgressRequest(room_name="my-room")
egres_list = await egress_service.list_egress(list_request)
Replace room_name with your actual room name or use other filters as needed. This will resolve the method signature error and allow you to monitor egress jobs correctly.
This error does not indicate a problem with the recording or S3 upload itself, but rather with how the egress monitoring is being performed in your code.
Sources: livekit-protocol/livekit/protocol/egress.pyi