Skip to contentGo to cookie choices
Skip to docs navigation

Troubleshooting

https://docs.zokogames.com/guides/troubleshooting

This page is for when something does not work. Find the symptom or the error code below; each entry gives the cause and the fix. SDK errors are plain { code, message } objects, console and API errors are { error, message } JSON bodies; both kinds of code are listed here. Always compare the code (or error); the message text is for people, is written in English and can change in any SDK release (it did in 1.6.3), so never match on it.

Start here. First step for almost everything: add ?sdk_debug=true to the page URL and watch the browser console. Every SDK call, result and event is logged. Then repeat the run in the Preview tool, whose event log shows what reaches the portal.

Find your error by its shape#

What you have Where it comes from Where to look
A code such as adsDisabled or sdkNotInitialized in e.code An SDK call SDK and environment, ad error codes, banners, cloud save, users, tokens and leaderboards, store, multiplayer rooms
A code such as no_index or missing_reference in the build report The upload validator Build validation reference, upload and review
A JSON body such as { "error": "locked_in_review" } A request in the developer console Upload and review
A delivery status such as request_failed or http_500 A webhook delivery Webhooks
A numbered reason such as "Controls unclear" A reviewer's decision Quality guidelines
No code at all The game does not load, local mode, Preview tool

The game does not load (blank frame)#

Open the browser developer tools on the game's own address (the g-<name>.zokogames.com/<build>/ frame, or your local address) and read the Console and Network tabs.

What you see Cause Fix
Many 404s for /assets/..., /main.js, /favicon.ico Root-absolute paths. The portal serves each build from its own folder, https://g-<name>.zokogames.com/<build id>/, so /x.js points at the origin root, not your build. The validator warns about this in index.html. Use relative paths (./assets/x.js). Vite: base: "./". Webpack: publicPath: "". Engines: use their relative export option.
404 on a file whose name you can see in the zip File names are case-sensitive on the game origin. Match case exactly (Hero.PNG is not hero.png).
Console: "Mixed Content: ... requested an insecure resource" The page is https, and something asks for http://. The browser blocks it. Change the URL to https://, or ship the file inside the zip. Never call plain http APIs.
Console: "blocked by CORS policy" for your own files Rare: you fetch from another origin (a CDN or an old copy of the game). Files the portal serves carry Access-Control-Allow-Origin: * and allow GET, HEAD and Range. Fetch files from the zip with relative URLs. A third-party API must send its own CORS headers; external requests also need reviewer approval, see technical requirements.
Console: "Refused to display ... in a frame" (game hosted on your own server) Your server sends X-Frame-Options or a frame-ancestors that excludes zokogames.com. Allow framing from https://zokogames.com and https://*.zokogames.com (the game page is on www.zokogames.com), or upload the zip so the portal hosts it.
Frame loads, canvas stays black, an engine error mentions wasm, .data or Content-Encoding A compressed engine file was renamed or lost its .br / .gz suffix. Files ending in .br or .gz are served with the matching Content-Encoding, and the type comes from the name without that suffix. Keep the exact file names the engine export wrote. Do not double-compress. See your engine page.
Console: SharedArrayBuffer is not defined, or a blank canvas with a wasm error Game pages are served without COOP/COEP headers, so the page is not cross-origin isolated and SharedArrayBuffer is unavailable. Threaded WebAssembly builds cannot run. Export without threads: Unity, disable multithreading and native threads; Godot, Thread Support off (single-threaded export, Godot 4.3 and later).
Popup, window.open or a download from a script is blocked The frame is sandboxed. Popups are off unless the game was approved for them; downloads and modals are allowed. Avoid popups, or request popup approval on the Technical step. See technical requirements.
Works in a tab, fails inside the frame The game uses window.top, cookies or third-party storage. Use the data module and do not depend on the parent page.

If the console shows nothing, add ?sdk_debug=true and check whether [ZokoGames SDK] lines appear. No lines at all means your script never ran (check the Network tab for the failing file).

Audio is silent, fullscreen does nothing#

Symptom Cause Fix
No sound until the player clicks Browsers allow audio only after a user gesture. Create or resume() the audio context on the first click, tap or key press (the technical page has a snippet). Do not start music at load.
No sound at all, even after a click The player muted the game with the portal's mute button or the device setting "start games muted", so SDK.game.settings.muteAudio is true. Read the setting at start and in addSettingsChangeListener, and apply it. In local mode test with ?muteAudio=true.
Silent after an ad You muted in adStarted and resumed only in adFinished. Restore sound in adFinished and in adError. See ads.
requestFullscreen() rejects It was not called from a click, tap or key handler, or the page asked for fullscreen at load. Fullscreen needs a user gesture. The frame allows it, but the portal already has a fullscreen button and the requirements ask you not to add one. Make your canvas fill the frame and react to resize.
Canvas is blurry or the wrong size after fullscreen The game kept the old pixel size. Resize on the resize event and multiply by devicePixelRatio.

Saves not persisting#

Symptom Cause Fix
Progress gone on the next visit, but it worked locally You used localStorage, IndexedDB or cookies. They live in the game's own origin, are cleared with site data, are blocked in some private windows and are not shared between devices. Use the data module. It keeps a copy in the browser for guests and syncs signed-in players to their account.
getItem returns null for something you just wrote You read it in a different session or after clear(). The map is loaded once, at init(). Read after await SDK.init(); do not cache null.
Save works but is lost after sign-in The account already had a different save, and the player chose Use my saved progress when asked which copy to keep. See cloud saves.
dataModuleDisabled or the save silently does nothing The data module is off for the game. Tick it on the Technical step.

Ads never show#

