Troubleshooting
Start with the failing layer. Most issues are install, gateway, auth, source, query, or provider-scope problems.
CLI Is Not Found
Section titled “CLI Is Not Found”onequery --helpIf the command is missing, reinstall with your chosen package manager:
npm install -g @onequery/cliGateway Is Not Running
Section titled “Gateway Is Not Running”onequery gateway statusonequery gateway logsonequery gateway startIf a remote team server should be used instead, confirm the configured server:
onequery config set api.server_url https://onequery.example.comAuth Fails
Section titled “Auth Fails”Check that you are using the expected profile and server:
onequery --profile work auth whoamiONEQUERY_PROFILE=work onequery auth whoamiRe-authenticate if the token expired or was revoked.
Source Is Missing
Section titled “Source Is Missing”onequery source listIf the source is missing, connect it or switch to the organization/profile where it exists.
Query Is Blocked
Section titled “Query Is Blocked”Check whether the SQL is read-only, single-statement, and small enough for the source limits. Add explicit columns, a time window, and a limit.
Provider Request Fails
Section titled “Provider Request Fails”Provider API failures usually come from:
- Token scope mismatch.
- Wrong organization, project, site, repository, or account ID.
- Expired provider token.
- Pagination or payload size.
- Provider endpoint path mismatch.
Run a smaller Source API request and expand only after the source and permission are confirmed.