You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I click on the Save edits button after editing the Translation, the workflow starts to rerun but ends with an Error status.
To Reproduce
1. Upload a video and run a workflow. The workflow I ran has the following configuration.
Audio Operators - Transcribe - Source Language - English US
Text Operators - Translate - Spanish
Video is uploaded and analyzed well.
2. Edit the Tanslation for the workflow
3. Click Save edits
4. The workflow ends in an Error state. The Step Functions console shows the error is in WebToVTTCaptions.
Expected behavior
The workflow reruns with the edited translation.
Please complete the following information about the solution:
Version: 2.0.0
Region: [e.g. us-east-1]
Was the solution modified from the version published on this repository?
No
If the answer to the previous question was yes, are the changes available on GitHub?
Have you checked your service quotas for the services this solution uses?
Yes
Were there any errors in the CloudWatch Logs?
This is ValueError in step: Complete Stage TransformText
{
"errorMessage": "Exception: 'Stage TransformText encountered and error during execution, aborting the workflow'",
"errorType": "ValueError",
"requestId": "9cf69725-b853-4ff8-9159-f9cd13f9dacd",
"stackTrace": [
" File \"/var/task/app.py\", line 327, in complete_stage_execution_lambda\n return complete_stage_execution(\"lambda\", event[\"Name\"], event[\"Status\"], event[\"Outputs\"], event[\"WorkflowExecutionId\"])\n",
" File \"/var/task/app.py\", line 467, in complete_stage_execution\n raise ValueError(\n"
]
}
This is the error from the Execute WebToVTTCaptions (TransformText) - Caught twice in Execute WebToVTCaptions (TransformText)
It seems the application fails to identify the SourceLangnugeCode because after editing the translated subtitles and saving, the SourceLanguageCodes (en) and TargetLanguageCodes (es) are both passed as the TargetLanguageCodes, seen below.
Hi team! I had this same error editing both the Subtitles or the Translation. We identified that the error occurs on lambdas: WebToVTTCaptionsFunction and WebToSRTCaptionsFunction specially here since it does not receive any of these values (specially source_language_code) which prevents it to continue working:
if "TranscribeSourceLanguage" in self.operator_object.input['MetaData']:
self.source_language_code = self.operator_object.input['MetaData']['TranscribeSourceLanguage'].split('-')[0]
elif "TranslateSourceLanguage" in self.operator_object.input['MetaData']:
self.source_language_code = self.operator_object.input['MetaData']['TranslateSourceLanguage'].split('-')[0]
else:
# If TranscribeSourceLanguage is not available, then SourceLanguageCode
# must be present in the operator Configuration block.
self.source_language_code = self.operator_object.configuration.get("SourceLanguageCode","en")
if "TargetLanguageCodes" in self.operator_object.configuration:
self.target_language_codes = self.operator_object.configuration["TargetLanguageCodes"]
if "ExistingSubtitlesObject" in self.operator_object.configuration:
self.existing_subtitles_object = self.operator_object.configuration["ExistingSubtitlesObject"]
self.existing_subtitles = True
It seems that these values are not being correctly propagated on Subtitle or Translation editing.
Describe the bug
When I click on the Save edits button after editing the Translation, the workflow starts to rerun but ends with an Error status.
To Reproduce
Expected behavior
The workflow reruns with the edited translation.
Please complete the following information about the solution:
Version: 2.0.0
Region: [e.g. us-east-1]
Was the solution modified from the version published on this repository?
No
If the answer to the previous question was yes, are the changes available on GitHub?
Have you checked your service quotas for the services this solution uses?
Yes
This is ValueError in step: Complete Stage TransformText
This is the error from the Execute WebToVTTCaptions (TransformText) - Caught twice in Execute WebToVTCaptions (TransformText)
It seems the application fails to identify the SourceLangnugeCode because after editing the translated subtitles and saving, the SourceLanguageCodes (en) and TargetLanguageCodes (es) are both passed as the TargetLanguageCodes, seen below.
WebToVTCaptions (TransformText) error
Screenshots
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: