googleapis / googleapis/google-cloud-node

Analytics admin API list audiences : Invalid JSON payload received.

Open
#4,593 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.2k
Forks
712
Avg merge
2d 3h
Merged PRs (30d)
99

Description

#### Environment details

- which product (packages/*): analytics admin api nodejs
- OS: wsl2
- Node.js version: latest
- npm version: latest
- google-cloud-node version: latest

#### Steps to reproduce

requesting thought the nodejs client

` listAudience = async (params: analyticsadmin_v1alpha.Params$Resource$Properties$Audiences$List) => {
return await google.analyticsadmin('v1alpha').accounts.list(params);
};
`

where

` const params = {
parent: 'properties/1234',
};`

I receive the response

`"data": {
"error": {
"code": 400,
"message": "Invalid JSON payload received. Unknown name \"parent\": Cannot bind query parameter. Field 'parent' could not be found in request message.",
"errors": [
{
"message": "Invalid JSON payload received. Unknown name \"parent\": Cannot bind query parameter. Field 'parent' could not be found in request message.",
"reason": "invalid"
}
],
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"description": "Invalid JSON payload received. Unknown name \"parent\": Cannot bind query parameter. Field 'parent' could not be found in request message."
}
]
}
]
}
},`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.