Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

api.LiveKitAPI().start_room_composite_egress(req) failing silently when called from agent #552

Copy link
Copy link
@jaylim95

Description

@jaylim95
Issue body actions

from livekit import api

Hey, noticed that await 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 error?

I was following this guide from https://docs.livekit.io/deploy/observability/data/#record-audio-or-video

Expected: throw an error when ccredentials are incorrect
Observed: no error is raised

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)

On livekit cloud, I can see that egress failed

Image
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.