Overview

Troubleshooting & FAQ

Common issues across the QVeris CLI, SDKs, and MCP server. See also the per-surface docs in docs/en-US and the runnable examples.

Authentication#

QVERIS_API_KEY is not set / 401 / "API key is required". Create a key at qveris.ai/account?page=api-keys, then export it:

export QVERIS_API_KEY="sk-..."

Wrong API endpoint. Set QVERIS_BASE_URL to the complete API root supplied by the active deployment. The CLI also accepts --base-url for a one-command override.

Billing#

402 / "insufficient credits". Discovery and inspection are free; call spends credits. The free tier includes 1,000 credits. The error message includes the top-up link. Check your balance with qveris credits or qveris.credits().

The pre-call estimate and the final charge differ. The call response carries a pre-settlement billing estimate. The final, settled charge is in qveris usage --mode search --execution-id <id> (CLI) or usage() / ledger() (SDK).

Rate limits#

429 / "rate limited". The CLI, SDKs, and MCP server retry automatically: they honor Retry-After, otherwise back off exponentially with jitter, bounded by maxRetries (constructor option in the SDKs) / QVERIS_MAX_RETRIES (CLI, default 3; 0 disables). Backoff is pressure, not failure — the JS SDK exposes rateLimitRetryCount. If you still hit limits, lower concurrency.

Discovery & calls#

discover returns no results. Describe the capability you need ("public company stock quote API"), not the parameters you plan to pass. Broaden the query and raise --limit / limit.

call returns success: false or invalid-parameter errors. inspect the tool first and pass exactly the parameters its schema declares; examples.sample_parameters shows a working shape. error_message explains the failure.

Large responses look truncated. Responses are capped by max_response_size (--max-size in the CLI). The default is 20480 bytes for --json/non-interactive use, but only 4096 bytes in an interactive terminal — so a truncated result in a TTY is hitting the 4 KB cap. Raise it (-1 for unlimited) if you need the full payload.

MCP server#

The client shows no QVeris tools. Tool listing works without a key; tool calls need QVERIS_API_KEY in the server's env. Verify your config with qveris mcp validate --target <client>, and regenerate it with qveris mcp configure --target <client> --write.

Environment#

Node version errors. The packages require Node >=18.2.0. Check with node -v.