By using AWS re:Post, you agree to the Terms of Use
/Amazon Translate/

Questions tagged with Amazon Translate

Sort by most recent
  • 1
  • 90 / page

Browse through the questions and answers listed below or filter and sort to narrow down your results.

Content Localization workflow fails at the end of translation

Hello everybody, we've successfully deployed the Content Localization service with the CloudFormation template. When we upload a video in the Content Localization Web App, the following error is raised: ``` { "error": "ValueError", "cause": { "errorMessage": "Exception: 'Stage Translate encountered and error during execution, aborting the workflow'", "errorType": "ValueError", "stackTrace": [ " File \"/var/task/app.py\", line 315, 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 460, in complete_stage_execution\n raise ValueError(\n" ] } } ``` The error is raised at the end of the translation. GraphInspector shows the stage "Complete Stage Translate" in red color. CloudWatch logs show the same error and don't provide additional info. The marked comments in the code shortly before the ValueError is raised indicate that might be a known issue (lines 437-460 in `/var/task/app.py`): ``` ########### SEE THIS COMMENT: # Start the next stage for execution # FIXME - try always completing stage # status == awsmie.STAGE_STATUS_COMPLETE: ############ KNOWN ISSUE? workflow_execution = start_next_stage_execution( "Workflow", stage_name, workflow_execution) if status == awsmie.STAGE_STATUS_ERROR: raise Exception("Stage {} encountered and error during execution, aborting the workflow".format(stage_name)) except Exception as e: logger.info("Exception {}".format(e)) # Need a try/catch here? Try to save the status execution_table.put_item(Item=workflow_execution) update_workflow_execution_status(workflow_execution["Id"], awsmie.WORKFLOW_STATUS_ERROR, "Exception while rolling up stage status {}".format(e)) logger.info("Exception {}".format(e)) raise ValueError( "Exception: '%s'" % e) ``` Do you have any idea on how to solve this issue? Thank you very much in advance! Best regards
0
answers
0
votes
3
views
asked 3 months ago

PHP SDK Operation not found: StartTextTranslationJob

Trying to use the async batch translate API with the AWS PHP SDK (updated to 3.130.3 via composer) and get returned the error "Operation not found: StartTextTranslationJob" when calling the job: ``` $result = $client->StartTextTranslationJob([ 'ClientToken' => $job_uuid, // REQUIRED 'DataAccessRoleArn' => 'myiam', // REQUIRED 'InputDataConfig' => [ // REQUIRED 'ContentType' => 'text/plain ', // REQUIRED 'S3Uri' => 'myinput', // REQUIRED ], 'JobName' => 'myjobname', 'OutputDataConfig' => [ // REQUIRED 'S3Uri' => 'my output', // REQUIRED ], 'SourceLanguageCode' => $currentLanguage, // REQUIRED 'TargetLanguageCodes' => $languages, // REQUIRED 'TerminologyNames' => ['my_terminology'], ]); ``` I have been using TranslteText successfully for a few months but it is beginning to throttle so I am trying to move larger text strings into async batch jobs. I have opened the TranslateClient.php file and it does not seem to describe StartTextTranslationJob: ``` namespace Aws\Translate; use Aws\AwsClient; /** * This client is used to interact with the **Amazon Translate** service. * @method \Aws\Result deleteTerminology(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteTerminologyAsync(array $args = []) * @method \Aws\Result getTerminology(array $args = []) * @method \GuzzleHttp\Promise\Promise getTerminologyAsync(array $args = []) * @method \Aws\Result importTerminology(array $args = []) * @method \GuzzleHttp\Promise\Promise importTerminologyAsync(array $args = []) * @method \Aws\Result listTerminologies(array $args = []) * @method \GuzzleHttp\Promise\Promise listTerminologiesAsync(array $args = []) * @method \Aws\Result translateText(array $args = []) * @method \GuzzleHttp\Promise\Promise translateTextAsync(array $args = []) */ class TranslateClient extends AwsClient ``` Any clues? Edited by: elderbre on May 2, 2020 4:03 AM
1
answers
0
votes
3
views
asked 2 years ago
  • 1
  • 90 / page