Skip to content
TroubleshootingTroubleshooting

Troubleshooting

Symptom → cause → fix.

Model protocol
SymptomLikely causeFix
An error with a [code · req_…] tail in the textthe code in the tail and error.action name the cause and the next stepDo what action says; if that does not help, send the tail to support. Full list: Error codes.
Claude Code is "silent" or unreliableoutdated CLI, unapproved API key, or incorrect variablesUpdate Claude Code, set ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN, run regular claude, and approve the key.
Asks to log in to Anthropicthe CLI cannot see the API key or lacks one-time approvalCheck both variables, restart regular claude, and approve the API key. Use --bare only for minimal diagnostics.
export doesn't work in PowerShellthat's a Linux commandIn PowerShell: $env:ANTHROPIC_AUTH_TOKEN = "gd-…"
401 on every requestkey invalid/revokedCopy the key from the bot again.
402 / no fundsthe key's credit is exhaustedCheck your Guard account and top up the active key; issue a new one only if it was revoked.
404 model not foundtypo in the model idSee Models.
429 with *_spend_limitthe key reached its hourly/daily spend capChange the limit under Manage API key or wait for the rolling window to free up.

Diagnostic request

bash
curl -i https://api.guardrelay.ai/v1/models \
  -H "Authorization: Bearer $GUARD_API_KEY"

If it returns 200 and a list of models — the key and network are fine, look for the problem in the body of the specific request. Still stuck — message support with the [code · req_…] tail from the error text @Guard_help.

GLM diagnostics

Start with the model catalog for your key. It separates authentication problems from generation-body errors.

bash
curl -i https://api.guardrelay.ai/glm/v1/models \
  -H "Authorization: Bearer $GUARD_API_KEY"
  1. If the catalog does not return 200, fix the key or check the status page.
  2. If the catalog works, retry a minimal JSON request with glm-5.3 and a 4096 budget.
  3. For media, switch to glm-5.3-flash and use only a confirmed payload shape.
  4. For Responses, check store and the origin of previous_response_id.
  5. For 429, honor Retry-After; the GLM queue waits up to 10 seconds for a slot.

For support, keep the UTC time, endpoint, model, HTTP status, error.code, and an ID if it appears in the response or your Guard account.

Sections

On this page