Symptom Cause Fix
You get adsDisabled in the live game Basic launch has ads switched off; so do kids' games. Expected. Ads start in full launch (launch stages).
In the Preview tool you see a countdown screen, not a real ad Preview and local mode use placeholder ads. On the live site, full-launch games show the portal's house ads; no ad network is connected yet. Test the flow (pause, resume, reward), not the creative.
Second ad request fails at once Midgame ads have a minimum gap (three minutes), and a session may have a limit. A request while an ad is on screen fails with other. Request at natural breaks. Treat every adError as "continue".
adblock Your browser has an ad blocker. The portal probes for one before every non-kids request. Disable it for the test, or force it deliberately with ?ad_response=adblock in local mode.
unfilled straight away while offline No connection means no ad. Continue. Use SDK.game.isOffline to avoid offering rewarded ads.
A midgame request "finishes" instantly with no screen The player is an ad-free member: the portal runs adStarted and adFinished without showing anything. Rewarded ads still play when the player asks. Nothing to fix. Your resume code runs as after a real ad.
Nothing at all happens requestAd waits for adFinished or adError; your code may be waiting on the wrong thing. Log inside all three callbacks with ?sdk_debug=true.

SDK and environment#

Symptom Likely cause Fix
sdkNotInitialized (message SDK.init() has not completed yet: await SDK.init() before any other SDK call) A call ran before init() resolved. await SDK.init() once at startup before touching any other member. Match the code, not the message text: since SDK 1.6.3 the wording is not part of the contract.
Console: [ZokoGames SDK] Called before SDK.init() resolved (sdkNotInitialized): await SDK.init() first. SDK 1.6.2 prints this once per page the first time a member is used before init() resolved. Same fix: await SDK.init() before any other call, including calls from a button handler that can fire during loading.
Console: [ZokoGames SDK] Disabled: <reason>. To test outside the portal, add ?useLocalSdk=true to the page address. Local mode: https://www.zokogames.com/docs/getting-started/local-testing SDK 1.6.2 prints this info line once per page when the environment ends up "disabled"; since 1.6.3 it carries the ?useLocalSdk=true hint for every reason except the portal turned it off (there the sentence is left out, because local mode is not a way out). The reason is one of not framed by the portal and not on a local host, framed by <origin>, which is not the portal, framed by <origin>, which did not answer the handshake, unsupported host protocol or the portal turned it off. Not framed and not local: serve from localhost or add ?useLocalSdk=true. Framed by your own page: add ?useLocalSdk=true to the game address or test in the Preview tool. unsupported host protocol: the page that framed the game speaks a different protocol version than your SDK copy; load the latest SDK alias instead of a bundled or pinned copy. the portal turned it off: the portal answered that the SDK is off for this page, so the game must run without it.
sdkDisabled (message The SDK is disabled: <reason>. Local mode: <docs link>, with the same reasons as the console line above), or SDK.environment is "disabled" The page is on a normal host and is not inside the portal frame, or the host did not answer the handshake. Run on localhost, add ?useLocalSdk=true, or open the game in the Preview tool. Your game must still run when disabled. Branch on code === "sdkDisabled"; the old text disabled on this domain appears only when no reason is known, so never search for it.
window.ZokoGames is undefined The script tag is missing, is after your code, or was blocked. Load https://sdk.zokogames.com/zokogames-sdk-v1.js before your bundle. Check the network tab.
Works on localhost, not when uploaded You rely on local-only behaviour (always-filled ads, fake user). Re-test in the Preview tool and handle failures.
timeout The portal did not answer a call within 10 seconds. Check the page is really framed by the portal. An ad request waits up to 30 seconds for the ad to start (then adError receives timeout) and has no limit once it plays; sign-in and account-link prompts and store.buyItem never time out.
invalidArgument A wrong type or range. The message names the argument and, since SDK 1.6.3, what was received (for example got "interstitial", got 150 or got object; long strings are cut and values are never printed in full). Fix the call. Example: reportGameCompletedPercentage(150). Compare e.code, never the message text, which can change between releases.
Environment is "disabled" inside your own test iframe The SDK waited 1.5 seconds for the portal, got no answer and the page is not on a local host. Add ?useLocalSdk=true to the game's URL, or test in the Preview tool. See testing.
init() seems to do nothing It never rejects: failure is reported as SDK.environment === "disabled". Read SDK.environment after await SDK.init().
Console: [ZokoGames SDK] Local mode: the portal is simulated in this page and nothing is sent over the network. Information, printed once. The SDK chose local mode because the page is on localhost or has ?useLocalSdk=true. The same line says that ads show a 3 s placeholder, saves stay in localStorage and submitted scores are only logged (before 1.6.3 it said leaderboards echo them). Nothing. It is expected on your machine; if you see it on the live site, the game is not being framed by the portal.
Console (with ?sdk_debug=true): [ZokoGames SDK] host handshake failed, with The page that answered the handshake (<origin>) is not ZokoGames or Unsupported host protocol version The game is framed by a page that is not the portal (for example your own test page on a public host), or no portal answered in time. The SDK falls back to local mode where that is allowed, otherwise to "disabled". Test locally with ?useLocalSdk=true, or upload the build and use the Preview tool.
Console (SDK 1.6.3, warning, once per page): [ZokoGames SDK] ad.requestAd: <problem>. Pass { adStarted, adFinished, adError } as functions. Docs: https://www.zokogames.com/docs/sdk/ads The second argument of SDK.ad.requestAd can never run: a bare function instead of an object (the second argument must be an object, got function, so no callback will run), a misspelled name such as onFinished, or a value that is not a function (<names> will never be called (unknown name or not a function)). Only the first 20 keys are checked. undefined, null and {} stay silent. The request itself behaves as before. Pass { adStarted, adFinished, adError }, each a function. Without a working adFinished or adError your game never resumes.
Console (SDK 1.6.3, warning, once per page): [ZokoGames SDK] user.getUserToken: options must be an object such as { signingKeyType: "IN_GAME_AUTH" }, got <type>; the default key is used. Docs: https://www.zokogames.com/docs/sdk/user A non-object (usually the string "IN_GAME_AUTH") was passed to SDK.user.getUserToken. It is ignored, as before, and the default key is used. Only the type is printed, never the value. Call getUserToken() with no argument, or with an object. Every token is signed the same way, so the option is not needed.
Console (local mode, SDK 1.6.3, warning, once per page): [ZokoGames SDK] Local mode: unknown switch value ignored: ?user_response=guest (use user1, user2, logged_out). Docs: https://www.zokogames.com/docs/getting-started/local-testing A scenario switch in the page address has a misspelled value. It is ignored, so the default (for user_response, a signed-in player) applies. The line names every wrong switch with its accepted values: user_response (user1, user2, logged_out), show_auth_prompt_response (user1, user2, user_cancelled), link_account_response (yes, no, logged_out), token_response (user1, user2, expired_token, logged_out), ad_response (adsDisabled, unfilled, adblock, other). Use one of the listed values, with exactly this spelling and case.
Console (local mode, SDK 1.6.3, info, on every call): [ZokoGames SDK] Local mode: score <n> not sent (nothing is stored; real leaderboards run in the portal) SDK.user.submitScore was called in local mode. The call is validated and resolves, but the score is only logged: there is no leaderboard locally. Nothing. To see a score ranked, test in the Preview tool or on the portal.
Console: [ZokoGames SDK] Local mode: chat report not sent (…) Information. In local mode SDK.game.reportChat has nowhere to send the report, so the SDK prints it. Nothing to fix; on the portal the report is sent.
Console (with ?sdk_debug=true): [ZokoGames SDK] local data save failed In local mode the save goes to the browser's localStorage, which is full or blocked (for example with site data blocked). Free space or allow site data for the page; on the portal, saves are stored as usual.
Console: [ZokoGames SDK] game.gameplayStart: the portal did not answer (also game.gameplayStop, game.loadingStart, game.loadingStop, game.happytime, game.leftRoom) The portal did not reply within 10 seconds. These calls resolve instead of rejecting, so only this warning tells you. Check the page is framed by the portal; reload. If it happens in the portal, tell support.
Console: [ZokoGames SDK] Cloud save sync failed: the save is kept locally and the SDK retries. SDK 1.6.2 prints this warning once per page, next to the first data sync failed error below. See the next row.
Console: [ZokoGames SDK] data sync failed A background save was refused or lost, for example while offline or past a rate limit. The SDK keeps the change and retries after 2, 4, 8 seconds and so on, up to 60 seconds. Nothing, if it stops. If it repeats, your save may be over 1 MiB (dataLimitExceeded is thrown by setItem in that case) or the game writes too often.
Console: [ZokoGames SDK] callback threw, listener threw or event handler threw Your own adStarted, adFinished, adError callback or a settings, auth or room listener threw an exception. The SDK caught it and carried on. Read the error printed after the message and fix the callback; an exception in adFinished can leave the game paused.
Console: [ZokoGames SDK] localStorage mirror: followed by a code mirrorLocalStorage could not save a key, usually dataLimitExceeded. Save less, or pass onError to handle it.
Errors are not Error objects SDK errors are plain { code, message } objects (banner errors also carry containerId). Read e.code; do not test e instanceof Error.
Code behaves differently after an SDK release You load the latest alias, which is cached for about an hour at most. Pin a release with https://sdk.zokogames.com/<version>/zokogames-sdk-v1.js while you investigate. See versioning.

