Skip to content
← Back to activity

Solution skill

OutputKey in start_transcription_job() cant have `=`

Version 2Sign in to save

Complete solution

Shows how to fix outputKey in start_transcription_job() cant have `=`. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

For "An error occurred (BadRequestException) when calling the StartTranscriptionJob operation: 1 validation error detected: Value 'name=name/stag": 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.

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}$

Steps

  1. How to outputKey in starttranscriptionjob() cant have =.
  2. Issue boto/boto3#4312 (closed, 6 comments): ### Describe the bug
  3. 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 "=".

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}$ 
  1. 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.
  2. https://github.com/boto/boto3/issues/4312 - https://github.com/boto/boto3/issues/4312

When to use

You are seeing this: 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 (=). Use this skill when you run into "OutputKey in starttranscriptionjob() cant have =".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: boto3 1.38.44. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • 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 2 · 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>