Xuda logo

xuda.io

Technical docs for Xuda Slim and Xuda CLI

Product overview
Troubleshooting

CPI error codes by module

Exhaustive, auto-generated from the cpi source: every negative code each module returns, with the distinct messages seen at the return sites. Legend: <exception message> carries the caught error's message, <dynamic> is a computed value, and … marks an interpolated value. Covering 32 modules and 201 code groups (68 distinct codes).

Troubleshooting pages

CPI server error codes, the HTTP mapping, and how to resolve each one.

Docs page

Exhaustive, auto-generated from the cpi source: every negative code each module returns, with the distinct messages seen at the return sites. Legend: <exception message> carries the caught error's message, <dynamic> is a computed value, and marks an interpolated value. Covering 32 modules and 201 code groups (68 distinct codes).

Remember the convention from the overview: the same number means different things in different methods, so the message is authoritative, not the number.

account_module

  • -1 - account not found; contact already exist; contact not found; cost.mjs not importable from account_module: …; invalid ssh key; missing uid; no account; target account not found
  • -7 - error - no plan defined
  • -8 - Number of projects (…) exceeds to the … plan limits
  • -9 - Number of team shares (…) exceeds to the … plan limits
  • -10 - Missing id
  • -13 - <exception message>
  • -21 - <exception message>
  • -22 - <exception message>
  • -24 - <exception message>
  • -34 - <exception message>
  • -44 - <exception message>
  • -45 - <exception message>
  • -55 - <exception message>
  • -56 - <exception message>
  • -57 - <exception message>
  • -78 - <exception message>
  • -400 - User exist; <exception message>
  • -1310 - <exception message>

ai_module

  • -1 - aborted; account_not_found; agent_id required; app_id is required; cannot_friend_self; could not resolve draft workspace; invalid remote ip; invalid_email
  • -2 - prompt is mandatory field; <exception message>
  • -3 - <dynamic>; <exception message>
  • -4 - <exception message>
  • -5 - <exception message>
  • -6 - <exception message>
  • -7 - <exception message>
  • -8 - <exception message>
  • -9 - <exception message>
  • -10 - <exception message>
  • -11 - <exception message>
  • -12 - <exception message>
  • -13 - <exception message>
  • -14 - <exception message>
  • -15 - <exception message>
  • -16 - <dynamic>
  • -17 - <dynamic>
  • -24 - <exception message>
  • -25 - <exception message>
  • -33 - <exception message>
  • -44 - invalid conversation_type ; <exception message>
  • -56 - <exception message>
  • -111 - <exception message>
  • -400 - <exception message>
  • -401 - invalid_session; invalid_token; <exception message>
  • -404 - account_not_found; invalid_profile; target_not_found; target_unavailable; widget_disabled
  • -409 - not_ready; pending_approval

api_module

  • -1 - <exception message>
  • -2 - error - stat must be 1=draft,2=suspended,3=active or 4=delete
  • -3 - error - stat must be 1=draft, 2=suspended, 3=active or 4=delete
  • -400 - error - api not found; <exception message>
  • -401 - error - api_sk not authorized; error - domain not authorized; error - domain not found; <exception message>