Ad error codes#

Symptom Likely cause Fix
adsDisabled Basic launch, kids' game, ads not enabled, or the provider is off. Expected. Continue without an ad. In local mode force it with ?ad_response=adsDisabled.
adCooldown A midgame ad was requested less than three minutes after the previous ad, or the portal's per-session or per-day ad limit was reached. Request at natural breaks only; do not add your own timers.
adCooldown in local mode on the first midgame request Since SDK 1.6.4 local mode refuses a midgame ad until the game has called gameplayStart() or 30 seconds of visible page time have passed, like the portal. The message reads "Midgame ads are available after gameplay starts: call game.gameplayStart() first". Call gameplayStart() when the player starts to play, before the first ad break. Rewarded ads are not gated.
adblock An ad blocker stopped the request. SDK.ad.hasAdblock() reports it. Continue without an ad. In local mode force it with ?ad_response=adblock.
other Another request is already running, or an unexpected failure (read message). Wait for adFinished / adError before requesting again.
unfilled No ad was available. Continue the game. Try at the next break.
Game stuck paused after an ad You resumed only in adFinished. Resume in adError too.
Reward granted for no ad Reward given in adStarted or adError. Grant it only in adFinished.
Second request does nothing Another request is already running; its adError gets other. Disable the trigger while waiting.

Banners#

Symptom Likely cause Fix
missingId The id is empty or not a string. Pass the container's element id.
bannersDisabled Banners are off for this game or stage. Normal. Never depend on a banner being visible.
notCreated No element with that id in the DOM yet. Create the container first.
notVisible The container is display:none, zero sized, transparent or outside the viewport. Show it and give it a size before requesting.
invalidSize Not in the static list (728x90, 300x250, 320x50, 468x60, 320x100). Use a listed size or requestResponsiveBanner.
noAvailableSizes Container smaller than every responsive size. Make it at least 120 x 600, 320 x 50 or another listed size.
bannerCooldown Same container requested again within 30 seconds. Refresh less often.
maxRefreshReached More than 60 banner refreshes in this session, or three banners are already on screen. Stop refreshing; keep the banner you have, or clear one before you request another container.
videoAdPlaying A video ad is on screen. Request again after adFinished.
Request resolves but nothing shows Banners are off for the game's stage. Normal. Never depend on a banner being visible.

Cloud save#

Symptom Likely cause Fix
dataLimitExceeded The whole save is over 1,048,576 bytes as JSON. Store ids and numbers, not world snapshots.
dataModuleDisabled The data module is not enabled for the game. Tick Uses the SDK data module on the Technical step of the submission.
Save resets after sign-in The account already had a different save, and the player kept it when asked. Load all state at start: the game is reloaded with the account's save. See cloud saves.
Guest progress not offered after sign-in; the account's save loads instead The guest copy on the device is over 1,048,576 bytes (DATA_LIMIT_BYTES) as JSON and cannot be uploaded, so the player is not asked and the account's save replaces it. Keep saves well under the limit (see dataLimitExceeded above).
Last write lost on close The tab was killed before the sync. Writes flush on pagehide and when the tab is hidden; avoid very frequent tiny writes and save at checkpoints.

