Content Localization workflow fails at the end of translation

0

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

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