background
← Back to all provider errors

Google

lockedDomainCreationFailure — Locked Domain OAuth Token in Query

An OAuth token was provided in the query string, which is forbidden for formats other than JSON or XML.

Riposte solution

Google disallows using an OAuth token in the URL for certain request formats. Make sure you (or Riposte) send OAuth tokens only in the Authorization header, not as a query param. This error shouldn't occur when using Riposte normally, since it manages tokens correctly, but double-check that you're not manually adding credentials to the query string.

Quick facts

Provider
Google
Endpoint / surface
Google API (global)
Status code
400

Why it happens

OAuth token included in URL query (not allowed for this response format)

How to fix it

Send the OAuth token in the Authorization header instead of in the query string