setItem, getItem, removeItem and clear are synchronous: they throw { code, message } instead of returning a rejected promise, so wrap them in try/catch. More causes are under saves not persisting.

Users, tokens and leaderboards#

Symptom Likely cause Fix
userNotAuthenticated A guest called a signed-in feature (token, friends, store, getPurchaseToken). Offer showAuthPrompt() on a button, or continue as a guest.
userAlreadySignedIn showAuthPrompt() while someone is signed in. Check getUser() first. In local mode use ?user_response=logged_out.
userCancelled The player closed the sign-in prompt. Continue as a guest.
showAuthPromptInProgress, showAccountLinkPromptInProgress The prompt is already open. Disable the button while it is open.
Server rejects the token Wrong key set, expired token, or wrong gameId. Verify RS256 against https://www.zokogames.com/.well-known/jwks.json, check exp and compare gameId.
Console: Access to fetch at 'https://api.example.com/...' from origin 'https://g-your-game.zokogames.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present Your own game server does not allow the game's origin, or it answers the call with an error before it adds the CORS headers (a 401, 404 or 500 without them looks the same). Send Access-Control-Allow-Origin: https://g-<your-game-slug>.zokogames.com (the exact origin shown on the Technical step) on every answer, including errors. Do not use *.zokogames.com.
Console: Request header field authorization is not allowed by Access-Control-Allow-Headers in preflight response The browser sent an OPTIONS preflight before your call (any Authorization header or a JSON Content-Type triggers one) and your server did not list the header. Answer OPTIONS with status 204, Access-Control-Allow-Origin, Access-Control-Allow-Headers: authorization, content-type and the methods you use. Do not add Access-Control-Allow-Credentials.
Console: Mixed Content: The page ... was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://...' The game opens ws:// or calls http:// from the https game page. Use wss:// and https:// with a valid certificate. A raw IP address cannot have one: use a host name.
Console: WebSocket connection to 'wss://...' failed and nothing about CORS A WebSocket upgrade is not subject to CORS. Your server refused the upgrade (it checks Origin and does not know the game's origin), the host or port is unreachable, or the certificate does not match the host name. Allow the game's Origin in the upgrade check, open the address in a normal browser tab to see the certificate state, and check the server log for the refused upgrade.
Your server answers 401 after the game was open for a while The token lasts one hour and your long-lived connection or cached copy kept the old one. Call getUserToken() again (the SDK caches it and renews it a minute before expiry) and re-authenticate the connection with the new token before the old one expires.
Server rejects a local-mode token Local tokens are unsigned (alg: none). Expected. Test against the Preview tool or a test-only bypass.
rateLimited on listFriends Calls less than 250 ms apart. Wait between pages.
requestInProgress Another friends request (or, for the store, another catalog, inventory or consume request) is running. Wait for it.
unexpectedError The portal failed unexpectedly. Retry later; report it with the sdk_debug log if it repeats.
Score never appears on the board Not signed in, outside the board range, inside the cooldown, wrong key or payload older than 2 minutes. The portal drops these silently. Check each rule in leaderboards and encrypt at submission time.
Server API returns 401 Missing or revoked key. Send X-API-Key with the current key.

Store#

Symptom Likely cause Fix
SDK.store.isAvailable is false This host offers no purchases. Hide purchase buttons.
catalogFetchFailed, inventoryFetchFailed, purchaseInitFailed, consumeItemFailed The portal could not complete that request, or the item is unknown. Retry later; check the sku in the console.
purchaseInProgress A checkout is already open. Disable the buy button until it settles.
purchaseCancelled The player closed checkout. Do nothing; no charge was made.
itemNotConsumable, itemNotInInventory, insufficientItemQuantity Wrong sku, a durable item, or fewer owned than requested. Read the inventory first.
invalidArgument Bad limit (1 to 50), offset, sku or quantity (integer, 1 or more). Fix the call.
getXsollaUserToken is flagged deprecated Old name of store.getPurchaseToken(). Switch to the new name; see versioning.

Multiplayer rooms#

Details are in multiplayer rooms.

Symptom or code Cause Fix
roomUnavailable The player is a guest, kids mode is on, or realtime is off. Offer showAuthPrompt() first; give guests a single-player mode.
Rooms never open in a game made for children Rooms are off for kids games: the frame refuses room calls with roomUnavailable, and the realtime server refuses rooms of a kids game with its own room_closed error, which your game does not receive. After the kids flag is removed, rooms can stay closed for up to an hour. Do not offer multiplayer in a kids game; give it a single-player mode.
notInRoom updateRoom was not called, or the signed-in account has no 13+ birthday on file and so no realtime identity. Call updateRoom before send and setState.
notHost A non-host called setState. Guard with isHost(); re-check in onHostChange.
payloadTooLarge A message or state patch is over 8 KB. Send less.
stateTooLarge The shared state would pass 64 KB. Remove keys by setting them to null.
unknownMember to is not in the room, or is yourself. Take to from members().
rateLimited More than 20 messages per second. Ten rejected messages in ten seconds close the realtime connection. Throttle; merge updates.
invalidArgument on setState An empty patch, more than 64 keys, or a key outside A-Z a-z 0-9 _ . : - (1 to 40 characters). Fix the keys.
A friend cannot join The room is full (your maximum lobby size, at most 100, or 8 when none is set), isJoinable is false, or the host has blocked them. The refusal is not an SDK error. Show your own message; raise the lobby size in the submission.
Messages never arrive in local mode The tabs use different room ids or origins. Use the same roomId and the same address in both tabs.
Everything works for you, not for the reviewer The reviewer is a guest or on another account state. Offer sign-in clearly and handle roomUnavailable.

Upload and review#

Build findings are listed in full on build validation. The common ones:

Code or symptom Cause Fix
no_index ("index.html not found") It is not at the zip root. Zip the contents, not the parent folder (one top-level folder is accepted).
blocked_type A .php, .exe, .sh, .py or similar file. Remove it; games are static.
too_large, too_many_files, too_many_entries Over 250 MB unpacked, 1,500 files or 6,500 zip entries. Combine files; load assets later.
initial_too_large The first load is estimated above 50 MB. Lazy-load levels and audio. See first frame fast.
unsafe_path, symlink, encrypted, zip64 The zip has a path with .. or a backslash, a symbolic link, a password or Zip64. Re-zip real files with a standard tool.
missing_reference, case_mismatch, absolute_path A referenced file is missing, differs by letter case or starts with /. Use relative paths with the exact case.
no_sdk The SDK script is not referenced. Ads, saves and scores will not work, and full launch needs it. Load https://sdk.zokogames.com/zokogames-sdk-v1.js.
origin_*, external_url The code calls other hosts. Bundle the files; ad hosts are not allowed.
Keys scroll the page Default actions are not cancelled. See scroll and keys.
Keyboard dead after an ad The frame lost focus. Call canvas.focus() in adFinished.

The Report on a build prints these messages. Search this page for the sentence you see; {size}, {hosts} and the like stand for the values the report fills in. An error stops the upload, a warning does not, and a note is information only.

Message in the report Code Kind Cause Fix
index.html must be at the root of the zip. no_index Error You zipped the parent folder twice, or the export has no index.html. Put index.html at the top level, or inside a single top-level folder.
A file path is unsafe and was rejected. unsafe_path Error A name has an absolute path, a drive letter, .., a backslash, ? or #. Zips made by some Windows tools use backslashes. Rename it, or zip with the file manager or tar -a -c -f game.zip *.
Symbolic links are not allowed. symlink Error The zip holds a link instead of a file. Replace the link with a real copy of the file.
Encrypted zip entries are not supported. encrypted Error The zip has a password. Re-create the zip without a password.
The same path appears twice in the archive. duplicate Error A zip tool added a file twice. Remove the duplicate entry.
Executable or server-side files are not allowed. blocked_type Error The zip holds .php, .exe, .sh, .py or a similar file. Remove the file; games are static files only.
A .gz file is not gzip data and would fail to load. bad_precompressed Error A file named .gz was not compressed with gzip. Re-export with gzip compression, or upload the files uncompressed.
Two paths differ only by letter case and break on some systems. case_collision Warning Hero.png and hero.png both exist. Rename one of them.
A file name starts with _zoko, a reserved prefix, so the file is never served. reserved_name Warning A file such as _zoko-data.json. Rename the file and the code that loads it.
The top-level __zk folder is reserved, so nothing in it is served. reserved_path Warning Files in a __zk/ folder at the top of the zip. Move them to another folder and update the paths.
A file or folder whose name starts with a dot is never served. hidden_file Warning A .git folder, a .env file or a .vite folder in the zip. Delete it, or rename it without the dot if the game loads it.
index.html uses a root-absolute path, which 404s under a build folder. absolute_path Warning A path starts with /, as in /game.js. Use relative paths such as ./game.js.
index.html references a file that is not in the zip. missing_reference Warning A file named in index.html was left out of the zip. Add the file or fix the path.
index.html references a file whose name differs only by letter case. case_mismatch Warning Game.js in the page, game.js in the zip. The host is case sensitive. Match the exact letter case of the file name.
index.html does not look like an HTML document. index_not_html Warning The file is empty, a redirect stub or not HTML. Check that the export produced a real HTML page.
The ZokoGames SDK script is not referenced, so ads, saves and scores will not work. no_sdk Warning There is no script tag for https://sdk.zokogames.com/zokogames-sdk-v1.js. Add the SDK script tag and call init().
A copy of the SDK appears to be bundled in the build. sdk_bundled Warning The SDK file was copied into the zip, so fixes cannot reach players. Load the SDK from its hosted URL.
A third-party portal SDK was detected. third_party_sdk Warning The build still loads another portal's SDK. Remove it (the migration guide shows the equivalent calls).
A file name is not stored as UTF-8 and may be garbled. non_utf8_name Warning The zip tool used a legacy code page. Re-zip with UTF-8 names, or use plain ASCII file names.
One file is {size} MB, above the {limit} MB mobile initial-download target. large_file Warning A single file is larger than the mobile budget. Split it, compress it, or load it after the game starts.
External font origins are referenced: {hosts}., External CDN origins are referenced: {hosts}., External analytics origins are referenced: {hosts}., External advertising origins are referenced: {hosts}. or External unclassified origins are referenced: {hosts}. origin_fonts, origin_cdn, origin_analytics, origin_ads, origin_unknown Warning The code loads files from other websites. Bundle what the game needs into the zip. Your own game server is allowed; ad networks and tracking never are.
Absolute http:// URLs ({count}) are blocked as mixed content, for example {example}. mixed_content Warning An http address on an https page. Use https:// or relative paths.
The build registers a service worker. service_worker Warning The code calls navigator.serviceWorker.register. Remove the registration; offline saving is handled by the portal.
Code reads or writes document.cookie. cookie_access Warning Cookies are not shared inside the frame. Use the SDK data module.
Code touches the top or parent location. top_navigation Warning A sandboxed frame cannot navigate the portal. Remove the call.
Files ending in .unityweb are served without Content-Encoding, so the loader unpacks them in JavaScript and the game starts slower. unity_unityweb Warning Unity's Decompression Fallback, or an old Unity export. Turn Decompression Fallback off and re-export with Brotli or Gzip.
Build files mix .br and .gz. unity_mixed_compression Warning Two compression formats in one Build folder. Re-export so every Build file uses the same compression.
Some Build files are uncompressed while others are compressed. unity_compression_mismatch Warning Part of a Unity build was copied from another export. Check the dataUrl, frameworkUrl and codeUrl names in index.html.
The SDK is pinned to version {version}. sdk_pinned Note The script URL names a version. Use the latest URL unless you need a fixed version.
No SDK init call was found by a static scan. sdk_no_init Note Minified bundles and engine wrappers hide the call from a text scan. If the script tag is present and the Preview tool logs an init, ignore the note; otherwise add the call.
The SDK is loaded through the compat shim. sdk_compat_shim Note The legacy global hides the init call from the scan. Nothing, if the Preview tool shows the init call.
Everything was inside one folder ({folder}); it was used as the root. nested_root Note The zip holds one top-level folder. Nothing; zip the contents if you prefer.
The engine ({engine}) was guessed from text signatures only. engine_low_confidence Note The export has no clear engine fingerprint. Nothing.
The static scan stopped early, so some findings may be missing. scan_truncated Note The build hit the scan's size or time budget. Nothing, but check the build in the Preview tool.
This file is not a readable zip archive. not_zip Shown in the report The message states what the check found. Create the zip again with your system's zip tool (right-click, Compress on a Mac; Send to, Compressed folder on Windows). Other formats such as .rar or .7z are not accepted, and the zip must have no password.
The zip is damaged or could not be unpacked. corrupt Shown in the report The message states what the check found. The upload may have been cut short, or the zip tool wrote a broken archive. Create the zip again from your export folder and upload it again.
The zip's file list does not match its contents. central_mismatch Shown in the report The message states what the check found. Create the zip again with a standard tool; zips edited or merged by hand often break this way.
A file inside the zip is larger than the size the zip declares for it. size_mismatch Shown in the report The message states what the check found. Create the zip again with a standard tool. The portal never trusts declared sizes, so a mismatch is treated as a damaged archive.
The zip unpacks to more than the total size limit. total_bytes Shown in the report The message states what the check found. Remove files the game does not load, and compress textures and audio. The limits are in the Limits table.
Zip64 archives are not supported. zip64 Shown in the report The message states what the check found. Zip64 is used for very large archives. Split large data into fewer, smaller files and create a normal zip.
The zip has more entries than the limit allows. too_many_entries Shown in the report The message states what the check found. Combine many small files into atlases or packs, then create the zip again.
The zip contains no files. empty Shown in the report The message states what the check found. Zip the contents of your export folder (select the files inside it, not an empty folder).
A file uses a zip compression method that is not supported. compression Shown in the report The message states what the check found. Create the zip again with the standard Deflate method, or store files without compression.
A file or the whole zip expands far more than normal data does. compression_ratio Shown in the report The message states what the check found. The portal rejects archives that could exhaust memory when unpacked. Do not zip data that expands this far; store large generated or repeated data in a smaller form.
The zip has more files than the limit allows. too_many_files Shown in the report The message states what the check found. Combine files, for example sprites into atlases and small data files into one pack.
The unpacked build, or one file in it, is above the size limit. too_large Shown in the report The message states what the check found. Compress textures and audio, remove files the game never loads, and load optional content after the game starts.
The first download is above the limit, so the game would take too long to start. initial_too_large Shown in the report The message states what the check found. The first download is index.html, the files it references and the engine files. Load levels and audio after the first frame.
The first download is above the mobile target. mobile_initial_large Shown in the report The message states what the check found. Reviewers test on a phone. Load levels and audio after the first frame to get under the target.
The zip has files of a type the portal does not recognise; they are served as generic binary downloads. unknown_type Shown in the report The message states what the check found. Check that your engine does not need a specific Content-Type for them. Most engines load such files themselves and need nothing.
System files such as __MACOSX and .DS_Store were ignored. junk_ignored Shown in the report The message states what the check found. Nothing to do; they are left out of the build.
There are more problems than this report lists. more Shown in the report The message states what the check found. Fix the ones shown and upload again; the next check shows the rest.
The safety scan blocked this build (rule {rule}). unsafe_rule Shown in the report The message states what the check found. Remove the file or code named below and upload again. The rules are explained in the safety scan section of the docs.

The upload zone prints these messages itself, before or instead of a report.

Message Cause Fix
Only a .zip file can be uploaded. Zip the contents of your export folder first; a folder, .rar, .7z or .tar file is not accepted. The file you chose does not end in .zip. Zip the folder contents; other archive formats are not read.
The file is larger than the {max} MB build limit. The zip is bigger than the unpacked limit. Shrink the assets below the build limit (250 MB unpacked).
The zip could not be used. Check that it is a valid zip of your game with an index.html, then choose it again. The server could not read the archive (upload_invalid). Re-create the zip with a standard tool and check it with unzip -l.
The zip is larger than the size limit. Shrink it and try again. The request was refused as too large (payload_too_large). Shrink the zip.
Your studio has reached its build storage limit. Delete old builds, then try again. Old versions fill the studio's storage (quota_exceeded). Delete versions you no longer need in the version list.
Too many uploads were started and not finished. Unfinished uploads expire after 24 hours, and you can start a new one as soon as some have expired. Uploads that finish do not count. At most 20 uploads can be open at once (too_many_open_uploads), and a daily bound on unfinished ones gives the same message (daily_upload_limit). A single-request upload that was never sent stops counting after 20 minutes; a multipart upload (a zip above 50 MB) counts for 24 hours. Choose the same file again to resume an interrupted upload, or wait for old ones to expire.
Too many uploads in the last hour. Try again in {minutes} minutes. (rate_limited) More than 20 upload starts or 20 confirmations in an hour. The message names the wait. Wait that long, then retry.
The upload failed. Retry to try again. The upload stopped for a reason the console could not name. Press Retry upload. The line under it says whether parts are kept: Nothing was published and no version was created. {done} of {total} parts are stored on the server, so retry sends only the rest. or, for a small file, Retry sends the file again from the start.
The connection dropped during the upload. Once you are back online, press Retry. Your network went away, or the connection timed out. Press Retry upload once you are online; stored parts are not sent again.
Something went wrong on our side during the upload. Press Retry in a moment; if it keeps failing, write to Support. The server answered with an error (HTTP 5xx). Retry in a moment; if it repeats, contact support.
Upload paused. Nothing was published yet; {done} of {total} parts are stored on the server. Continue to send the rest. (or Upload cancelled. Nothing was published and no version was created. Upload again to send the file from the start.) You pressed Pause upload. Press Continue upload, or choose the same file again to resume.
An upload of {name} was interrupted ({done} of {total} parts sent). Choose the same file to resume it. You left or reloaded the page during a multipart upload. Choose the same file again.
An upload is still running. If you leave this page it stops. Leave anyway? The browser asks before you close the tab mid-upload. Stay until "Step 2 of 2: checking and publishing the build" shows, or until the version list has the build.
Your studio is suspended, so builds cannot be uploaded. Your file was not sent. Open Support and send a request to appeal. (developer_suspended) The studio is suspended. Contact support to appeal.
The upload request was not valid. Choose the zip again. (invalid_body) The request was malformed, for example a zip below 22 bytes. Choose the zip again; an empty or truncated file cannot be uploaded.
The file had not reached storage when we checked. Retry to finish. You confirmed before the last part arrived. Retry the upload.
This upload is no longer valid, so it cannot be resumed. Choose the zip again to start a new upload. An interrupted upload expired. Choose the zip again.
Storage is not available right now. Try again in a moment. Storage is unreachable (storage_unavailable). Retry in a few minutes.
The server is still publishing this build. Large builds can take a minute or two, sometimes longer. (also The connection to the server dropped, so this page is watching the build on the server. It is not lost.) A large build is still being checked. Wait; the build appears in the version list with its report, and you need not upload again.
Version {version} has safety findings, so it was sent to a moderator. The current version stays live until it is approved. The safety scan marked the build as needs review, so activating it waits for a person. Nothing is lost: wait for the decision. Add release notes saying what the build does if the scan could not tell.
The game is in review, so builds cannot change until the reviewer decides. The game is submitted or in QA (locked_in_review). Wait for the decision, or withdraw the submission.
Only builds that passed validation can be activated. You activated an invalid build (build_invalid). Fix the errors in its report and upload again.

The console answers with { "error": "<code>", "message": "..." }. Codes you can meet while uploading and submitting:

Code (HTTP status) Cause Fix
locked_in_review (409) The game is Submitted, In review or in Full QA; builds, covers and the listing are frozen. Wait for the decision, or withdraw a submitted game.
upload_not_found (404), upload_closed (409), already_processed (409) The upload id is wrong, already finished or already turned into a build. Start the upload again.
not_uploaded (409) You confirmed before the file reached storage. Finish the upload, then confirm.
upload_invalid (409 or 422) The stored size differs from the size you declared, or the build failed validation. Read the message and the build report; upload again.
invalid_part_number, invalid_part_size, parts_required, not_multipart (400) A multipart upload was driven out of order or with wrong part sizes. Use the console uploader, or follow the sizes in the start response exactly.
rate_limited (429) More than 20 upload starts in an hour, or another per-route limit. Wait for the time in Retry-After.
storage_unavailable (503) Storage is not reachable. Retry in a few minutes.
build_invalid (409) You activated a build that did not pass validation. Fix the errors and upload again.
already_active (409), build_active (409), build_in_review (409) The build is already live, is live and cannot be deleted, or is part of a submission. Activate another build first; for a build waiting for review, withdraw the update or wait for the decision.
review_started (409), no_pending_update (404) You tried to withdraw a build update that a reviewer has already started, or that is not waiting for review. Wait for the decision; the current build stays live meanwhile.
update_pending (409) An update to a full-launch game is already waiting for review. Wait for the decision.
not_ready (422) A required listing item is missing. The body lists missing and missingCovers. See the launch checklist.
kids_rating (400) A made-for-children game has a rating above 7+. Choose all ages or 7+.
cover_invalid, video_invalid (422) A cover or video misses the size, format or weight rule. See covers.
nothing_to_submit (409), artwork_review_pending (409) No staged artwork changes, or artwork is already in review. Stage a change, or wait.
not_live (409) You tried to unpublish a game that is not live. Only live games can be unpublished; a game in full QA needs support.
stale_status (409) The game changed state while you looked at it. Reload and try again.

Every console route can also answer invalid_body (400, the message names the field), unauthenticated (401), forbidden (403), forbidden_origin (403, the request did not come from the console page), not_found (404), payload_too_large (413), rate_limited (429), internal_error (500, with a short digest to quote to support) and unavailable (503).

Other sentences the console shows when it refuses something, with the code behind each (the code is the error of the API response; the console shows the sentence):

Code Why it happens Fix
conflict A teammate saved the game after you opened it. Reload to see their changes, then redo yours.
slug_locked The game address (slug) is fixed once a build is uploaded or the game is submitted, because players and links use it. Keep the address, or write to support with the reason.
hosting_needs_review The address of a game in Full Launch cannot change in the console. Write to support to have the change reviewed.
draft_limit The studio already holds the maximum number of unpublished games. Submit or delete a draft, then create the new game.
kids_blocked, kids_no_iap, kids_no_leaderboard, kids_rating, kids_commitment_required The game is made for children and breaks a rule of kids mode, or the commitment was not confirmed. Turn off what the message names, or switch Made for children off, then save.
step_up_required, second_factor_required The action is sensitive (deleting a studio, handing it over, removing payout details) and needs a passkey or code check, or a second sign-in step is not set up. Finish the check, or set up a passkey or authenticator app in your account security settings, then repeat.
last_owner, use_transfer A studio always needs an owner, and ownership is handed over, not set as a role. Use Make owner next to a member on the Team page, then leave. See team and roles.
studio_not_empty A studio with games or money history cannot be deleted in the console. Request the deletion from support.
too_many_tokens, webhook_limit The studio holds the maximum number of active API tokens or webhooks. Revoke or delete one you no longer use.
game_not_live Artwork experiments run only on games in Full Launch. Finish the launch stages, then create the experiment.
Review symptom Cause Fix
Changes requested A reviewer failed a line of the QA list. Read the numbered reasons and the note, fix each, submit again. See the launch checklist.
Rejected A final reason, or the game was rejected and not yet reopened. Read the reasons; reopen as a draft if the reason is fixable.
Kids game sent back with Audience flag It breaks a made-for-children rule, or looks like a kids game without the flag. See kids mode.

Webhooks#

Details are in webhooks.

Symptom Cause Fix
The endpoint is refused when you add it It is not https on port 443, has a username or password, is localhost or a single-label name, or resolves to a private address. Use a public HTTPS address; tunnel a local server.
Delivery status request_failed No answer: the name did not resolve, the connection failed or it timed out after 5 seconds. Answer within 5 seconds and do the work after you respond.
Delivery status http_<status> Your server answered something other than 2xx. Redirects are not followed. Answer 2xx on the exact registered address.
Your signature check fails You parsed the JSON first, used the wrong secret, or signed the wrong text. Hash "<t>.<raw body>" with the whole whsec_... string; compare v1 in constant time.
The same event arrives twice Delivery is at least once. Store X-Zoko-Event-Id and ignore repeats.
Events arrive out of order Retries can arrive after newer events. Order by createdAt.
The endpoint shows as switched off Five deliveries in a row went dead. Fix the server, then Re-enable.
Redeliver is refused (webhook_disabled, not_redeliverable) The endpoint is off, or the delivery is not retrying or dead. Re-enable first.
A lost signing secret It is shown once. Rotate secret; the old one stops at once.

Local mode#

See local testing for every query parameter.

Symptom Cause Fix
SDK.environment is "disabled" on your own server The host is not local and there is no ?useLocalSdk=true. Use localhost, or add the parameter.
Ads always fill, the user is always user1 That is the mock. Force a failure with ?ad_response=unfilled, adblock or adsDisabled, a guest with ?user_response=logged_out.
inviteParams is never null Every query parameter counts as an invite parameter. Pass explicit parameters when you test a join.
dataModuleDisabled never appears The data module is always on locally. Test it in the Preview tool.
Tokens fail on your server Local tokens are unsigned. Test the server path against the Preview tool.
Kids behaviour cannot be switched on Before SDK 1.5.0 the mock has no kids switch; from 1.5.0 ?kidsMode=true sets only kidsMode and disableChat. Use ?kidsMode=true (?disableChat=true on older SDKs), and the build preview's Kids mode for the other rules. See kids mode.

Preview tool#

Symptom Fix
Game URL refused Use an http or https address with no username or password, not a page on this site.
Plain http game blocked on the https portal Serve over https or run it on localhost.
The frame is slow to load: "The build has not finished loading after 10 seconds. Reduce the initial download, and check that every file path is relative (no leading slash or http address)." Shrink the first download (the first-frame guide), use relative paths, and open the browser console (F12) for a failed or blocked file.
The frame loaded but the SDK never started: "No SDK call arrived within 10 seconds." It then lists what to look for in the browser console: a refused frame, mixed content, a Content-Security-Policy error or 404s. Check the script tag and that init() runs; open the game with ?sdk_debug=true. If the console is clean, the build never loads the SDK script.
Check SDK initialised fails: "The SDK never reported in." It turns red once the frame has loaded and no SDK call arrived within 10 seconds. Same as above: index.html must load https://sdk.zokogames.com/zokogames-sdk-v1.js and your code must call SDK.init(). The check turns green by itself if the call arrives later.
Check gameplayStart called reads "Waiting for you to play" after 20 seconds without the call. It never turns red, because a game sitting in its menu is fine. Press Play in the frame. If you already started a round, call SDK.game.gameplayStart() when input becomes live; do not wait for a second click.
Check First gameplayStart within 20 seconds shows Recommended: "The first gameplayStart came after 20 seconds. If you waited in the menu, restart and press Play at once to time the game itself; if play began on its own, reduce the initial download." Restart the game and press Play straight away. If it is still slow, show a playable first screen sooner.
Check loadingStop called when the game is ready shows Recommended: "SDK.game.loadingStop() was not called within 20 seconds." It is never required. Call loadingStop() when the first screen is playable; gameplayStart() also removes the loading bar.
Check gameplayStop called on pause, menu and game over stays Not run yet (it is never red; the line reads "Measures: SDK.game.gameplayStop() was called when play stops. Limit: at least once."). Call gameplayStop() at every pause, menu and result screen.
Check gameplayStop before each ad request fails: "SDK.ad.requestAd() was called while gameplay was running. Call SDK.game.gameplayStop() before requesting an ad." Stop gameplay first, then request the ad.
Check Play resumed after an ad finished shows Recommended: "An ad finished but SDK.game.gameplayStart() has not followed yet. Call it in adFinished and in adError, when play continues." Call gameplayStart() when play continues after adFinished or adError.
Check Banner rules respected fails: "An SDK.banner.requestBanner() call broke a documented banner rule. The calls marked Requirement broken in the event log say which." Open the calls marked Requirement broken in the log; see the advertisement rules.
Check Saves stay under 1 MiB fails: "A save was 1 MiB or more, so SDK.data.setItem() would throw dataLimitExceeded. Save ids and numbers, not whole worlds." Save ids and numbers, not whole worlds.
Log mark Requirement broken: "Ad requested while gameplay was running. Call gameplayStop first.", "Same banner container requested again within 30 seconds.", "Banner requested during gameplay. Banners belong on menu and results screens.", "More than 60 banner refreshes in one session.", "More than two banners on one screen." or "Save is 1 MiB or more (1,048,576 bytes)." The text names the rule; fix the call it marks.
Checklist never ticks The matching SDK call did not reach the portal. Read the event log, then check the call is made in the portal environment, not only in local mode.

Next steps#

No answer to a request from the Support page? Replies go by email to your account address, usually within a working day, so check spam and the address on your account; the page lists each request with its reference and status (open, answered or closed). The form allows five requests an hour, and when you reach that the message says how long to wait. Still stuck? Send the game name, the stage, the steps and the sdk_debug console output through support.

Something unclear, wrong or missing on this page? Tell us through support · Test your game in the preview tool