agents
agents copied to clipboard
Issue with api.S3Upload when integrating with Supabase
Running the following code snippet, livekit api is not properly reading access key and I get: "the request signature we calculated does not match the signature you provided."
The access key and the secret work perfectly, and the recording is being initialized correctly. Seems to me that S3Upload function is not properly taking in secret key.
Create the recording request
req = api.RoomCompositeEgressRequest(
room_name=room_name,
audio_only=False,
file_outputs=[api.EncodedFileOutput(
file_type=api.EncodedFileType.MP4,
filepath=filepath,
# Supabase storage integration
s3=api.S3Upload(
bucket=bucket_name,
region="auto", # us-east-1
access_key=supabase_access_key,
secret=supabase_secret_key,
endpoint=end_point,
force_path_style=True,
),
)],
)
the issue is on the Supabase side: https://github.com/supabase/storage/issues/577
they are currently not compatible with AWS Go SDK v2. Since v1 has been deprecated, we don't have much of a choice on our side