Skip to main content
Each problem below has the symptom, the cause, and the fix.

Before you start

Run these commands to see your CLI version, account, and profiles:
Add --json to a failing command to see the full error. With --json, errors show a code, a message, and sometimes a hint and details. Add --debug to print request tracing to stderr. Read the message first. After a 401, 403, or 429 with a code other than a sign-in, scope, or wait code, the CLI shows no hint. Most of these messages say why SiteGPT refused the request, for example your plan or your role. CLI 0.7.0 and earlier can show a hint that does not fit, such as sitegpt login after a plan refusal. Upgrade the CLI to 0.8.0 or later with npm install -g @sitegpt/cli@latest. See Hints after an API error.

PROFILE_NOT_CONFIGURED

Symptom: A command fails with PROFILE_NOT_CONFIGURED. Cause: The CLI has no token. No saved profile exists with that name, and SITEGPT_API_TOKEN is not set. Fix:
  • If you have an account, run sitegpt login. See Install the CLI and log in.
  • If you use --profile or SITEGPT_PROFILE, check the name with sitegpt profiles list.
  • If you do not have an account, this error is expected. Run sitegpt onboarding start <website-url>. It needs no login. See Agent-first onboarding.

PLAN_UPGRADE_REQUIRED

Symptom: Commands fail with 403 and PLAN_UPGRADE_REQUIRED. Or, during sitegpt login, the browser page says “API tokens, the CLI and MCP need the Growth plan or above. Upgrade your plan, or ask the owner of a chatbot you work on to upgrade theirs.” It shows an Upgrade your plan button and no Approve or Deny button. sitegpt tokens rotate fails the same way when no plan covers a chatbot of the token anymore. Cause: The CLI needs the Growth plan or above, on your own account or on the account that owns the chatbot. See Which plan applies. The message tells you which case you have: Fix: Upgrade your own plan, or ask the chatbot’s owner to upgrade theirs. See Manage your plan and billing. The login request stays pending. If the code has not expired, you can approve it after you upgrade, after a chatbot owner upgrades, or after you accept an invite to a chatbot whose owner is on the Growth plan or above. Otherwise, run sitegpt login again.

HIPAA_CONVERSATION_API_DISABLED

Symptom: For a chatbot in a HIPAA workspace, sitegpt conversations, sitegpt messages, and sitegpt leads commands fail with 403 and HIPAA_CONVERSATION_API_DISABLED. The message is “Conversations, messages and leads are not available through the API for chatbots in HIPAA workspaces.” If SiteGPT cannot check the HIPAA status, they fail with 503 and HIPAA_CHECK_UNAVAILABLE. Cause: For chatbots in HIPAA workspaces, API v2 does not give out or change conversations, messages, or leads, for any caller and any CLI version. See HIPAA workspaces in the API. Fix: Open conversations and leads in the SiteGPT dashboard. An update of the CLI or another token does not change the result. Other commands work, for example sitegpt settings, sitegpt analytics, and sitegpt tags. For 503 HIPAA_CHECK_UNAVAILABLE, try again in a moment.

HIPAA_KNOWLEDGE_API_DISABLED

Symptom: For a chatbot in a HIPAA workspace, sitegpt knowledge files add, sitegpt knowledge text add, sitegpt knowledge documents get, sitegpt knowledge documents edit, sitegpt knowledge sync-jobs list, and sitegpt knowledge sync-jobs get fail with 403 and HIPAA_KNOWLEDGE_API_DISABLED. The message is “Files, text and document content are not available through the API for chatbots in HIPAA workspaces.” If SiteGPT cannot check the HIPAA status, they fail with 503 and HIPAA_CHECK_UNAVAILABLE. Cause: For chatbots in HIPAA workspaces, API v2 does not take files or text, does not read or change one document, and does not read sync jobs, for any caller. See HIPAA workspaces in the API. Fix: Upload files and add text in the SiteGPT dashboard. See Upload files. Other knowledge commands work, for example sitegpt knowledge links add, sitegpt knowledge documents list, and sitegpt knowledge wait. For 503 HIPAA_CHECK_UNAVAILABLE, try again in a moment.

