Skip to content

Errors and Blocked Requests

Use blocked requests as feedback. Do not bypass OneQuery by giving an agent raw credentials.

FailureLikely causeNext action
CLI command not foundCLI not installed or not on PATH.Reinstall the CLI and run onequery --help.
Gateway unavailableLocal gateway is stopped or remote server is misconfigured.Run onequery gateway status or set the server URL.
UnauthorizedCLI session expired or wrong profile/server.Run onequery auth login for the intended profile.
Source not foundSource identifier is wrong or belongs to another org.Run onequery source list.
Query blockedSQL is not read-only, has multiple statements, or is too broad.Narrow the SQL, add limits, and retry.
Provider permission deniedProvider token lacks scope or points to the wrong account.Fix provider permissions in the source credential.
Pagination too largeSource API request returns too much data.Add --max-pages, provider filters, or --jq.
  1. Identify the layer: CLI, gateway, auth, source, query, or provider.
  2. Retry with a smaller request.
  3. Keep the source identifier the same unless it is wrong.
  4. Escalate to an operator if broader access appears necessary.
  5. Record the blocked request in the investigation notes when it affects the result.
  • Do not paste provider tokens into the agent environment.
  • Do not switch to a broad production credential to save time.
  • Do not remove query limits just because the first request returned too little data.
  • Do not ignore repeated blocked requests from the same workflow.