Press5.xyz

press5 Play

press5 Play errors

Every error code a game can get, what it means and how to fix it.

press5 Play errors

Every error from press5 Play has a stable code, a message, a fix and a docs link (here). The JS SDK rejects with an Error carrying code, fix and docs, and logs unhandled ones to the console with their fix. As JSON: GET https://my.press5.xyz/api/v1/play/errors.

hello_first

Send {"t":"hello"} first.

Fix: Use the SDK (Press5Play.connect) or send a hello frame before anything else.

already_hello

This connection has already said hello.

Fix: Say hello once per connection; call connect() once and keep the client.

unsupported_version

This server speaks an older protocol.

Fix: Use the SDK from https://play.press5.xyz/sdk/v1/press5-play.js, or send "v": 2.

unknown_game

The server could not tell which game this is.

Fix: Open the game from its page on <name>.on.press5.xyz (the page address is the game). Native builds pass { key: "p5g_..." } from register_game.

no_game

That is not a live site on the launch pad.

Fix: Deploy the game first (deploy_site), then connect from its page.

bad_key

That game key is not known.

Fix: Make one with register_game (MCP) or POST /api/v1/play/games; keys are shown once, so register again if it was lost.

wrong_origin

A game key was used from a web page that is not its game.

Fix: Web pages on the launch pad need no key: leave "key" out. Keys are for native builds only.

game_blocked

press5 has blocked this game.

Fix: Contact press5 support; the game's owner was told why.

game_full

This game has as many players online as it may.

Fix: Claim the site (free) for a higher cap, or try again shortly.

too_many_here

Too many connections from this network for this game.

Fix: Close other tabs of the game. One player needs one connection.

rate_limited

Too many messages: slow down.

Fix: Send at most limits.msgPerSec messages a second (welcome frame). Batch updates: setMyState merges changes and sends them once a tick.

bad_frame

The server could not read that frame.

Fix: Send JSON objects shaped as in the protocol docs; let the SDK build frames.

bad_number

A number in that frame is not finite (too big to store, like 1e400).

Fix: Send ordinary numbers; check for overflow or division by zero before sending.

too_deep

That data is nested too deeply (over 32 levels).

Fix: Flatten the object you send.

unknown_type

That frame type does not exist.

Fix: See the frame list in the protocol docs.

server_error

Something went wrong on the server.

Fix: Retry; if it keeps happening, the error is press5's, not yours.

not_in_room

Join or create a room first.

Fix: await play.quickMatch() (or createRoom/joinRoom) before sending, setting state or acting.

no_room

There is no room with that code in this game.

Fix: Codes are 6 letters and only work in the game that made them; check room.code on the host.

room_full

That room is full.

Fix: Use quickMatch to find or open a room with space, or raise maxPlayers in press5.game.json.

room_locked

That room has started or is locked.

Fix: Join another room, or have the host call room.unlock().

already_in_room

You are already in that room.

Fix: Nothing to do: the player is in the room.

bad_mode

That mode is not one of the game's modes.

Fix: Use one of the "modes" in press5.game.json, or leave mode out for the first.

too_many_rooms

There are as many rooms as allowed right now.

Fix: Use quickMatch (it fills open rooms first). On unclaimed sites, claim the site for more server rooms.

server_busy

press5 Play is at capacity for server rooms right now.

Fix: Retry in a minute; the SDK can catch this error and show "busy, retrying".

engines_off

Server engines are switched off right now.

Fix: Retry later.

engine_config

press5.game.json "server" has problems, so server rooms cannot open.

Fix: Run check_game (MCP) or POST /api/v1/play/check with the file, fix what it lists, and deploy again.

not_host

Only the host can do that.

Fix: Check room.isHost first; the host is room.host and moves if they leave.

state_too_big

That would make the state bigger than allowed.

Fix: Room state is up to 64 KB and each player's up to 8 KB: keep positions and small values in state, send events as messages.

meta_too_big

Room meta can be up to 2 KB.

Fix: Keep meta to a few short labels (map name, round).

room_bandwidth

This room is sending too much right now.

Fix: Send fewer or smaller messages; every message is copied to every player in the room.

no_player

There is no such player in this room.

Fix: Use ids from room.players.

cannot_kick_self

The host cannot kick themself.

