我有一个复杂的循环工作流程。我想重用它,所以我把它变成了一个单独的工作流程。现在我需要使用不同的参数在父工作流的不同位置调用它。我不断收到一个错误,这似乎表明我没有正确传递参数。您将在下面找到我调用它的方式和错误消息。任何帮助表示赞赏
- testCallable2:
call: http.post
args:
url: ${"https://workflowexecutions.googleapis.com/v1beta/projects/"+sys.get_env("GOOGLE_CLOUD_PROJECT_ID")+"/locations/us-central1/workflows/test-callable/executions"}
auth:
type: OAuth2
scope: 'https://www.googleapis.com/auth/cloud-platform'
body:
- argv1: 1
- argv2: "one"
result: state
-错误
"error": {
"code": 400,
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"description": "Invalid JSON payload received. Unknown name \"\": Root element must be a message."
}
]
}
],
"message": "Invalid JSON payload received. Unknown name \"\": Root element must be a message.",
"status": "INVALID_ARGUMENT"
}