HIPAA_AI_ASSISTANTS_DISABLED

Symptom: For a chatbot in a HIPAA workspace, conversation or lead commands fail with 403 and HIPAA_AI_ASSISTANTS_DISABLED. The message tells you to update the CLI to version 0.6.0 or later. Cause: SiteGPT blocks conversation and lead content for AI assistants in HIPAA workspaces. A CLI older than 0.6.0 does not identify itself, so SiteGPT cannot tell a terminal command from the local MCP server. When you signed in with sitegpt login, SiteGPT treats these requests as the local MCP server. Fix: Open conversations and leads in the SiteGPT dashboard. An upgrade to CLI 0.6.0 or later does not make these commands work: after the upgrade, they fail with HIPAA_CONVERSATION_API_DISABLED instead. The local MCP server (sitegpt mcp) stays blocked too. See MCP server.

RATE_LIMITED

Symptom: A command fails with 429 and RATE_LIMITED. The hint says, for example, “Rate limited. Wait 30 seconds and retry.” Cause: Too many requests of one kind came in a short time, for example sitegpt onboarding start. See Rate limits and quotas. Fix: Wait for the time in the hint, then run the command one time. When SiteGPT sends no wait, the hint says “Rate limited. Wait a minute and retry.” Do not run the command in a loop. CLI 0.7.0 and earlier say “wait a few seconds”, which is too short. Other 429 codes have their own reason in the message, and waiting does not always help. For example, MESSAGE_LIMIT_REACHED means that the conversation reached Limit Messages Per Conversation. See Messages.

DEVICE_LOGIN_EXPIRED

Symptom: sitegpt login stops with DEVICE_LOGIN_EXPIRED. Cause: You did not approve the request in the browser before the code expired. Fix: Run sitegpt login again. Open the new URL and select Approve right away.

OPTIONS_CONFLICT during login

Symptom: sitegpt login fails with OPTIONS_CONFLICT. Cause: You used options that do not work together. --full-access and --scope conflict. --token conflicts with every device login option. Fix: Remove one of the options. See Option rules.

The CLI calls the wrong SiteGPT URL

Symptom: Commands reach a local or test server, or fail with NON_JSON_RESPONSE. Cause: SITEGPT_API_BASE is set, or the active profile saved another API base URL. Fix:
  1. Check the API base of the active profile:
  2. Check the environment:
  3. Remove variables that point to the wrong place:
  4. If the profile has the wrong URL, log in again with the production URL:
  5. Run sitegpt whoami again.

NON_JSON_RESPONSE

Symptom: A command fails with NON_JSON_RESPONSE. Older CLI versions show Unexpected token '<' ... is not valid JSON instead. Cause: The CLI expected JSON from the API but got something else, often an HTML page. Common causes:
  • SITEGPT_API_BASE or the profile points to the wrong host.
  • The CLI version is old.
Fix: Follow The CLI calls the wrong SiteGPT URL. Then upgrade the CLI:

TOKEN_SCOPE_NOT_ALLOWED or TOKEN_SCOPE_NOT_VALID

Symptom: A command fails with one of these codes. Cause:
  • TOKEN_SCOPE_NOT_ALLOWED: the token does not have a scope that the command needs. With --json, details.requiredScopes lists the scopes that the command needs.
  • TOKEN_SCOPE_NOT_VALID: a --scope value is not a real scope name.
Fix:
  1. Check the scope names on Authentication.
  2. Log in again with the scopes the command needs, for example:
  3. If the token is limited to some chatbots, check that the chatbot is in the list:
A token cannot do more than your dashboard role allows. If your role cannot access a chatbot or action, no token you create can.

UNKNOWN_COMMAND

Symptom: The CLI says UNKNOWN_COMMAND, sometimes with a “Did you mean” suggestion. Cause: The command name is wrong, or it is a subcommand of another group. Fix: Use help at the level you are on:
For example, the correct names are sitegpt knowledge documents list, sitegpt knowledge custom-responses list, and sitegpt knowledge sources list.