Fix: Call room.leave() instead.

no_kick_here

Kicks are off in public server rooms: their results count.

Fix: Use a private room (createRoom({ private: true })) to play with friends.

kicked

You were removed from that room.

Fix: The host or press5 Guard removed this player.

engine_room

This is a server room: press5's engine owns the state.

Fix: In server rooms use room.setInput (arena) and room.act (turns, party); setState and setMyState are for relay rooms.

not_engine_room

That only works in a server room.

Fix: Add a "server" block to press5.game.json to use an engine.

no_actions

This engine takes no actions.

Fix: Arena is driven by room.setInput, not room.act.

unknown_action

That action does not exist for this engine.

Fix: See actions in engine_reference.

not_in_game

This player is not in the game.

Fix: Wait for the next round, or join as a player rather than a spectator.

not_playing

The game is not in play.

Fix: Wait for the "start" event (turns) or have the host act("start") (party).

watching

Spectators cannot move.

Fix: Join a room with a free seat to play.

not_your_turn

It is not this player's turn.

Fix: Check room.view.turn === room.view.you before sending a move.

illegal_move

That move is not allowed.

Fix: Read room.view.game for the board; the rule pack refused this move.

bad_move

That move is not in the right form.

Fix: See the move format for the rule pack in engine_reference (turns.rules).

cell_taken

That cell is taken.

Fix: Pick an empty cell (-1 on room.view.game.board).

column_full

That column is full.

Fix: Pick another column.

not_your_piece

That is not this player's piece.

Fix: Move one of your own pieces (your seat number on the board).

must_capture

A capture is available, so it must be taken.

Fix: In checkers captures are forced; look for a jump.

must_continue_jump

The same piece must keep jumping.

Fix: Continue from room.view.game.chain.

not_in_hand

That card is not in this player's hand.

Fix: Play a card from room.view.game.hand.

does_not_match

That card matches neither rank nor suit of the top card.

Fix: Match room.view.game.top, or draw.

draw_first

Draw a card before passing.

Fix: act("move", { draw: true }) then pass if still stuck.

no_more_draws

No more draws this turn.

Fix: Play a card or pass.

deck_empty

The deck is empty.

Fix: Pass.

already_answered

This player has already answered.

Fix: One answer per question.

already_playing

A game is already running.

Fix: Wait for the end, then act("again").

bad_choice

That choice is not one of the answers.

Fix: Send { choice: <index into room.view.choices> }.

not_now

Not now.

Fix: Answers are taken while room.view.ph is "question".

not_enough_players

Not enough players to start.

Fix: Wait for minPlayers (press5.game.json server block) to join; draw mode needs at least 2.

already_guessed

This player has already guessed it.

Fix: Nothing more to send this turn; wait for the reveal.

too_many_guesses

No tries left this turn.

Fix: Each player gets maxGuesses tries per question or turn (party settings).

bad_guess

That guess is empty.

Fix: Send act("answer", { text: "..." }) with some text (up to 40 characters).

not_drawer

Only the drawer can do that.

Fix: Check room.view.drawer === room.id before choose, draw, undo or clear.

bad_stroke

That stroke is not in the right form.

Fix: Send act("draw", { s: [[x, y], ...] }) with 1-64 points, x and y from 0 to 1 (divide by the canvas size), c "#rrggbb", w 1-40.

canvas_full

This drawing has as many strokes as a turn may have.

Fix: Send fewer, longer strokes: batch points (up to 64 per draw) every 30-50 ms instead of one per mouse move.

guard_locked

press5 Guard removed this player from the game a short while ago.

Fix: Show the message with a countdown: e.retryMs is how long is left (2 minutes the first time, longer each time), then let them try again. If fair players are being removed, your "guard" limits are too tight: see the Tuning table on your Guard page (or game_info.guard) and raise them. The game's owner can clear a player from the Guard page.

guard_banned

The owner of this game has banned this player from it.

Fix: Show the message and do not retry. Bans are the game owner's own list, on the Guard page of their launch pad site (by guest id); only they can lift one.

guard

press5 Guard corrected or refused that.

Fix: A value broke the game's own "guard" limits. Apply room.on("guard", (me, room) => ...) corrections; if fair players trip it, raise the limit in press5.game.json.