Hello Team, i m stucked here please help me out for this error. I ve tried many times to get this error solve on my side after getting no solution i m here for help. The problem is that when i create JSON file for curl request it always says that invallid JSON payloads at "/operations/"
ATTACHING BELOW THE RESQUEST AND THE RESPONSE :
REQUSEST:
curl --header "Content-Type: application/json" \
--header "developer-token: ${DEVELOPER_TOKEN}" \
--header "login-customer-id: ${MANAGER_CUSTOMER_ID}" \
--header "Authorization: Bearer ${OAUTH_ACCESS_TOKEN}" \ --data @create_billingSetup.json -X POST $REST_URL -i HTTP/1.1
RESPONES:
HTTP/2 400
vary: X-Origin
vary: Referer
vary: Origin,Accept-Encoding
content-type: application/json; charset=UTF-8
date: Tue, 18 Oct 2022 18:20:41 GMT
server: ESF
cache-control: private
x-xss-protection: 0
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
accept-ranges: none
{
"error": {
"code": 400,
"message": "Invalid JSON payload received. Unknown name \"operation\": Proto field is not repeating, cannot start list.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "
type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"description": "Invalid JSON payload received. Unknown name \"operation\": Proto field is not repeating, cannot start list."
}
]
}
]
}
}
curl: (6) Could not resolve host: HTTP