eager-kite-60809
12/21/2025, 3:49 PMawait api.LiveKitAPI().start_room_composite_egress(req) would fail silently when called in livekit agent when credentials are misconfigured. Is this expected? Shouldnt it throw an unauthorised error? Can anyone help me catch error here?
I was following this guide from https://docs.livekit.io/deploy/observability/data/#record-audio-or-video
Code:
file_outputs = [
api.EncodedFileOutput(
file_type=api.EncodedFileType.OGG,
filepath=filepath,
azure=api.AzureBlobUpload(
account_name=account_name,
account_key=account_key,
container_name=container_name,
),
)
]
req = api.RoomCompositeEgressRequest(room_name=ctx.room.name, audio_only=True, file_outputs=file_outputs, audio_mixing="DUAL_CHANNEL_AGENT")
lkapi = api.LiveKitAPI()
try:
await lkapi.egress.start_room_composite_egress(req)
except Exception as e:
print(e)lively-winter-88668
12/23/2025, 9:34 AMtry above the call to api.LiveKitAPI() to catch the credential errors. It should not fail silently