Open flick1533 opened 1 year ago
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.
Thank you for reporting this issue. We will consider your feedback and have added this request to our backlog for this solution.
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:
[x] Version: 2.0.0
[x] Region: [e.g. us-east-1]
[x] Was the solution modified from the version published on this repository?
No
[x] If the answer to the previous question was yes, are the changes available on GitHub?
[x] 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.