I am getting this error - livekit.api.twirp_clien...
# ask-ai
m
I am getting this error - livekit.api.twirp_client.TwirpError: TwirpError(code=malformed, message=the protobuf request could not be decoded, status=400) This is my code req = api.RoomCompositeEgressRequest( room_name=ctx.room.name, audio_only=True, file_outputs=[api.EncodedFileOutput( file_type=api.EncodedFileType.OGG, filepath="recording/my-room-test.ogg", s3=api.S3Upload( bucket="", region="", access_key="", secret="", ), )], ) lkapi = api.LiveKitAPI() res = await lkapi.egress.start_room_composite_egress(req)
t
Thanks for reaching out, Mridul. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thank you for sharing the error and code snippet. To assist you further, could you please provide the following details: • Are the
bucket
,
region
,
access_key
, and
secret
fields in the
S3Upload
object correctly configured with valid values? • Have you verified that the file path
recording/my-room-test.ogg
is valid and accessible? • Are you using the latest version of the LiveKit API library? • Have you tested the request without the
S3Upload
configuration to see if the issue persists? Sources: livekit.api API documentation