Skip to main content

Invalid Request

Code

  • code: invalid_request
  • status: 400
  • url: https://developers.glean.com/errors/invalid-request

What It Means

The request could not be processed because the payload, parameters, or request structure is invalid.

Common Causes

  • The JSON body is malformed or does not match the endpoint schema.
  • Query parameters or request headers use unsupported values.
  • The request combines fields that cannot be used together.

How To Resolve

Client Actions

  • Compare the request against the endpoint documentation and schema.
  • Check the response detail field for request-specific guidance.
  • Remove unsupported fields or combinations before retrying.

Retry Guidance

Retrying the same request will not help. Retry only after changing the request.

Example Response

{
"type": "https://developers.glean.com/errors/invalid-request",
"title": "Invalid Request",
"status": 400,
"detail": "Human-readable explanation specific to this occurrence.",
"code": "invalid_request",
"documentation_url": "https://developers.glean.com/errors/invalid-request",
"request_id": "req_7f8a9b0c1d2e"
}