我正在使用 boto3 和我的烧瓶应用程序将文件上传到 s3 存储桶中,并使用服务器端加密客户提供的密钥。我从加密的 s3 文件中尝试了 start_transcription_job 但我有一个例外
s3_client.upload_file(filename, BUCKET, s3filename, ExtraArgs={'SSECustomerKey': KEY, 'SSECustomerAlgorithm': 'AES256' })
transcribe_obj.start_transcription_job(
TranscriptionJobName=job_name,
Media={'MediaFileUri': s3uri},
MediaFormat=file_extension,
LanguageCode='en-US'
)
例外:
botocore.errorfactory.BadRequestException: An error occurred (BadRequestException) when calling the StartTranscriptionJob operation: The S3 URI that you provided can't be accessed. Make sure your URI is valid and try your request again.