Error codes
Typed errors on the stream and what to do about them.
Errors arrive as a typed error event with a retryable flag; the SDK maps each to a themed state. HTTP-level failures before the stream opens use the same codes in a JSON body.
| Code | Meaning | What to do |
|---|---|---|
invalid_key | Unknown or revoked publishable key | Check the key and environment. A key that is not rd_pk_… (or nc_pk_…, from before the rename) disables Rendel at init, and RendelLauncher renders nothing while it is uninitialised. A well-formed key the server does not know hides the launcher too, once the config is read, and the reason is logged; your users never see this error. |
quota_exceeded | The organization's generated screens for the month are used, its spending cap is reached and set to pause, the person has reached their usage limit, a test key has used the month's test conversations, or the app is suspended | Buy extra screens or change plan under Organization settings › Plan & billing in the console, or raise the spending cap. A person's limit lifts when their day or month turns. A build that declares notices is sent a calm notice instead, except for the test key's. See Rate limits and caps. |
rate_limited | Too many questions from one device in a minute, the app's questions for the day, its daily model budget, or a question that took too many rounds of actions | Back off and ask again later. Per-app limits are raised on request. |
model_busy | Upstream model briefly over capacity, or an answer that stalled or ran out of time; the message says which | Retry with backoff. The answer page shows a one-tap Retry; nothing is re-sent automatically. |
manifest_unknown | Server has not seen this manifest hash | Call Rendel.registerAction again, or restart the app, to re-sync the manifest. |
upgrade_required | This build is below the minimum SDK version the server will serve | Tell the user to update the app. The floor is empty by default and stays empty unless a protocol break makes an old client actively wrong; see Changelog and versioning. |
| (device-side) | Anything the SDK could not tell you on the wire | Pass RendelConfig(onLog: ...) and every handler failure, handler timeout, context-provider timeout, manifest rejection and transport error arrives as an RendelLogRecord with a stable code. Point it at your crash reporter. |
invalid_request | Malformed request. On the stream, also a selection that no longer fits its block (already answered, or replaced by a newer revision), or a turn from an app that requires a verified signed-in user. On /v1/identify (HTTP 403), a refused verification. | For a malformed body, check your client. For a stale selection, the user picks again from the latest block. For sign-in, send user with a valid hmac. For identify, check the HMAC is a lowercase hex HMAC_SHA256(userId, secret). |
internal | Unexpected server error | Retry; persistent failures show a themed unavailable state. |
A retry resends the original request unchanged, turn_id included, so the server recognises it and neither writes the user's message twice nor bills for it twice. A dropped stream surfaces as a retryable error with a one-tap Retry,
and any block the server announced but never completed settles to its fallback_text rather than pulsing forever. A turn that connects and then stalls is abandoned after RendelConfig.streamIdleTimeout (45 seconds by default) so the composer is never left disabled. A turn that connects, completes and produces no blocks at all is reported the same way ("No answer came back. Try again."), because a blank answer page is indistinguishable from one still thinking. There is no gap detection: a frame the SDK cannot parse is skipped and nothing re-fetches it, so history convergence is not automatic yet.
HTTP-only codes
These never arrive on the stream. They come back as the JSON body of a refused request, before any turn starts.
| Code | Status | Meaning |
|---|---|---|
app_suspended | 403 | The app is suspended. Sent by config, logo, launcher icon and uploads; chat, confirm, edit, undo and pairing say quota_exceeded instead. |
origin_not_allowed | 403 | A browser on a domain not listed under Settings › Security › Allowed domains. A test key also answers on localhost. The web SDK hides the launcher and logs the server's sentence; a visitor never reads it. |
unsupported_media_type | 415 | An upload of a type the model cannot read. |
payload_too_large | 413 | An upload over 20 MB. |
upload_failed | 502 | Storage refused the upload. Retry. |
uploads_unavailable | 503 | Uploads cannot be served right now. |
no_logo | 404 | GET /v1/apps/logo: the config names no logo. |
logo_unavailable | 503 | GET /v1/apps/logo: the logo cannot be served right now. |
no_launcher_icon | 404 | GET /v1/apps/launcher-icon: the config names no launcher icon. The SDK draws its own. |
launcher_icon_unavailable | 503 | GET /v1/apps/launcher-icon: the icon cannot be served right now. |
launcher_snapshot_failed | 502 | POST /v1/apps/launcher-snapshot: storage did not take the picture. The SDK sends it again on a later launch. |
launcher_snapshot_unavailable | 503 | POST /v1/apps/launcher-snapshot: pictures cannot be stored right now. |
invalid_params | 422 | POST /v1/invocations/:id/edit: a changed value fails the action's checks. fields names each one. |
support_unavailable | 409 | /v1/support/*: Support is off for this app. The person still has your contact channels. |
contact_required | 409 | POST /v1/support/threads/:id/messages: this person can be reached no other way, so the conversation needs an email address before their next message. |
too_many_changes | 409 | POST /v1/support/threads/:id/contact: the address of this conversation has been changed too many times. |
suppressed | 409 | POST /v1/support/threads/:id/contact: the owner of this address asked not to get these emails. |
invalid_signature | 401 | POST /v1/goals: the signature does not match, or the timestamp is missing or more than 300 seconds off. |
no_identity_secret | 409 | POST /v1/goals: the app has no identity secret yet. |
not_found | 404 | A memory note, a follow-up or a speech token that does not exist, is not this device's person's, or has expired. |
voice_off | 404 | GET /v1/speech/:token: the app's voice was turned off after the answer was written. |
pairing_test_only | 403 | POST /v1/pairings/claim on a live key. |
pairing_not_found | 404 | POST /v1/pairings/claim with a wrong, used or expired code. |
The request id
Every turn carries one. It arrives on turn.start as request_id, comes back on the response as the X-Request-Id header, and prefixes every server log line for that turn. The SDK holds the most recent one on the controller and includes it in the records it sends to RendelConfig.onLog, so a crash report already carries it.
It resolves to one turn: what was asked, what was rendered, which actions ran and what the server was doing at the time. Paste it into ⌘K, or into the search on Conversations › People, and you find that conversation yourself; send it to us and we see the same one. If your own stack already traces requests, send X-Request-Id on the chat call and we will use yours instead of minting one.