app_module

  • -1 - app not found; app_id required; app_name empty; app_name required; data object missing; domains_module not available; drive_module not available; error - app not found
  • -2 - app_type error; error - property update unauthorized
  • -3 - app_replicate error; save app status error; <dynamic>
  • -4 - error getting app_replicate
  • -5 - app_replicate inactive
  • -6 - error creating instance to a private project
  • -7 - build not exist, must build first
  • -8 - Cannot turn off the app. There are ${
  • -10 - app is inactive
  • -11 - app not ready
  • -12 - app in progress
  • -19 - release not found
  • -31 - <exception message>
  • -88 - <exception message>
  • -400 - action cancelled, found existence of related items. all related items must be deleted first; error - app not found; error - app parent not found; <exception message>
  • -870 - error - …

backup_module

  • -1 - error - restore_type type not supported; invalid copies: number_of_copies must be an integer between 1 and 30; invalid schedule: expected boolean for each weekday with at least one day enabled; wrong validation code
  • -11 - cannot set auto backup for inactive account
  • -12 - auto backup is not available for project apps on the free plan
  • -88 - <exception message>
  • -400 - error - something went wrong, restore cancelled.; <exception message>

build_module

  • -1 - Identified … errors during the project program construction; resolve these issues and then proceed with the rebuilding process.; <exception message>
  • -400 - error - app not found; missing build info; <exception message>

controller_module

  • -400 - <exception message>
  • -500 - <exception message>

data_module

  • -1 - error - build_id missing; error - table_id missing; <exception message>
  • -3 - <exception message>
  • -44 - <dynamic>; <exception message>
  • -101 - <exception message>
  • -106 - error, table missing form conversion
  • -400 - error - app not found; <exception message>

db_module

  • -1 - doc_id is required; error - app_datacenter not found; failed to list apps; invalid from/to: … -> …; missing couch config for … or …; project_db_ha not configured; <dynamic>; <exception message>
  • -112 - <exception message>
  • -400 - <exception message>
  • -451 - <exception message>
  • -460 - <exception message>
  • -462 - app_id required; <exception message>
  • -870 - <exception message>

deploy_module

  • -1 - app replicate not found; cannot assign ssh_key to … app_type; error - too many retries; <exception message>; <no data>
  • -2 - access_launch_type is mandatory field; auto build failed; create_datacenter or app_datacenter must be defined; deploy_type error; deploy_type in beta; preset_id is mandatory field; prog_id is mandatory field; release_doc_id is mandatory field
  • -5 - app_name is empty; app_region is empty; app_server_type is empty
  • -33 - not found; vps region not found; <exception message>
  • -55 - <exception message>
  • -65 - <exception message>
  • -88 - <exception message>
  • -99 - firewall not found; <exception message>
  • -112 - <exception message>
  • -400 - app installed; error - … must be active; error - app not found; error - app_datacenter_id not found; error - app_replicate not found; error - app_server_type not exist; error - datacenter not found; invalid app_type … to create startup data

domains_module

  • -1 - a transfer for this domain is already pending — cancel it first; account not found; ack_token user mismatch; admin only; Another user is setting up this domain right now. Try again in a few days if they don\; app not found; authorization code required; cannot delete the live version — restore another version first
  • -400 - cloudflare export failed; <dynamic>; <exception message>
  • -402 - recipient stripe customer not found; <dynamic>

drive_module

  • -1 - bad path: …; error - file path unauthorized; error - server_files must be defined as array; file bytes unavailable; file not found: …; no files; no files found under …; no readable files under …
  • -4 - file data missing
  • -200 - <exception message>
  • -400 - error - files_arr must be Array; <exception message>
  • -762 - file already exist
  • -764 - … exist; invalid method; no files to check

email_module

  • -1 - error sending email
  • -2 - error - invalid range date_from and date_to
  • -10 - <exception message>
  • -11 - <exception message>
  • -22 - <exception message>
  • -23 - <exception message>
  • -44 - <exception message>
  • -50 - <exception message>
  • -51 - <exception message>
  • -52 - hosted email is not enabled for this account
  • -54 - hosted email already exists for this account
  • -55 - … is already taken
  • -57 - hosted email is not enabled for this account
  • -59 - hosted email is not enabled for this account
  • -64 - hosted email is not active for this account
  • -400 - <exception message>

fs_module

  • -1 - <dynamic>; <exception message>
  • -400 - <exception message>

http_module

  • -1 - error getting job id; Error: '…' is a mandatory field; Error: '…' is a wrong type; Error: '…' not supported for … plan; method "…" not exist; The … region (where this project runs) is currently unreachable. Your … was not started. Please try again once the region is back online.; This project runs in the … region, which can't be reached right now. Please try again shortly.; <exception message>
  • -88 - <exception message>

jobs_module

  • -1 - job … not found; missing job_id/home_host; <exception message>
  • -45 - <exception message>
  • -77 - <exception message>
  • -999 - Timeout

logs_module

  • -2 - error - app_id is mandatory field for app_log method; error - invalid range log_date_from and log_date_to; error - view not defined
  • -400 - <exception message>

marketplace_module

  • -1 - error - app_category missing; error - app_tags missing; error - data object does not exist; Error - Must contain at least 1 tag; <exception message>
  • -2 - error - username not found
  • -3 - error - docType not allowed; error - pricing not allowed; error - sort_type not allowed
  • -10 - agent is not active in marketplace; installation not supported; <exception message>
  • -11 - <exception message>
  • -12 - <exception message>
  • -400 - already followed; already liked; decision must be approve or reject; error: the project is private; error: type not allowed; id required; item_id and reason are required; <exception message>
  • -403 - invalid appeal token; marketplace pro required: approved seller account or xuda ambassador
  • -404 - item not found
  • -451 - missing

mcp_module

  • -32000 - <no data>

misc_module

  • -1 - agent not found; XUDA_NPM_TOKEN not configured; <dynamic>; <exception message>
  • -400 - <exception message>

notification_module

  • -1 - … topic for … not exist in notification_categories; error: type is mandatory field; only … delivery method allow update; only system notification allow update; system notification not allow read; <exception message>
  • -2 - error - invalid range date_from and date_to
  • -111 - <exception message>
  • -400 - <exception message>

plugins_module

  • -1 - auth error: plugin not related to the account; error - … not exist; error - … not found; error - … not installed; error - app not found; error - invalid plugin_type; error - plugin_name not found; plugin … not exist
  • -2 - The … plugin requires payment; only free plugins are permitted.
  • -3 - error: … dependency not installed
  • -4 - error: … dependency not authorized
  • -5 - <dynamic>; <exception message>
  • -6 - <dynamic>; <exception message>
  • -44 - <exception message>
  • -200 - dependent package … not exist; package.json not found; too many dependencies, only 1 dependency allowed
  • -400 - error - app not found; <exception message>

ppi_module

  • -1 - error - … not found; error - app_id not found; error - method not found; error - not authorized; error - path not found; error - server method not found; error -gtp_token not found; <exception message>

router_module

  • -1 - Account locked. Try again in … minute….; account not found; Duplicate account found; Error login with ; User not found; wrong password; Wrong password. … attempt… remaining before lockout.; Wrong password. Account locked for … minutes after … failed attempts.
  • -10 - Missing email; <no data>
  • -20 - Email malformed
  • -30 - <dynamic>
  • -50 - Token not found; User already exist
  • -60 - store account problem; <array>; <exception message>

rpi_module

  • -1 - app_id missing; error - filename not found; error - server_files missing
  • -2 - error - app_id not found; error - base64 not found; error - plugin_name not found
  • -400 - error - app not found; <exception message>
  • -800 - <dynamic>
  • -999 - error parsing - …

session_module

  • -1 - denied; device_code required; expired; gtp session not found; invalid or expired code; session missing; uid required; unknown code
  • -4 - error - app not related to account; <exception message>
  • -31 - <exception message>
  • -88 - <exception message>
  • -400 - error - gtp_token not found; <exception message>
  • -401 - fix: ; gtp_token doc not found; gtp_token expired; <exception message>
  • -403 - user not authorized to access the app … api's; user not exist in the app authorized list

stripe_module

  • -1 - account has no stripe_customer_id; account is missing one or more legacy stripe_*_subscription_id fields; account not found; account not found by customer_id; card_id required; customer not found; destination city + country required; invalid order total
  • -3 - _subscription_id missing; account has no consolidated subscription (create_stripe_customer must run first); no consolidated subscription
  • -400 - could not load store catalog: …; customer_id, start_date_unix and items are required; schedule_id required; stripe_customer_id missing; subscription_id required; uid + name required; <dynamic>; <exception message>
  • -402 - charge not captured; custom_domain_price_id not configured; plan … has no real Stripe price_id (still … — create the Stripe product and update config); stripe customer not found for user; <dynamic>; <exception message>; <no data>

support_module

  • -1 - invalid_email; invalid_name; sweep query failed: …; <dynamic>; <exception message>
  • -2 - error - invalid range log_date_from and log_date_to; <exception message>
  • -400 - error - app not found; status values allowed 2=open,3=close,4=declined; <exception message>

team_module

  • -1 - <exception message>
  • -46 - <exception message>
  • -55 - <exception message>
  • -56 - <exception message>
  • -57 - <exception message>
  • -400 - error - team request not found; user is already in … team; <exception message>

transfer_module

  • -1 - error - app not found; error - not authorized; error - recipient is already in team for this instance. to resolve, remove first before transfer; <exception message>
  • -10 - error - transfer not exist
  • -11 - error - account to transfer inactive; error - too late, transfer completed; error - transfer completed
  • -12 - error - account transfer from and account transfer to cannot be the same; error - transfer already cancelled; error - transfer cancelled
  • -21 - error - not an instance
  • -22 - error - pending transfer request exist

website_module

  • -11 - <exception message>

ws_dashboard_module

  • -1 - agent not active in marketplace; agent not found in marketplace; agent record missing; agent_id required; invalid token; missing account_id; missing app_id; missing gtp_token
  • -111 - <exception message>
  • -400 - error - gtp_token not found