Skip to content
Private Alpha

Troubleshooting guide

Common error codes, symptoms, and resolution steps for Gateway, approvals, credentials, and model routing issues.

On this page
  1. Gateway errors
  2. Authentication and API key errors
  3. Provider credential errors
  4. Approval errors
  5. Model routing errors
  6. See also

This page indexes known error codes, symptoms, and resolution steps observed across the Gateway, approval framework, credential management, and model routing surfaces.

Gateway errors

CodeMeaningResolution
INVALID_REQUESTThe request body failed basic validation (e.g. missing messages array).Check the request format against the chat completions API.
MESSAGES_REQUIREDThe chat completions endpoint requires at least one message in the messages array.Add a messages array with at least one entry.
SETUP_REQUIREDAn AI provider is not configured for the requested route.Configure a provider API key via the Gateway dashboard or BYOK.
PROVIDER_UNAVAILABLEThe upstream AI provider could not complete the request.The request was forwarded to fallback providers if configured. If no fallback succeeded, check provider health in the Gateway dashboard.
PROVIDER_NOT_IMPLEMENTEDThe selected provider is known but not yet wired for live execution.Choose a different provider or route.
INTERNAL_ERRORUnexpected server error.Retry the request. If it persists, check Gateway server logs.

Authentication and API key errors

CodeMeaningResolution
missing_api_keyThe request did not include an API key in the Authorization header.Add Authorization: Bearer <your-key> to the request headers.
invalid_api_keyThe provided API key is not recognised.Verify the key was created and has not been revoked. Keys are hashed with SHA-256 + salt and cannot be recovered.
revoked_api_keyThe API key has been revoked and is no longer valid.Create a new API key in the Gateway dashboard.
expired_api_keyThe API key has passed its expiration date.Create a new API key or update the expiration.
insufficient_scopeThe key lacks the required scope for the requested operation.Ensure the key has the gateway:invoke scope for chat completions.

Provider credential errors

SymptomLikely causeCheck
Gateway returns SETUP_REQUIRED for a providerProvider API key is not configured (no environment variable and no BYOK credential)Set the provider's environment variable or store a BYOK credential.
test_failed credential statusThe stored credential failed a connectivity testVerify the key is valid in the provider's dashboard.
Desktop shows "Credential not available"Electron safeStorage is unavailableUse environment variables as fallback.

Approval errors

SymptomLikely causeCheck
Approval request shows stale statusThe payload hash no longer matches the current stateRe-submit the approval request with updated content.
Approval request shows blocked statusPolicy prohibits the action at the configured risk levelReview the approval policy configuration.
Approval request expired before a decisionThe expiresAt timeout was reachedCreate a new request with a longer expiry window.

Model routing errors

SymptomLikely causeCheck
Requested model not availableThe model is not in the Gateway model catalog or is restricted by provider allowlistCheck the model catalog.
Provider skipped in routingCircuit breaker open, provider not configured, or blocked by allowlistCheck provider health in the Gateway dashboard.
Request fails with no fallbackAll eligible providers are unavailableVerify at least one provider is configured and has a closed circuit breaker.

See also

Last verified 2026-07-10 · Owner platform-team