orange-fireman-69650
12/05/2025, 9:22 PMtall-airline-16756
12/05/2025, 9:22 PMtall-airline-16756
12/05/2025, 9:23 PMorange-fireman-69650
12/05/2025, 9:25 PMtall-airline-16756
12/05/2025, 9:26 PMlkapi.egress.start_room_composite_egress(req) raise an exception or return an error? If yes, paste the error text.
• In the LiveKit Cloud console, how many active egress jobs exist when this fails (Build plan limits to 2 concurrent jobs)?
• Is the project’s Egress feature enabled in Settings → Features, and does the API key include egress permission?
Quick change to try
• Wait a short delay after the call becomes active before starting egress. For example, add a 1–3s sleep after your loop that sees sip.callStatus == "active" to ensure the room is fully ready for egress.
If you share any error response from the API or how many concurrent egresses are running, I’ll give the exact next steps.orange-fireman-69650
12/05/2025, 9:29 PMtall-airline-16756
12/05/2025, 9:29 PMsip.callStatus == "active", add await asyncio.sleep(2).
1. Verify egress job creation/status:
◦ After calling start_room_composite_egress, call:
status = await lkapi.egress.list_egress(request=api.ListEgressRequest(room_name=_ctx_.room.name))
print(status)
Share that output if it shows no job or an error.
1. Confirm Egress feature and API key permission in LiveKit Cloud:
◦ Ensure Egress is enabled in Settings → Features and the API key includes egress permission.
1. Check S3 upload credentials and bucket policy:
◦ Test the `_access_key_`/`_secret_` with AWS CLI and confirm PutObject is allowed for qp-agent-calls in us-east-2.
1. Ensure unique room names:
◦ Use a unique room name per session (UUID or timestamp) to avoid collisions.
If you add the sleep and run the status check, paste the list_egress output here and I’ll tell you the next diagnostic step.