问题描述
我正在尝试通过Cloud Scheduler计划数据流作业,方法是发布到REST API并由OAUTH进行身份验证。我已经创建了一个模板,当我手动使用Dataflow“从模板创建作业”时,它可以工作。但是,当用作HTTP端点(https://dataflow.googleapis.com/v1b3/projects/${my.proj}/locations/europe-west1/templates:launch?gcsPath=gs://${my.proj}/templates/${template.name})时,它返回以下错误:
{
"error": {
"code": 400,"message": "Invalid JSON payload received. Unknown name \"jobName\": Cannot bind query parameter. Field 'jobName' could not be found in request message.\nInvalid JSON payload received. Unknown name \"environment\": Cannot bind query parameter. Field 'environment' could not be found in request message.\nInvalid JSON payload received. Unknown name \"parameters\": Cannot bind query parameter. Field 'parameters' could not be found in request message.","status": "INVALID_ARGUMENT","details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest","fieldViolations": [
{
"description": "Invalid JSON payload received. Unknown name \"jobName\": Cannot bind query parameter. Field 'jobName' could not be found in request message."
},{
"description": "Invalid JSON payload received. Unknown name \"environment\": Cannot bind query parameter. Field 'environment' could not be found in request message."
},{
"description": "Invalid JSON payload received. Unknown name \"parameters\": Cannot bind query parameter. Field 'parameters' could not be found in request message."
}
]
}
]
}
}
以下是我的POST正文:
{
"jobName": "test","parameters": {
"region": "europe-west1"
},"environment": {
"tempLocation": "gs://${my.proj}/temp","zone": "europe-west1"
}
}
感谢您的帮助,谢谢!!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)