Skip to main content

Errors

Markdown

Every refusal has a short code. In the browser, it is e.code of a rejected promise, { code } of a room error event or of rt, or the endReason of a call. On your server, it is the code of a RealtimeError in Node and Python, and its errorCode in PHP. The Laravel broadcasting wraps it in a BroadcastException.

The connection​

rt.on( 'error', ( e ) => … ), or connect() rejecting:

CodeWhyWhat to do
not_licensedWordPlus Cloud does not know the app keythe key is wrong, or the app was deleted
not_includedthe app grant does not include realtime
wrong_originthe page is not on one of the app addressesadd the address to the app (scheme, host and port exactly: http://localhost:3000, capacitor://localhost)
over_capacitythe app holds all the connections its plan takes at once, and 20% moreserve the worker, so the tabs of a browser share one. A plan with more connections
try_latera server still startingthe page tries again by itself
bad_requestthe handshake was malformed

Rooms​

The error event of a room, and its error property (room.state is failed):

CodeWhy
forbiddenyour server rule said no, or the user was kicked out of the room
no_ruleno pattern your server declares matches the room
bad_roomnot a room name WordPlus Cloud takes
expired, bad_tokenthe token ran out, or was not signed with your app secret (a secret rotated more than a day ago, say)
too_manythe connection holds 1,000 rooms, or one token asked for more than 100
fulla presence room has its 100,000 members
auth_failedyour auth route did not answer, or answered an HTTP error
no_auththe page has no auth route
timeout, serverthe server did not answer, or failed

A room that kicks the user out says so with kicked. An event the page had no key for, even after asking your keys route, comes as error with unopened ({ code, event, label }): on the room, or on rt for what your server sent the user.

A page back after the 5 minutes a room keeps its events, or after more came than it keeps, gets what the room still had, then error with gap on the room, which stays joined. Some events are lost to it, so it loads what it shows again from your server (keeping the conversation).

Events from the page​

emitWithAck() rejecting:

CodeWhy
not_allowedthe room rule does not list the event in emit, or the user answer is readOnly
forbiddenthe tab is not in the room
bad_eventa name the server does not take, or one of the reserved names
rate_limitedover 50 a second from the connection
too_largeover 1 MB
timeoutno ack in time (room.timeout( ms ))

history() rejects with no_history for a room that keeps none, membersPage() with no_presence for one that is not a presence room, and rt.users() and rt.online with no_identity for a page whose user your server did not vouch for.

Reserved names​

These eleven names belong to the room and the connection. Neither your server nor a page sends an event by them, and a room whose rule lists one in emit or webhook is refused:

joined, join, leave, count, error, kicked, connect, disconnect, connect_error, state, online.

Sending​

RealtimeError from to().emit(), toUser().emit(), batch(), in(), user(), call(), webhooks and the lists:

CodeWhy
missing_signature, stale_signature, unknown_site, bad_signaturethe signature was not taken: a server clock off by more than 5 minutes is stale_signature, a wrong secret bad_signature
not_includedthe grant does not include realtime, or calls or live streams for theirs
bad_request, bad_roomno rooms or users, or a name the server does not take
reservedan emit by one of the reserved names
bad_eventuser( id ).ask() by a name the server does not take, or a reserved one
too_many, too_largeover 1,000 rooms or users in one emit, or data over 1 MB. In the HTTP API, also over 100 events in one batch request
not_foundno such message or webhook batch now. A group call with nobody in it is no error: get() answers people 0
no_webhookwebhooks.test() for an app without a webhook address
unreachable, http_<status>the server could not be reached

What stream( name ) refuses is under live streams.

Calls​

From calls.start(), incoming.accept(), calls.group(), call.add() and group.add(), from your calls route (denied), and as the endReason of a call (why a call ended):

CodeWhy
forbiddenyour calls() or groupCalls() rule said no, or no pattern matches the call. For a ring into a group call, the one ringing is not in the call, or the one answering was not rung
no_usernobody signed in, or a user id calls cannot take: empty, 0, over 64 characters, or with a space
not_includedthe grant does not include calls
bad_requesta name the server does not take, or calling yourself
bad_token, expiredthe token was not for your app, or ran out
no_call, call_ended, answered_elsewhereanswered too late, or on another device
not_connectedfrom add(): the call is not up yet
already_inthe person added is in the group call already
ringingsomeone else in the call rings that person in now. The group call invite event has their ring
not_a_callgroup.add() in a group call your server names: only the group call that comes from a call rings people in
no_minutesfrom joining a group call above the people your plan includes unmetered, once the credits of your account, those you bought and a month of borrowing are used. Those within the unmetered number still join, those in a call stay, and someone who was in it comes back (limits)
over_capacityfrom joining a group call: your account is at a cap on people or group calls at once that support set by hand. An account has none unless one was asked for
encryption_unsupported, no_encryption_workerthe group call is encrypted end to end and this browser cannot encrypt each frame, or its worker is not served
auth_failed, no_authyour calls route did not answer, or the page has none
no_rooms_script, rooms_script_failed, rooms_script_brokenthe room client is not served, or did not load
signaling_unavailablethe page connection was down
no_webrtcrt.calls() in React Native, which has no calls in this version: call from the website, or open the page with the call in a web view (React Native)

A host acting in a group call (group.moderate()) gets forbidden when the rule does not make them its host, and not_moderated in a group call a call went on as. A group call says publish_failed and encryption_failed on its error event, and calls says room_failed on its own for a group call whose media did not connect (browser reference).

Live streams​

Joining​

calls.stream() rejecting, and the error of a stream ({ code } of its error event, snapshot().error):

CodeWhy
forbiddenyour streams() rule said no, or no pattern matches the name
no_useryour rule gave a visitor who is not signed in more than the place of a viewer
bad_requestnot a stream name: up to 128 of A-Z a-z 0-9 - = @ , . ; :, no underscore
auth_failed, no_authyour calls route did not answer, or the page has none
bad_grant, expiredthe grant was not signed with your app secret, or ran out, or was signed before your server disconnected the user. The page asks your route for a new one as each runs out
not_licensedWordPlus Cloud does not know the app key
not_includedthe plan of your app does not include live streams
wrong_originthe page is not on one of the app addresses
bannedthis user is banned from the stream
kickeda moderator, or your server, put this user out of the stream. They may join again
no_hoursa new viewer above the unmetered ones, once the credits of your account, those you bought and a month of borrowing are used. Those watching go on, and someone signed in who was just watching comes back after a reload (limits)
rateover 120 visitors who are not signed in joined the stream from one address in a minute
serverthe stream did not answer: try again

Its actions​

Each action of a Stream rejects with:

CodeWhy
not_hostan action of its host from someone who is not: goLive(), end(), invite(), unstage() of someone else, layout(), ingest()
not_modkeeping the chat, kick() or ban() from someone who neither hosts it nor keeps its chat
read_onlychat.send() from someone your rule gave chat: 'read'
empty, too_longa message with no text, or over 500 characters
not_live, endeda message while the chat is closed: before the stream goes live where its settings say offline: 'closed', or after it ended. Those who keep the chat always write
linksa link from someone who does not keep the chat, where its settings say links: false
slowa second message within a second, or within the seconds of slow mode. Those who keep the chat are never held back
timeoutthis user may not write until until (ms), after a timeout. Also an action WordPlus Cloud did not answer within 8 seconds
banneda message from someone banned meanwhile
anonymousa hand raised, or an invitation, for a visitor who is not signed in
not_viewerhand() from its host or a guest
no_stagea hand or an invitation in a stream whose settings say stage: false
not_invitedjoinStage() with no invitation
devicesjoinStage() where the camera or the microphone did not open
publish_failedthe picture or the sound of this page did not go out
no_encodergoLive() after ingest() before the OBS picture arrived
selfa timeout, a kick or a ban of oneself
hosta timeout, a kick or a ban of one of its hosts
bad_secondsa timeout outside a minute to a day, or slow mode over 300 seconds
not_foundchat.pin() of a message the chat no longer has
bad_identity, bad_id, bad_layout, bad_cornera user, a message, a layout or a place of the camera over a shared screen that WordPlus Cloud does not take
offlinethe chat of the page is not connected now
serverWordPlus Cloud could not do it

From your server​

RealtimeError from stream( name ):

CodeWhy
bad_requestnot a stream name, a user id it does not take, or slow mode over 300 seconds
bad_name, bad_avatarsay() with no name, or a picture that is not an https:// address of up to 512 characters
empty, too_longsay() with no text, or over 500 characters
bad_secondsa timeout outside 60 to 86,400 seconds
hosttimeout(), kick() or ban() of one of its hosts, who is never put out or timed out
not_foundpin() of a message the chat no longer has
not_includedthe plan of your app does not include live streams