Skip to content

Error codes

When AdsCraft can’t finish something it shows a short numeric error code next to the message, for example:

Error while getting resources: Not found (Error code: 4040) · request id 2f05890d-…
  • Error code — the number below; it tells you what kind of problem it is and what to do.
  • request id — a one-off id for that exact request. Keep it when you report a problem: it matches the server log line, so support can find the request without guessing.

Search this page for the code (or press Ctrl+K / ⌘K and type it), or open https://docs.adscraft.app/errors/#<code> (e.g. …/errors/#4040).

The token is missing, expired or revoked.

What to do: open the Accounts tab in the extension and sign in again. On the web dashboard, sign out and sign in.

Your role doesn’t allow this action (for example a viewer trying to change a Creative).

What to do: ask an owner of the workspace to change your role, or use an account that has it.

The item you asked for doesn’t exist or it belongs to another account — AdsCraft deliberately answers the same way for both, so one account can’t discover another’s ids.

The most common case is the App saved for your project: the extension remembers the last App you picked, and that App was deleted (or you signed in with a different account).

What to do: the extension clears the stale App automatically — just pick an App again in the Build & upload tab. If the list is empty, sign out and sign in again from the Accounts tab.

You (or a teammate in another tab) already created an App or Concept with that name.

What to do: pick a different name.

A legacy code kept so older clients don’t break. Downloading a draft channel is allowed for testing.

You followed an invite link, but this account’s own workspace is not empty: it has at least one App, or other people have already joined it.

One account belongs to one workspace, so it can’t join another one — nothing is deleted or moved.

What to do — pick one:

  1. Ask the person who invited you to invite a different account (for example the work account, not the personal one).
  2. To join with this account, remove the Apps from your own workspace and any other members first, then open the invite link again. The invite page will then ask you to confirm deleting your now-empty workspace (4093).
  3. If your existing work has to end up in the other workspace, tell us through the contact form — there is no self-serve way to move it.

To avoid this in a studio, accept your teammate’s invite before you create an App — see Using the Cocos extension → Sign in.

You are accepting an invite, and your own workspace is still empty (no App, no other members). Joining removes that empty workspace together with any API tokens connected to it, so the server asks you to confirm first. Nothing has been deleted yet.

What to do: on the invite page, click Delete my workspace and join … to go ahead. If the extension or a CI job uses a token from the empty workspace, sign in again afterwards (extension: Accounts tab) or create a new token in the workspace you joined.

One request is over a size limit. A playable always ships as one file, so the fix is to make the thing smaller, never to split it. The message names the limit; the usual cases are:

  • Build payload over the cap (5 MiB − 64 KiB) — the extension checks this on your machine and shows 4130 before anything is uploaded (run Size analysis to see what is heaviest); pa push gets it from the server. Enable texture compression in the Cocos build settings, lower the audio bitrate or switch to mono, and use the extension’s Size tab to see what takes up the space.
  • A replaced image or audio file is too large (over the field’s limit, or 2 MB) — compress it before uploading it on the dashboard.
  • More than 200 packages in one download — select fewer Creatives or networks, and download in several batches.

Something in the config or payload failed validation (a bad field, a malformed image/audio file, …). The message names the field.

What to do: fix the field the message points at, then build again.

The @pa/sdk copied into your project is older than this platform version supports.

What to do: update the SDK (the extension rewrites assets/pa-sdk/ on activation), then build again.

4222 — Payload does not match the Concept kind

Section titled “4222 — Payload does not match the Concept kind”

The Concept you picked holds a different kind of playable than the one you are uploading — a Cocos build can only go into a Cocos Concept.

What to do: pick another Concept, or choose « New Concept » in the extension (with pa push, pass a new --concept name together with --app) and upload again.

Your Cocos Creator extension is below the platform’s minimum version, so the server refuses to build or upload until you update.

What to do: the panel shows an Update button — use it, then re-import the extension. See Using the Cocos extension.

Too many requests in a short window (usually a script or a retry loop).

What to do: wait for the period shown in the message, then retry. If a build loop triggers it, slow the loop down.

If the message says This workspace uses … of … or … replaced assets, which is the limit, it is the storage budget, not a rate limit — waiting won’t help. Follow 4291 instead.

The workspace is out of storage. Every Build (its HTML, schema and metadata), every image or audio replaced on the dashboard and the config each Creative stores share one budget: 50 MB on the Free plan, 1 GB on Pro. A workspace can also hold at most 2,000 replaced assets. The message says how much is used and how much the upload would add.

What to do: free space, then upload again:

  • Delete a Concept you no longer need — it frees that Concept’s Build. Uploading again to the same Concept replaces its Build in place, so there are no “old Builds” to clean up.
  • Delete a Creative, or reset a replaced field to its default — it frees the assets and config it holds.

The extension’s Accounts tab shows how much of the budget is used. If the workspace genuinely needs more, ask the AdsCraft team about the Pro plan through the contact form; if the message says the subscription has lapsed, renew it to get the 1 GB limit back.

An unexpected server-side failure.

What to do: retry once. If it keeps happening, report it with the request id — that id is in the server log, so support can find the exact request.

The deployment is missing a required setting (for example the extension download base URL). This is an operator problem, not something you can fix from the extension.

What to do: report it with the request id; the team running the server has to set the missing setting.