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.
Error no namespace provided
Section titled “Error no namespace provided”The X-Verve-Namespace: project:<PROJECT_ID> header is missing. Add it to every Inventory API request.
401 Unauthorized
Section titled “401 Unauthorized”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.
403 Permission Denied
Section titled “403 Permission Denied”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>.