【发布时间】:2020-01-28 01:11:45
【问题描述】:
我正在关注AutoML object detection 的快速入门。不幸的是,我遇到了一个我无法弄清楚的错误。在第一个 curl 命令
curl -X POST \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
"https://automl.googleapis.com/v1beta1/projects/$PROJECT_ID/locations/us-central1/datasets" -d '{
"display_name": "dataset_name",
"image_object_detection_dataset_metadata": {
}
}'
我收到此错误:
{
"error": {
"code": 400,
"message": "List of found errors:\t1.Field: parent; Message: Required field is invalid\t",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "parent",
"description": "Required field is invalid"
}
]
}
]
}
}
这似乎是某种架构验证错误,所以也许他们更改了请求正文格式,但我不知道如何更改它。
【问题讨论】:
标签: google-cloud-platform google-cloud-automl