Skip to content

Troubleshooting

Common errors when authenticating or calling the Inventory API, and how to resolve them.

Error invalid_client or invalid_grant on the token request

Section titled “Error invalid_client or invalid_grant on the token request”

Your client_id or client_secret is wrong. Double-check both, and make sure the @ in the client ID is URL-encoded as %40 in the form body.

The X-Verve-Namespace: project:<PROJECT_ID> header is missing. Add it to every Inventory API request.

Your access token is missing, expired, or malformed. Confirm the Authorization: Bearer <access_token> header is set, and request a fresh token if the current one has expired — see Authentication.

Authentication succeeded but the request isn’t authorized. Either your service account lacks permission on the project, or the X-Verve-Namespace header is missing or incorrect. Verify it is set to project:<PROJECT_ID>.