The CLI still uses an old token

Symptom: You created a new token, but commands still act as the old one. Cause: Creating a token does not change your local profile. Or SITEGPT_API_TOKEN is set, and the CLI uses it instead of any saved profile. Fix:
  1. Run unset SITEGPT_API_TOKEN if you do not need it.
  2. Save the new token:
    Or save it as its own profile with --profile knowledge-agent.
  3. Run sitegpt whoami to confirm.

Old test profiles still show

Symptom: sitegpt profiles list shows profiles you no longer use. Cause: Profiles stay in the local config file until you delete them. See Where tokens are stored. Fix:
  1. Delete the profile:
  2. Revoke its token in SiteGPT. Deleting a profile does not revoke it.

Table output leaves out fields

Symptom: The table does not show a field you need, or shows shortened text. Cause: Table output shows full IDs, but it shortens long text such as emails, titles, and messages. It also leaves out nested data. Fix: Add --json:

Content stays in processing or fails

Symptom: New documents do not finish, or some show as failed. Cause: SiteGPT is still processing the content, or processing failed for some documents. If a document stays in processing for 2 days, SiteGPT tries it again by itself, or marks it as failed so that you can resync it. Fix:
  1. Check the status:
  2. Resync the failed documents:

rawFileUrl or parsedTextFileUrl is empty

Symptom: These fields are null in document details. Cause: They exist only when the document has those files. Some sources and older documents do not. For a chatbot in a HIPAA workspace, the document list and the document list of a connected source (knowledge sources documents) always return them as null. When SiteGPT cannot check the HIPAA status, both lists return them as null for any chatbot. Try again later. See HIPAA workspaces in the API. Fix: None is needed. To see the document content when it exists, run:
In a HIPAA workspace, this command fails with 403 HIPAA_KNOWLEDGE_API_DISABLED.

A connected source shows no documents

Symptom: You authorized a source, but it has no documents. Cause: No files or pages were selected during authorization. For Notion, you select pages and databases inside the Notion authorization. Fix: Authorize the source again and select the files or pages. Then list and add the documents:

File upload fails

Symptom: sitegpt knowledge files add fails. Cause: The command takes local file paths only, not URLs. Fix: Download a remote file first. Then pass the local path. Or, if the file is at a public address, add the link with sitegpt knowledge links add. A link to a file trains as that file. See Links to files.
Cause: The error is FILE_TOO_LARGE with “NAME is over 25 MB, the limit for one request. PDF, DOCX, PPTX and XLSX files up to 1 GB go in parts.” Your CLI is older than 0.9.0 and sends each file in one request. Fix: Upgrade the CLI, then run the command again. CLI 0.9.0 and later send these files in parts. Cause: The error is FILE_TOO_LARGE with “NAME is over 25 MB. Split it into smaller files, or save it as PDF, DOCX, PPTX or XLSX (these can be up to 1 GB).” or “NAME is over 1 GB. Split it into smaller files.” The file is over its limit. Nothing of it was sent. Fix: Split the file into smaller files. Or save a file of another type as PDF, DOCX, PPTX, or XLSX, which can be up to 1 GB. For the limits, see Size of a file that your chatbot learns from. Cause: The error is FILE_CHANGED with “The file changed while it was uploading” and the path. A program wrote to the file while the CLI sent it in parts. The CLI gave up the upload. Fix: Send the file again when nothing writes to it. Cause: The error is FILE_UPLOAD_UNCONFIRMED with “the upload did not finish, and whether it is training could not be confirmed”. The connection failed at the last step of an upload in parts. The file can be training or not. Fix: Run sitegpt knowledge documents list --chatbot YOUR_CHATBOT_ID --source LOCAL_FILE. Send the file again only if it is not in the list. When one command sends several files and a later file fails, the earlier files are already sent and training. The hint names them: “Already sent and training:” and the file names. With --json, they are in details.sent. Send only the other files again.

Still stuck

Collect this output and send it to SiteGPT support. Remove tokens from the output first.
API errors include a request ID. Include it in your message.