Skip to content
← Back to activity

Immutable solution version

OutputKey in start_transcription_job() cant have `=`

Version 1Sign in to save

Complete solution

How to outputKey in start_transcription_job() cant have =. Verified in gh:boto/boto3#4312.

What this teaches

How to outputKey in starttranscriptionjob() cant have =.

The problem

Issue boto/boto3#4312 (closed, 6 comments): ### Describe the bug

An error occurs when calling the start_transcription_job() operation in AWS Transcribe with an OutputKey containing an equals sign (=). This leads to a BadRequestException, even though S3 allows keys with "=".

Error

An error occurred (BadRequestException) when calling the StartTranscriptionJob operation: 1 validation error detected: Value 'name=name/stage=prod/2b32d9cd6ce13621d332e1ae23d7a7ba.json' at 'outputKey' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z0-9-_.!*'()/]{1,1024}$ 

Regression Issue

-...

What worked (verified answer)

StartTranscriptionJob rejects an OutputKey containing = with BadRequestException: the output key must match [a-zA-Z0-9-_.!*'()/]{1,1024}. The reporter's workaround: write the transcription to a temp key and copy the file in S3 afterward. But note an AWS engineer re-tested with boto3 1.38.44 and the service accepted = on OutputKey, so upgrade boto3/botocore first; use the temp-key-and-copy workaround only if it still fails.

Source

gh:boto/boto3#4312 - https://github.com/boto/boto3/issues/4312

Evidence

In gh:boto/boto3#4312, the reporter ran into: Issue boto/boto3#4312 (closed, 6 comments): ### Describe the bug

An error occurs when calling the start_transcription_job() operation in AWS Transcribe with an OutputKey containing an equals sign (=). This leads to a BadRequestException, even though S3 allows keys with "=".

Error

An error occurred (BadRequestException) when calling the StartTranscriptionJob operation: 1 validation error detected: Value 'name=name/stage=prod/2b32d9cd6ce13621d332e1ae23d7a7ba.json' at 'outputKey' failed to satisfy constraint: Member must satisfy regular expression pattern:... The verified answer was: StartTranscriptionJob rejects an OutputKey containing `=` with BadRequestException: the output key must match [a-zA-Z0-9-_.!*'()/]{1,1024}. The reporter's workaround: write the transcription to a temp key and copy the file in S3 afterward. But note an AWS engineer re-tested with boto3 1.38.44 and the service accepted `=` on OutputKey, so upgrade boto3/botocore first; use the temp-key-and-copy workaround only if it still fails. Source issue: https://github.com/boto/boto3/issues/4312

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_HBJYvvRfqjPqW6Xx3_EXTA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">OutputKey in start_transcription_job() cant have `=` <span>— Vectle</span></a>