Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OutputKey in start_transcription_job() cant have = #4312

Open
1 task
sidatcd opened this issue Oct 19, 2024 · 4 comments
Open
1 task

OutputKey in start_transcription_job() cant have = #4312

sidatcd opened this issue Oct 19, 2024 · 4 comments
Assignees
Labels
bug This issue is a confirmed bug. p2 This is a standard priority issue transcribe

Comments

@sidatcd
Copy link

sidatcd commented Oct 19, 2024

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

  • Select this option if this issue appears to be a regression.

Expected Behavior

The OutputKey should allow the equals sign ("=") as it's a valid character in S3 object keys.

Current Behavior

Throws the regex validation error

Reproduction Steps

  1. Call start_transcription_job() with an OutputKey that includes "=" (e.g., name=name/stage=prod/...).
  2. Observe the error.

Possible Solution

No response

Additional Information/Context

No response

SDK version used

boto3==1.35.44

Environment details (OS name and version, etc.)

mac

@sidatcd sidatcd added bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged. labels Oct 19, 2024
@sidatcd
Copy link
Author

sidatcd commented Oct 19, 2024

API has the same behaviour.

@adev-code adev-code self-assigned this Oct 28, 2024
@adev-code adev-code added p3 This is a minor priority issue investigating This issue is being investigated and/or work is in progress to resolve the issue. transcribe and removed needs-triage This issue or PR still needs to be triaged. labels Oct 28, 2024
@adev-code
Copy link

Hello @sidatcd, thanks for reaching out. For a further look, please provide code snippet and full debug logs by adding the line of code: boto3.set_stream_logger('') redacting any sensitive information. Thank you.

@adev-code adev-code added response-requested Waiting on additional information or feedback. and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Oct 29, 2024
@sidatcd
Copy link
Author

sidatcd commented Oct 29, 2024

Hello @sidatcd, thanks for reaching out. For a further look, please provide code snippet and full debug logs by adding the line of code: boto3.set_stream_logger('') redacting any sensitive information. Thank you.

Hello @adev-code
From my further investigation, this is an issue with StartTranscriptionJob API itself.Default validation does not allow =.
Same error when implemented in step function or other sdks, manually copying after setting transcribe output to a temp bucket as a workaround now.

@adev-code adev-code added p2 This is a standard priority issue and removed response-requested Waiting on additional information or feedback. p3 This is a minor priority issue labels Oct 29, 2024
@adev-code
Copy link

Hello @sidatcd, thanks for the update. I was able to reproduce the issue and I have reached out to the Transcribe Service Team. I'll let you know when I have any updates. In the meantime, if you have any follow-up questions, please do let me know. Thanks.

For Internal Use: P165674153

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a confirmed bug. p2 This is a standard priority issue transcribe
Projects
None yet
Development

No branches or pull requests

2 participants