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

Aucune réponse

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions