使用Google API Explorer插入到GCP的數據存儲區時出現以下錯誤。使用Google API Explorer時出現錯誤400
我試過使用另一個名稱和ID,但仍然是錯誤。我該如何糾正這一點?
以下是請求正文和錯誤。
{
"mode": "Transactional",
"mutations": [
{
"insert": {
"key": {
"path": [
{
"id": "56294995342131231",
"name": "CL-001",
"kind": "Log"
}
],
"partitionId": {
"namespaceId": "",
"projectId": "triplog-169706"
}
},
"properties": {
"Title": {
"stringValue": "Space Needle"
},
"Longitude": {
"doubleValue": 0.00
},
"Latitude": {
"doubleValue": 0.00
},
"Date": {
"timestampValue": "2015-07-03T10:51:50.649Z"
},
"Rating": {
"integerValue": "5"
},
"Notes": {
"stringValue": "Wonderful site to see"
}
}
}
}
]
}
{
"error": {
"code": 400,
"message": "Invalid value at 'mutations[0].insert.key.path[0]' (oneof), oneof field 'id_type' is already set. Cannot set 'name'",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "mutations[0].insert.key.path[0]",
"description": "Invalid value at 'mutations[0].insert.key.path[0]' (oneof), oneof field 'id_type' is already set. Cannot set 'name'"
}
]
}
]
}
}
我已經修改了以下內容: 「路徑」:[ { 「ID」: 「1235629499534213120」, 「名」 的 「ID = 1235629499534213120」, 「種類」: 「日誌」 } ] 現在錯誤是這樣的: { 「錯誤」:{ 「代碼」:400, 「消息」: 「事務提交要求進行事務處理」, 「狀態」: 「INVALID_ARGUMENT」 } } – LCL