hi, team, I am still working on egress, trying to ...
# ask-ai
l
hi, team, I am still working on egress, trying to save the recording on s3, got the error from the log: 2025-07-23 120520,013 - DEBUG livekit.agents - start reading stream {“participant”: “user-8370", “source”: “SOURCE_MICROPHONE”, “pid”: 77473, “job_id”: “AJ_nZnBBkEtRnZT”} 2025-07-23 120520,707 - INFO google_genai.live - b’{\n “setupComplete”: {}\n}\n’ {“pid”: 77473, “job_id”: “AJ_nZnBBkEtRnZT”} 2025-07-23 120522,004 - INFO vision-assistant - 🎥 Recording started! Egress ID: EG_pCddGpyQGsnH {“pid”: 77473, “job_id”: “AJ_nZnBBkEtRnZT”} 2025-07-23 120532,006 - ERROR vision-assistant - ❌ Failed to monitor egress: EgressService.list_egress() got an unexpected keyword argument ‘room_name’ {“pid”: 77473, “job_id”: “AJ_nZnBBkEtRnZT”} 2025-07-23 120532,006 - ERROR asyncio - Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x10c088ec0> {“pid”: 77473, “job_id”: “AJ_nZnBBkEtRnZT”} 2025-07-23 120532,007 - ERROR asyncio - Unclosed connector connections: [’deque([(<aiohttp.client_proto.ResponseHandler object at 0x113a5b350>, 8671864.054997915)])’] connector: <aiohttp.connector.TCPConnector object at 0x113396ea0> {“pid”: 77473, “job_id”: “AJ_nZnBBkEtRnZT”} 2025-07-23 120533,543 - DEBUG livekit.agents - start reading stream {“participant”: “user-8370”, “source”: “SOURCE_CAMERA”, “pid”: 77473, “job_id”: “AJ_nZnBBkEtRnZT”}, it’s hard to see whether the problem is the recording or sending the recording. how can i fix the problem?
t
Thanks for reaching out, James. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The error
EgressService.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`:
Copy code
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