Skip to content

Errors ​

This guide covers every error code:

  • Error Format
  • Container Errors
  • Router Errors
  • WebSocket Errors
  • Pipeline Errors
  • HTTP Errors
  • Session Errors
  • Application Errors
  • Console Errors
  • Scheduler Errors
  • Event Errors
  • RPC and GraphQL Errors
  • HTTP Client Errors
  • Archive Errors
  • Atlas Errors
  • Atom Errors
  • Aurora Errors
  • Bay Errors
  • Blackhole Errors
  • Chronos Errors
  • Comet Errors
  • Echo Errors
  • Eclipse Errors
  • Eon Errors
  • Ephemeris Errors
  • Flare Errors
  • Goldstone Errors
  • Helix Errors
  • Helix Plugin Errors
  • Inker Errors
  • Lumen Errors
  • Nebula Errors
  • Neutrino Errors
  • Nova Errors
  • Orbit Errors
  • Orbit Clipboard Errors
  • Orbit Secure Store Errors
  • Parsec Errors
  • Photon Errors
  • Prism Errors
  • Quasar Errors
  • Ream MCP Errors
  • Relay Errors
  • Robledo Errors
  • Rosetta Errors
  • Rover Errors
  • Rune Errors
  • Sigil Errors
  • Spectrum Errors
  • Station Errors
  • Transit Errors
  • Vellum Errors
  • Visa Errors
  • Warden Errors

Every framework error carries a stable code that starts with E_. A package's own codes add the package name (E_ATLAS_EMPTY_SELECT, E_WARDEN_MFA_REQUIRED); a few shared identifiers keep a plain form (E_ROW_NOT_FOUND, E_UNAUTHORIZED_ACCESS, E_VALIDATION_ERROR). Search for the code below: each one has its own anchor, the code in lower case with - for _ (#e-atlas-empty-select), and that is where an error's docsUrl points.

The codes of @c9up/ream itself come first, then each package's, in alphabetical order. The HTTP column gives the status the error answers with; — means it is not an HTTP answer but an error raised to the caller (configuration, programming or runtime).

Error Format ​

Errors raised by the framework core print a diagnostic box in development:

┌──────────────────────────────────────────────┐
│ [E_CONTAINER_NOT_FOUND] No binding found for 'mailer'. Did you mean 'mail'?
│
│ Hint: Register it with container.singleton() or decorate with @inject().
│ Docs: https://reamjs.com/en/reference/errors#e-container-not-found
└──────────────────────────────────────────────┘

An error raised inside the request pipeline adds a Pipeline: <n>/<total> (<stage>) line. In production mode, only the code and message are shown.

An HTTP error answers with { "error": { "code": "…", "message": "…" } } and the error's status.

Container Errors ​

CodeHTTPDescription
E_CONTAINER_NOT_FOUND500No binding found for the requested token. Includes "did you mean?" suggestions for typos. Register it with container.singleton() or decorate the class with @inject().
E_CIRCULAR_DEPENDENCY500Circular dependency (or circular alias) detected during resolution. Use explicit factories or decouple via events.
E_CONTAINER_MISSING_METADATA500A class declares constructor parameters but the container finds no dependency metadata for them. Enable decorator metadata, annotate the parameters with @inject(), or declare static containerInjections.
E_CONTAINER_RESERVED_TOKEN500The token name reads as an Object.prototype key (constructor, __proto__…). Pick another name.
E_CONTAINER_MISSING_ASKS_FOR500container.when(...).provide() was called before asksFor(): the contextual binding does not say which dependency it replaces.
E_CONTAINER_METHOD_NOT_CALLABLE500container.call() named a member of the instance that is not a method.
E_CONTAINER_INVALID_DECORATOR_TARGET500@Service() or @inject() was put on something that is not a class (or, for @inject(), one of its methods).

Router Errors ​

CodeHTTPDescription
E_ROUTE_NOT_FOUND404No route matches the requested method and path. The message is Cannot GET:/path.
E_DUPLICATE_ROUTE500Two routes declare the same method and path.
E_DUPLICATE_ROUTE_NAME500Two routes carry the same name.
E_MISSING_ROUTE_NAME500A named group prefixes a route that has no name of its own. Name every route of a named group.
E_INVALID_ROUTE_DOMAIN500A route domain has a parameter without a name, or the same parameter twice.
E_UNREGISTERED_CONTROLLER500A route names a controller by string that is not registered.
E_NO_VIEW_ENGINE500router.on(path).render() was used and no template engine is installed.
E_VALIDATOR_NOT_FOUND500A route names a validator that is not registered.
E_INVALID_CONTROLLER_REFERENCE500A route handler string is not of the form 'Controller.method'.
E_INVALID_RESOURCE_NAME500router.resource() was given an empty name.
E_CONTROLLER_METHOD_NOT_FOUND500The controller a route names has no such method. Answered with 500.
E_MISSING_ROUTE_PARAMS500A URL was built for a route without one of its required parameters.
E_CANNOT_LOOKUP_ROUTE500urlFor(), findOrFail() or the test client's visit() named a route that does not exist.
E_EMPTY_GATE_REQUIREMENT500.guard(), .role() or .permission() was called with nothing, or a route group, an RPC group, config/rpc.ts, config/openapi.ts or a GraphQL resolver was given an empty guards, roles or permissions list. An empty requirement would protect nothing. Raised where the route, method or resolver is declared; for a controller action whose @Role(), @Permission() or @Guard() names nothing, on each request to it.

WebSocket Errors ​

CodeHTTPDescription
E_WEBSOCKET_UPGRADE_REQUIRED426A plain request reached a WebSocket route.
E_WEBSOCKET_UNSUPPORTED501A WebSocket route was reached on a server that cannot hold WebSockets.
E_WEBSOCKET_BAD_HANDSHAKE400The handshake is not an HTTP/1.1 GET, lacks Connection: upgrade, or its Sec-WebSocket-Key is not 16 bytes. Answered by the server, before routing.
E_WEBSOCKET_VERSION426A WebSocket version other than 13. Answered with Sec-WebSocket-Version: 13, before routing.
E_WEBSOCKET_ORIGIN403A browser origin that http.webSocket.allowedOrigins does not allow (same origin by default). Answered before routing.
E_WEBSOCKET_PROTOCOL500socket.acceptProtocol() named a subprotocol the client did not offer.
E_WEBSOCKET_NOT_REGISTERED500A response was 101 without a registered socket.
E_WEBSOCKET_NOT_UPGRADE500A 101 answered a request that was not a WebSocket handshake.
E_WEBSOCKET_REGISTER500The native server refused a fresh socket id.
E_WEBSOCKET_CONTEXT500A WebSocket route's handler ran without its socket (called outside the kernel).
E_WEBSOCKET_CLOSE_CODE500socket.close() with a code a close frame may not carry (RFC 6455 §7.4).
E_WEBSOCKET_CLOSE_REASON500A close reason over 123 bytes.
E_INVALID_WEBSOCKET_CONFIG500A native WebSocket limit of 0 bytes.
E_TEST_CLIENT_WEBSOCKET_REFUSED500The test client's WebSocket handshake was refused (WebSocketRefused carries the status) or failed.

Pipeline Errors ​

CodeHTTPDescription
E_PIPELINE_UNKNOWN_MIDDLEWARE500A route references a named middleware that is not registered. Register it with middleware.register().
E_MIDDLEWARE_NOT_FOUND500A route, an RPC method or a GraphQL resolver names a middleware nothing declared. Declare it with router.named() (or middleware.register()). An HTTP route's names are checked when the kernel is built: the application stops at boot, and the message names the route.
E_MIDDLEWARE_ENTRY500A middleware entry with no declared parameters was read as a lazy import, and it did not resolve to a module with a default export.
E_PIPELINE_DOUBLE_NEXT500A middleware called next() more than once. Each middleware should call next() at most once.
E_PIPELINE_ERROR500A handler threw an error that carries no framework code. The error keeps the stage position in its context.
E_VALIDATOR_UNUSABLE500A route validator exposes none of validateResultAsync(), validateResult() or validate().

HTTP Errors ​

Raised by @c9up/ream's exceptions and its native HTTP server. The server's own refusals are answered before any middleware runs.

CodeHTTPDescription
E_UNKNOWN500The default code of an Exception that sets none, and of an error rebuilt from the native layer without a code.
E_HTTP_EXCEPTION500A generic HTTP error carrying the response body. E_HTTP_EXCEPTION.invoke(body, status, code?) builds one: the message is a string body, or the message of an object body.
E_HTTP_REQUEST_ABORTED400The class response.abort() (or abortIf / abortUnless) throws; the body given is sent with the status given, 400 by default. It extends E_HTTP_EXCEPTION and carries its code.
E_VALIDATION_ERROR422The request data failed validation. The message is Validation failure, messages carries one entry per field and rule; a browser form is redirected back with the errors flashed.
E_REQUEST_ENTITY_TOO_LARGE413The request body is over the body parser's limit. Reading the raw body of such a request raises it too.
E_HANDLER_FAILURE500The exception handler itself threw while rendering an error.
E_HTTP_CONTEXT_NOT_FOUND500HttpContext.getOrFail() was called outside a request, or with ambient-context tracking turned off. Pass ctx explicitly.
E_RESPONSE_TOO_LARGE500A response body is over the configured ceiling. Bodies are held whole in memory, so a large file should be streamed or served from storage.
E_BODYPARSER_CONFIG500The body parser config uses an option that is no longer supported.
E_BODYPARSER_INVALID_SIZE500A body size limit is neither a number of bytes nor a size such as '1mb'.
E_BODYPARSER_INVALID_JSON400A JSON body is malformed (400), or under json.strict is neither an object nor an array (422).
E_HTTP_REQUEST_TIMEOUT408The native server did not receive the request body in time.
E_REQUEST_ABORTED400The client closed the connection while the body was being read.
E_PATH_TRAVERSAL400The native server found .. in the path, raw or percent-encoded.
E_PARAMETER_POLLUTION400The native server found a query-string key twice.
E_TOO_MANY_REQUESTS429The native server's rate limit refused the request; the body carries retryAfter, with Retry-After and X-RateLimit-* headers.
E_STREAM_UNKNOWN500A server-sent event stream id is unknown to the server.
E_RESPONSE_INVALID_HEADER500A header name or value carries CR, LF or NUL, which would split the response.
E_RESPONSE_INVALID_COOKIE500A cookie a browser would reject or misread: a name outside the cookie token grammar, a path or domain outside the attribute grammar, sameSite: true, SameSite=None or partitioned without secure, an invalid expires date, or an http.cookie block with an unknown key or a value of the wrong type.
E_RESPONSE_NO_CONTEXT500response.redirect() on a response built outside a request.
E_RESPONSE_SSE_UNSUPPORTED500response.sse() on a server that has no stream backend.
E_REDIRECT_NO_ROUTER500redirect().toRoute() with no route URL resolver wired.
E_STREAM_REGISTER500The server refused a fresh server-sent event stream id.
E_MULTIPART_UNSAFE_FILE_NAME500file.move() was given, or derived from the client's file name, a name that is not a plain file name.
E_MULTIPART_FILE_EXISTS500file.move() found a file at the destination and overwrite is off.
E_TEST_CLIENT_NO_ROUTE_MANIFEST500The test client's visit() needs routes: router.namedManifest() in the client options.
E_TEST_CLIENT_TIMEOUT500A test client request, or a test WebSocket message, did not arrive within its timeout.
E_TEST_CLIENT_MISSING_CSRF_TOKEN500withCsrf() was called with no token and no CSRF cookie set.
E_TEST_CLIENT_NO_AUTH_STRATEGY500withAuth() or asUser() was used without an auth strategy in the client options.
E_TEST_CLIENT_NO_SESSION_SEEDER500loginAs() with a session guard, and no sessionSeeder in the client options.
E_TEST_CLIENT_UNKNOWN_SERIALIZER500serialize() named a serializer that is not registered.
E_TEST_CLIENT_ASSERTION_FAILED500An assertion of the test client's response failed
E_UNAUTHORIZED_ACCESS403A route's .auth() guard refused the request, or .role() / .permission() found no authenticated user. The same code, status, message (Unauthorized access) and rendering (handle) as @c9up/warden's.
E_AUTHORIZATION_FAILURE403A route's .role() or .permission() refused an authenticated user. The same code, status, message (Access denied) and rendering (handle) as @c9up/warden's; the roles and permissions asked for are not sent.
E_ENCODING_UNSUPPORTED415A JSON, form or text body arrives with a Content-Encoding other than identity. The body parser does not inflate bodies, gzip and deflate included.
E_INVALID_MULTIPART_REQUEST400A multipart/form-data body is malformed, or its boundary parameter is missing.
E_SERVER_INVALID_PORT500The native server was given a port above 65535.
E_SERVER_INVALID_HOST500The native server's bind address is not an IPv4 or IPv6 address, nor localhost.
E_SERVER_INVALID_TRUSTED_PROXY500A trustedProxies() entry is not an address, a CIDR range, a netmask range, a named range or *. The server refuses to start.
E_SERVER_INVALID_BODY_LIMIT500A body limit handed to the native server is not a byte count or a part count of zero or more.
E_SERVER_BIND_FAILED500The native server could not bind its address: the port is taken, or the address is not on this machine.
E_SERVER_NO_HANDLER500The native server was started before a request handler was registered.
E_SERVER_NOT_STARTED500The native server's port was read before the server started.
E_SERVER_LOCK_POISONED500A lock of the native server was left poisoned by a panic. This is a bug in Ream.
E_CRYPTO_FAILED500A native crypto call (hmacSign(), randomHex()…) failed in the engine.
E_WARDEN_MFA_REQUIRED403The route gate reached a controller action carrying @RequireMfa() with a credential that did not complete the MFA step-up (ctx.auth.user.mfa is not true). The same code, status, message and body as @c9up/warden's middleware: 403 { error: { code, message } }.

Session Errors ​

CodeHTTPDescription
E_SESSION_NOT_READY500session.<method>() needs a session store, and this session was built without one.
E_SESSION_STORE_NOT_CONFIGURED500The session config names no store. Set store, or store: 'memory' for sessions kept in this process only.
E_SESSION_STORE_NOT_CONDITIONAL500The store has no update(), so it cannot write a session back only while it still exists; a request running across a logout could sign the user in again.
E_SESSION_TAGGING_NOT_SUPPORTED500A session tagging method was called on a store that does not support it. Use the memory, redis or database store.
E_SESSION_COOKIE_NOT_HTTP_ONLY500The session cookie is configured with httpOnly: false. Remove it: a script able to read the cookie turns any XSS into an account takeover.
E_SESSION_TEMPLATE_ENGINE_UNUSABLE500The template engine is installed but the session tags cannot be registered on it.
E_SESSION_MISSING_SECRET500The cookie session store has no secret.
E_SESSION_MISSING_LOCATION500The file session store has no location.
E_SESSION_INVALID_CONNECTION500The database session store's connection lacks query() and execute().
E_SESSION_UNKNOWN_DRIVER500The session config names a driver that does not exist.
E_SESSION_INVALID_GC_PROBABILITY500gcProbability is not a percentage between 0 and 100.
E_SESSION_INVALID_TABLE_NAME500The session table name is not a plain identifier.
E_SESSION_FILE_LOCKED500Another request kept the session file locked longer than the store waits.
E_SESSION_QUASAR_MISSING500A Redis session store names a quasar connection and @c9up/quasar is not installed.
E_SESSION_INCOMPLETE_CONNECTION500The quasar connection lacks the commands a session store sends.

Application Errors ​

Raised while the application is assembled, configured and started.

CodeHTTPDescription
E_INVALID_ENV_VARIABLES500Env.create() found environment variables that fail their schema. The message is Validation failed for one or more environment variables; help lists each one on a - line, and failures holds them.
E_REAMRC_UNKNOWN_OPTION500reamrc.ts tests holds an option that does not exist.
E_IGNITOR_ALREADY_STARTED500warmUp() was called while the application was already past that phase.
E_IGNITOR_WARMUP_ONLY500An application assembled with warmUp() was started. Build a fresh Ignitor to run one.
E_IGNITOR_INVALID_PORT500PORT is not an integer between 0 and 65535.
E_IGNITOR_INVALID_HTTP_CONFIG500An http.<key> limit is not a whole number in range.
E_IGNITOR_NO_SERVER_FACTORY500httpServer() was called with no serverFactory in the config.
E_IGNITOR_GRPC_UNSUPPORTED500A gRPC handler is registered, but this server cannot serve gRPC.
E_SERVER_GRPC_ALREADY_SET500A second gRPC handler was registered on the server.
E_SERVER_GRPC_INVALID_LIMIT500A gRPC message size limit is not a whole number of bytes, or -1 for no limit.
E_REAM_STUB_SYNTAX500A stub template has a syntax error.
E_ENV_FILE_NOT_FOUND500A .env value file:<path> names a file that does not exist. The message names the variable and the path.
E_ENV_CIRCULAR_REFERENCE500.env values reference each other in a loop (A=$B, B=$A).
E_IDENTIFIER_ALREADY_DEFINED500Env.defineIdentifier() was given a name already registered (file is built in). Use defineIdentifierIfMissing() or remove the identifier first.
E_APP_MISSING_IMPORTER500app.import() / app.importDefault(id) was called on an application built without an importer.
E_DUMP_DIE_EXCEPTION500dd() stopped the request (answered with an HTML dump) or the command (printed the dump). Never reported.
E_APP_ALREADY_BOOTED500app.setMode() or app.setEnvironment() was called after the application booted.
E_APP_ROOT_NOT_SET500app.makePath() (or another path helper) on an application with no root.
E_APP_MISSING_DEFAULT_EXPORT500A lazily imported module (app.importDefault(), a lazy listener, a route's lazy controller) has no default export.
E_APP_SHUTDOWN_FAILED500Several terminating or shutdown hooks failed; the error holds each failure in errors.
E_SERVICE_NOT_BOOTED500A @c9up/ream/services/* accessor, urlFor() or signedUrlFor() was used before the application booted it.
E_ENV_PATH_NO_FILE500ENV_PATH names a directory that holds none of the .env files.
E_MIGRATION_SOURCE_CONFLICT500Two providers registered a migration source under the same name.
E_INVALID_DURATION500A duration (a session age, a cookie maxAge, a signed URL expiry…) is neither a number nor a string such as '30m'.
E_BASE64_MALFORMED500base64.decode() or base64.urlDecode() in strict mode met a malformed value.
E_HEALTH_INVALID_THRESHOLD500A memory health check threshold is not a byte size, or not a percentage between 0 and 100.
E_REAM_STUB_NOT_FOUND500No stub at the given path.
E_REAM_STUB_UNSAFE_PATH500A stub path, or the destination a stub declares, is absolute or leaves its root, or a generator's destination is a symbolic link leading outside the project or to nothing.
E_REAM_STUB_NO_DESTINATION500A stub declares no destination (no to: front-matter line), or an empty one.
E_REAM_STUB_FORBIDDEN_KEY500A stub template reads or sets a key it may not reach (constructor, __proto__…).
E_REAM_STUB_EVALUATION500A stub template failed while rendering: an unknown name, a property of nothing, a call to what is not a function, {{#each}} over what is not a list.
E_CODEMODS_FILE_NOT_FOUND500A codemod needs reamrc.ts, start/kernel.ts or start/env.ts and the file does not exist.
E_CODEMODS_UNRECOGNIZED_SOURCE500A codemod could not find what it edits in the file (providers: [, defineConfig({ ... }), router.use([, Env.create(...)…). Make the change by hand.
E_CODEMODS_UNSAFE_PATH500A codemod was asked to write outside the project: an absolute path, .., a symlink that resolves outside, or an unsafe module path.
E_CODEMODS_INVALID_OPTION500A codemod option is out of range: a middleware position or tier, a preload environment.
E_CODEMODS_INVALID_ENV_VARIABLE500An environment variable name is not an identifier, or its value holds a line break.
E_CODEMODS_INVALID_ENV_VALIDATION500defineEnvValidations() was given a comment over one line, or a rule that is not one complete expression.
E_CODEMODS_MIDDLEWARE_CONFLICT500A middleware is already registered in the other tier of start/kernel.ts.
E_REAM_INTERNAL500An invariant inside @c9up/ream broke; a bug to report.
E_REAM_NAPI_UNSUPPORTED_PLATFORM500No prebuilt native binary (scheduler, event bus, GraphQL) exists for this platform and architecture.
E_REAM_NAPI_LOAD_FAILED500A native binary of ream exists but cannot be loaded (wrong platform, Node ABI or a corrupt file); cause is the loader's error.
E_REAM_NAPI_NOT_FOUND500A native binary of ream is not found. On Alpine/musl: the prebuilt Linux binaries target glibc.
E_MISSING_ENCRYPTER_KEY500Encryption, a signed cookie or a signed URL was used and APP_KEY is not set. help names what needed it.
E_INSECURE_ENCRYPTER_KEY500APP_KEY is shorter than 16 characters, or is a key known from scaffolding or documentation.
E_MISSING_PROVIDER_FILE500A reamrc.ts providers entry has no file.
E_INVALID_PROVIDER500A reamrc.ts providers entry has a file that is not a function. A provider module with no default export, or whose default export is not a class, raises E_RUNTIME_EXCEPTION.
E_MISSING_PRELOAD_FILE500A reamrc.ts preloads entry has no file.
E_INVALID_PRELOAD_FILE500A reamrc.ts preloads entry has a file that is not a function.
E_NATIVE_CALLBACK_FAILED500A JavaScript callback the native binding could not hold: napi refused to wrap it. napi's own status is in the message.
E_NATIVE_PANIC500A Rust panic in a native binding, caught before it could stop the process. This is a bug in Ream. The scheduler reports it as E_SCHEDULER_NATIVE_ERROR.

Console Errors ​

CodeHTTPDescription
E_CONSOLE_COMMAND_NOT_FOUND500No command has this name.
E_CONSOLE_MISSING_ARGUMENT500A required argument was not given.
E_CONSOLE_MISSING_ARGUMENT_VALUE500An argument was given with no value.
E_CONSOLE_UNEXPECTED_ARGUMENT500More arguments than the command declares.
E_CONSOLE_UNKNOWN_FLAG500A flag the command does not declare.
E_CONSOLE_MISSING_FLAG500A required flag was not given.
E_CONSOLE_MISSING_FLAG_VALUE500A flag that takes a value was given without one.
E_CONSOLE_INVALID_FLAG_VALUE500A flag value of the wrong type.
E_CONSOLE_INVALID_FLAG_GROUP500Short flags were grouped (-abc) with one that cannot be grouped.
E_CONSOLE_NOT_INTERACTIVE500A command asked a question while stdin is not interactive. Pass the value as a flag.
E_CONSOLE_PROMPT_CANCELLED500The user cancelled a prompt.
E_CONSOLE_EMPTY_CHOICES500A choice prompt was asked with no options.
E_CONSOLE_INVALID_TRAP_VALUE500A scripted answer (a prompt trap in a test) was rejected by the prompt's own validation.
E_CONSOLE_TRAP_OUT_OF_RANGE500A prompt trap chose an option that was not offered.
E_CONSOLE_DUPLICATE_COMMAND500Two commands claim the same name.
E_CONSOLE_INVALID_COMMAND500An entry of reamrc.ts commands is neither a command loader nor a default-exported command class.
E_CONSOLE_INVALID_COMMAND_METADATA500A command loader exported metadata that does not describe a command.
E_CONSOLE_INVALID_ARGUMENT500A command declares its arguments in an order that cannot be parsed: an argument after a spread one, or a required one after an optional one.
E_CONSOLE_INVALID_ALIAS500A command alias expands to nothing.
E_CONSOLE_LATE_GLOBAL_FLAG500A global flag was declared after the kernel started.
E_CONSOLE_LATE_LOADER500A command loader was added after the kernel started.
E_CONSOLE_KERNEL_RUNNING500A command is already running through this kernel.
E_CONSOLE_KERNEL_COMPLETED500The kernel has finished; it cannot run another command line.
E_CONSOLE_NOT_BOOTED500A console application method was called before the commands were loaded.
E_CONSOLE_NO_APP500A command needs the application and the kernel has none. Dispatch through the Ignitor's console kernel.
E_CONSOLE_APP_NOT_STARTED500A command used the application without declaring startApp: true in its options.
E_CONSOLE_ASSERTION_FAILED500An assertion on a command run in a test failed (assertSucceeded(), assertLog(), assertTableRows()…).

Scheduler Errors ​

CodeHTTPDescription
E_SCHEDULE_INVALID_CRON500A scheduled task's cron expression could not be registered.
E_SCHEDULE_INVALID_TARGET500@Schedule was put on a static method.
E_SCHEDULE_SYMBOL_METHOD500@Schedule was put on a symbol-keyed method.
E_SCHEDULE_ANONYMOUS_CLASS500An anonymous class declares @Schedule; its task names would collide.
E_SCHEDULE_METHOD_NOT_FOUND500A scheduled method is not callable on the instance the container resolved.
E_SCHEDULE_INVALID_CALLBACK500Scheduler.register() was given something other than a function.
E_SCHEDULE_INVALID_TASK_NAME500Scheduler.register() was given an empty task name.
E_SCHEDULE_INVALID_LOCK_BACKEND500lockBackend does not implement acquire(name, ttlMs) and release(name).
E_SCHEDULE_INVALID_LOCK_TTL500defaultLockTtlMs is not a finite positive number.
E_SCHEDULE_INVALID_EVENT_SINK500eventSink does not implement emit(event).
E_SCHEDULE_INVALID_ERROR_REPORTER500errorReporter is not a function.
E_SCHEDULE_TASK_UNKNOWN500runTaskNow() named a task that is not registered.
E_SCHEDULE_TASK_TIMEOUT500A task did not complete within its timeoutMs; it keeps running in the background.
E_SCHEDULE_PROVIDER_ALREADY_REGISTERED500The scheduler provider was registered twice on the same container.
E_SCHEDULER_NATIVE_ERROR500A call into the native scheduler failed.
E_SCHEDULE_QUASAR_MISSING500The scheduler lock names a quasar connection and @c9up/quasar is not installed.
E_SCHEDULE_INCOMPLETE_CONNECTION500The quasar connection lacks the commands a scheduler lock sends.
E_SCHEDULER_INVALID_CRON500The native scheduler refused a cron expression (Rust INVALID_CRON). help says what a cron expression looks like.
E_SCHEDULER_CRON_NO_FIRE500The native scheduler refused a cron expression that never fires (Rust CRON_NO_FIRE).
E_SCHEDULER_DUPLICATE_TASK500The native scheduler already has a task of that name (Rust DUPLICATE_TASK).

Event Errors ​

CodeHTTPDescription
E_EVENTS_UNSUPPORTED_STORE500config/events.ts names a store other than 'memory', the only one this build has.
E_EVENTS_UNSUPPORTED_OPTION500config/events.ts holds an option nothing reads (retries included), or is not an object.
E_EVENTS_MISSING_LISTENER_METHOD500A listener class has no method of the name the listener was registered with.
E_EVENTS_INVALID_ARGUMENT500onAny() without a listener, or waitForChain() with no event names.
E_EVENTS_ASSERTION_FAILED500An event assertion failed (assertEmitted(), assertNotEmitted(), on the helpers or the FakeBus).
E_EVENTS_TIMEOUT500An awaited event, event chain or fake request reply did not arrive within its timeout.
E_EVENTS_DUPLICATE_REQUEST_HANDLER500FakeBus.onRequest() was given a second handler for the same name.
E_EVENTS_NO_REQUEST_HANDLER500emitter.request() or FakeBus.request() named a request no handler answers.
E_EVENTS_HANDLER_FAILED500A request handler panicked, or refused the request with an error of its own.
E_EVENTS_BUS_FAILED500The native event bus failed: its task panicked or was cancelled, or an event could not be serialized.

RPC and GraphQL Errors ​

CodeHTTPDescription
E_RPC_INVALID_METHOD_NAME500An RPC method name is empty or not a string.
E_RPC_RESERVED_METHOD_NAME500An RPC method takes a reserved name (rpc.*).
E_RPC_UNKNOWN_CONTROLLER_METHOD500An RPC route names a controller method that does not exist.
E_RPC_PROVIDER_ALREADY_REGISTERED500The RPC provider was registered twice on the same container.
E_GRAPHQL_PROVIDER_ALREADY_REGISTERED500The GraphQL provider was registered twice on the same container.
E_GRAPHQL_SCHEMA_NOT_FOUND500The GraphQL schemaPath names a file that does not exist.
E_GRAPHQL_INVALID_SCHEMA500The GraphQL schema does not parse, declares a type twice, or names a type it does not declare. Every query is then refused with GraphQL schema could not be read, and the reason is logged.
E_GRAPHQL_SERIALIZE_FAILED500The native GraphQL parser could not serialize its result.
E_GRAPHQL_INVALID_RESULT500A GraphQL resolver returned a value its field's declared type cannot hold: an object under a String, something that is not a list under [Task], a value of an interface or union whose object type is not known. The field fails; the client reads Internal server error outside debug.

HTTP Client Errors ​

Raised by the outbound HTTP client.

CodeHTTPDescription
E_HTTP_CLIENT_INVALID_URL—The URL cannot be parsed, is not http or https, or carries credentials (send them in a header).
E_HTTP_CLIENT_PRIVATE_ADDRESS—The host is, or resolves to, an address that is not public.
E_HTTP_CLIENT_UNREACHABLE—The host could not be reached.
E_HTTP_CLIENT_TIMED_OUT—The request did not complete within its timeout.
E_HTTP_CLIENT_TOO_LARGE—The response body is over the size limit.
E_HTTP_CLIENT_REDIRECT_REFUSED—A redirect was refused: too many of them, from https to http, or to another host.

Archive Errors ​

Raised by @c9up/archive. The signed-file route answers its refusals as JSON with the status shown.

CodeHTTPDescription
E_ARCHIVE_INVALID_SIGNATURE403The signed URL's signature is missing a part, malformed or does not match.
E_ARCHIVE_EXPIRED_SIGNATURE403The signed URL has expired.
E_ARCHIVE_ACCESS_DENIED403An unsigned request asked for anything but a stored public file: a private file, a name that is not stored, any file of a private disk.
E_ARCHIVE_INVALID_KEY500The signed route refused the path: a key with traversal or characters keys may not hold.
E_ARCHIVE_NOT_FOUND404No file is stored under the key. The signed route answers 404; a driver call throws it.
E_ARCHIVE_PATH_TRAVERSAL_DETECTED500A key resolves outside the disk root.
E_ARCHIVE_INVALID_EXPIRY500A signed URL expiry is not a positive duration (a number of seconds or a string such as '30mins').
E_ARCHIVE_SIGNING_DISABLED500getSignedUrl() was called on a local disk built without a signingSecret.
E_ARCHIVE_WEAK_SIGNING_SECRET500The local disk's signingSecret is shorter than 16 characters.
E_ARCHIVE_SIGNED_UPLOAD_UNSUPPORTED500The local disk has no presigned upload URL; only cloud disks do.
E_ARCHIVE_INVALID_HEADER_VALUE500A value to sign as a response header holds a control character.
E_ARCHIVE_INVALID_ROUTE_BASE_PATH500The local disk's routeBasePath is not an absolute URL path such as /storage.
E_ARCHIVE_PREFIX_MISMATCH500createSignedRouteHandler() was given a prefix that differs from the disk's routeBasePath, so no signed URL could reach it.
E_ARCHIVE_VISIBILITY_CORRUPT500A file's visibility record cannot be read; archive refuses to treat the file as public.
E_ARCHIVE_VISIBILITY_MOVE_FAILED500move() moved the file but could not write its visibility at the target.
E_ARCHIVE_INVALID_MOVE_OPTIONS500moveToDisk() was given options it cannot use.
E_ARCHIVE_MULTIPART_NOT_MACROABLE500The installed @c9up/ream has no macroable MultipartFile, so uploads cannot be given moveToDisk().
E_ARCHIVE_REQUEST_TIMEOUT500The storage provider did not answer, or stalled while its body was read, within the idle timeout.
E_ARCHIVE_UNEXPECTED_RESPONSE500The storage provider answered with something archive cannot use.
E_ARCHIVE_UNKNOWN_DISK500A disk name, or the default disk, is not in the config.
E_ARCHIVE_INVALID_DRIVER500config.driver is not 'local', 's3' or 'gcs'.
E_ARCHIVE_CONFIG_MISSING500The driver is s3 or gcs and its config section is missing.
E_ARCHIVE_PROVIDER_NOT_REGISTERED500ArchiveProvider.boot() ran before register().
E_ARCHIVE_TEMPLATE_ENGINE500The app renders with inker, but the template helpers cannot be published on it.
E_ARCHIVE_REMOTE_FAILED500S3 or GCS refused a request or reported a failure. The provider's HTTP status is in providerStatus.
E_ARCHIVE_INVALID_DRIVER_CONFIG500S3Driver got neither region nor endpoint, GcsDriver lacks bucket or the service account's client_email / private_key, or a local disk's visibility is neither 'public' nor 'private'.
E_ARCHIVE_CONTENT_LENGTH_EXCEEDED500putStream() read more bytes than its declared contentLength.
E_ARCHIVE_INVALID_STATIC_PREFIX500StaticMiddleware was given an empty prefix.
E_ARCHIVE_NOT_BOOTED500The storage service was read before ArchiveProvider booted.
E_ARCHIVE_INVALID_PREDICATE500A storage fake assertion got an empty contentContaining, which would match every file.
E_ARCHIVE_INTERNAL500An internal invariant of archive broke: a bug in the package.
E_UNALLOWED_CHARACTERS500A key holds a control character, a backslash or an encoded separator.
E_PATH_TRAVERSAL_DETECTED500A key has a dot-only segment such as .., plain or percent-encoded.
E_INVALID_KEY500A key is empty, or only separators, once normalised.
E_CANNOT_WRITE_FILE500A disk's put, putStream, copyFromFs or moveFromFs could not write the file; the driver's error is the cause.
E_CANNOT_READ_FILE500A disk's get, getBytes, getArrayBuffer or getStream could not read the file, an absent one included (cause: E_ARCHIVE_NOT_FOUND); get answers null for an absent file instead.
E_CANNOT_DELETE_FILE500A disk's delete failed; the driver's error is the cause.
E_CANNOT_DELETE_DIRECTORY500A disk's deleteAll failed; the driver's error is the cause.
E_CANNOT_COPY_FILE500A disk's copy failed, a missing source included; the driver's error is the cause.
E_CANNOT_MOVE_FILE500A disk's move failed, a missing source included; the driver's error is the cause.
E_CANNOT_CHECK_FILE_EXISTENCE500A disk's exists could not tell; an absent file answers false instead.
E_CANNOT_GET_METADATA500A disk's getMetadata / getMetaData or getVisibility failed, an absent file included (cause: E_ARCHIVE_NOT_FOUND).
E_CANNOT_SET_VISIBILITY500A disk's setVisibility failed; the driver's error is the cause.
E_CANNOT_GENERATE_URL500A disk's url / getUrl, publicUrl, getSignedUrl or getSignedUploadUrl could not build the URL (cause: E_ARCHIVE_SIGNING_DISABLED, E_ARCHIVE_SIGNED_UPLOAD_UNSUPPORTED, E_ARCHIVE_INVALID_EXPIRY, …).
E_CANNOT_SERVE_FILE500The archive signed-URL route could not serve a file for a reason other than its absence (which answers 404); the failure is the cause.

Atlas Errors ​

Each code is a class of atlas's errors namespace, named like the code. See Atlas error handling for the classes that carry data. The Rust query compiler's and driver's own refusals (E_UNSAFE_*, E_INJECTION_PATTERN, E_UNSUPPORTED…) are rethrown as their class too, with error.code set and the native error as cause.

CodeHTTPDescription
E_ROW_NOT_FOUND404A query that must return a row found none: findOrFail, findByOrFail, refresh, fresh, firstOrFail(), sole().
E_MASS_ASSIGNMENT500fill() / merge() (and create, createMany, updateOrCreate) set an attribute outside fillable, or listed in guarded.
E_EXTRA_PROPERTIES500A fill named a property that is not a declared column.
E_UNKNOWN_COLUMN500A value was assigned to a key that is not a column. Pass { allowExtraProperties: true } to keep unknown keys in $extras.
E_INVALID_COLUMN500A query names a column the entity does not declare.
E_INVALID_FIND_VALUE500find() was called without a usable primary key value.
E_MODEL_NOT_PERSISTED500An operation that needs a stored row (delete(), refresh(), load*()…) ran on a local instance.
E_MISSING_PRIMARY_KEY500The same operation ran on a persisted projection that holds no primary key.
E_MODEL_DELETED500save() was called on a deleted instance.
E_MISSING_OWNER_KEY500associate() was given a parent whose key is not set.
E_RELATION_NOT_LOADED500A relation was read before it was loaded. Call .preload() on the query or .load() on the instance.
E_OPTIMISTIC_LOCK500A save lost an optimistic lock: another transaction modified the row since it was read.
E_STRICT_MODE500Raw SQL refused by strict mode: a repository's raw(), a db.raw() value written by a repository, or whereRaw(), havingRaw(), joinRaw().
E_NO_INTERACTIVE_TRANSACTION500The connection has no interactive transaction() (a model transaction, or useTransaction() in tests).
E_ARRAY_PARAM—A list was bound to a single placeholder. Expand it into one placeholder per element.
E_ATLAS_MISSING_CONNECTION500No connection to use at all: no default one (atlas has not booted), a default the config does not declare, or a repository built without a connection.
E_ATLAS_EMPTY_SELECT500select() was called with no columns. Provide at least one column name.
E_ATLAS_INVALID_PAGE500paginate() was called with page < 1.
E_ATLAS_INVALID_PER_PAGE500paginate() was called with perPage < 1.
E_ATLAS_INVALID_PAGINATION500A page, page size or row count that is not a finite, non-negative integer.
E_ATLAS_INVALID_CTE_NAME500A CTE name must be a valid identifier (letters, numbers, underscores).
E_ATLAS_INVALID_OPERATOR500A where() or wherePivot() operator outside the allowed list.
E_ATLAS_INVALID_INCREMENT500increment() / decrement() was given an amount that is not a finite number.
E_ATLAS_UNDEFINED_BINDING500A query value is undefined. Validate the input first; use whereNull() to match NULL.
E_ATLAS_DIALECT_MISMATCH500useTransaction(trx) was given a transaction of another dialect than the query was built for. Start the transaction on the query's connection, or build the query from the transaction.
E_ATLAS_RAW_BINDINGS500A raw fragment's placeholders and bindings do not match: a placeholder with no binding, a binding no placeholder uses, ? mixed with $N or with named bindings, or a ?? binding that is not a string.
E_ATLAS_RAW_VALUE500A db.raw() was used where it cannot go: defaultTo(db.raw()) with bindings, or a raw value compared with an operator that takes none (IS NULL, BETWEEN).
E_ATLAS_NON_FINITE_NUMBER500defaultTo() was given a number that is not a SQL number (NaN, Infinity).
E_ATLAS_FACTORY_FAKER_MISSING500A factory uses faker, an optional peer of atlas that is not installed.
E_ATLAS_FACTORY_INVALID500make:factory got a model name that would leave the factories folder (a path separator, a quote, a backtick or ..).
E_ATLAS_SEEDER_INVALID500make:seeder got a name that would leave the seeders folder (a path separator, a quote, a backtick or ..).
E_ATLAS_NAPI_NOT_FOUND500The Rust query compiler is not loaded: the native package for your platform is missing. See Troubleshooting.
E_ATLAS_INSECURE_SSLMODE500The connection asks for sslmode=prefer or allow (URL or PGSSLMODE), which fall back to plaintext without saying so. Use disable or verify-full. See Encrypted connections.
E_ATLAS_LISTEN_UNSUPPORTED500LISTEN / NOTIFY was used on a connection that is not PostgreSQL.
E_ATLAS_LISTEN_CONNECT500The listener could not open its own PostgreSQL connection.
E_ATLAS_LISTEN_CONNECTION500The listener's connection failed; every subscription is told.
E_ATLAS_LISTEN_CHANNEL500A LISTEN channel name is empty, longer than 63 bytes, or holds a NUL.
E_ATLAS_LISTEN_CLOSED500The listener was closed while a request was pending.
E_ATLAS_LISTEN_EVENT500The native listener reported an event atlas does not define.
E_ATLAS_MIGRATION_INVALID_TABLE_NAME500migrations.tableName is not a plain identifier.
E_ATLAS_MIGRATION_INVALID500A migration file does not default-export a class.
E_ATLAS_MIGRATION_DUPLICATE500Two migration files share a name.
E_ATLAS_MIGRATION_COMPILE_EMPTY500A migration compiled to no SQL statement.
E_ROLLBACK_DISABLED_IN_PRODUCTION500A rollback, reset, refresh, fresh or wipe in production without --force.
E_ATLAS_DRY_RUN_WRITE500A migration tried to write while running under dryRun().
E_DEFER_REQUIRES_TRANSACTION500A migration uses this.defer() on an adapter without an interactive transaction().
E_MYSQL_FK_REQUIRES_TRANSACTION500Suspending MySQL foreign-key checks needs an interactive transaction() to restore them.
E_SCHEMA_DUMP_DIALECT_MISMATCH500The schema dump was made for another dialect.
E_SCHEMA_DUMP_TABLE_MISMATCH500The schema dump uses another migrations tracking table.
E_SEEDER_DIR_NOT_FOUND500The seeders directory does not exist.
E_SEEDER_INVALID500A seeder file does not export a seeder class.
E_SEEDER_INVALID_PATH500A seeder path resolves outside the seeders directory.
E_NO_CONNECTION500schema.<method>() needs a live connection; it is available inside a migration, not on a standalone Schema.
E_ALTER_EMPTY500schema.alterTable() declared no operation.
E_ALTER_MISUSE500.alter() does not follow a column definition, or an alter-only method was used on a new table.
E_CHECK_EMPTY500A check constraint (or checkBetween) was given no value or interval.
E_CHECK_RANGE500checkBetween was given an interval that is not [min, max].
E_CONSTRAINT_EMPTY500A constraint lists no columns.
E_ENUM_EMPTY500An enum column declares no values.
E_EMPTY_VIEW_SELECT500A view has no SELECT, or a materialized view was asked of a dialect that has none.
E_SPECIFIC_TYPE_EMPTY500specificType() was given an empty type.
E_SQLITE_DECIMAL_PRECISION500A decimal precision SQLite cannot store exactly.
E_UNSUPPORTED500A SQL feature the connection's dialect does not have (DISTINCT ON off Postgres, UNION ALL variants on SQLite, advisory locks on SQLite…).
E_UNSAFE_IDENTIFIER500An identifier (table, column, alias) is not a plain SQL name. Atlas checks it before compiling, and the Rust compiler checks it again.
E_UNSAFE_SQL500The Rust compiler refused a SQL fragment, or a keyword outside its allowed list (set operation, ORDER BY direction, lock mode, referential action…).
E_UNSAFE_EXPRESSION500The Rust compiler refused an expression.
E_UNSAFE_LITERAL500The Rust compiler refused a literal value.
E_INJECTION_PATTERN500The Rust compiler refused an input that looks like an injection attempt.
E_ATLAS_NO_URL500A connection config has no url (or connection), or the database config has neither a top-level url nor connections.
E_ATLAS_NOT_BOOTED500The db service (@c9up/atlas/services/db) was used before AtlasProvider.boot() ran.
E_ATLAS_CONNECTION_UNAVAILABLE500A container connection token was resolved before boot opened it, or after shutdown closed it.
E_ATLAS_BOOT_FAILED500AtlasProvider.boot() could not open one or more configured connections; cause holds the first failure.
E_ATLAS_READ_ONLY500A write ran on a query builder scoped to a connection opened with { mode: 'read' }.
E_ATLAS_INVALID_PRAGMA500A SQLite pragma key or value is outside [A-Za-z0-9_].
E_ATLAS_DB_DRIVER_NOT_FOUND500The Rust database driver could not be loaded, or the loaded binary is stale; cause holds the load failure.
E_ATLAS_NO_REPOSITORY500refresh(), fresh(), load(), loadCount(), loadAggregate() or related() was called on an entity no repository hydrated.
E_ATLAS_FILLABLE_AND_GUARDED500A model declares both static fillable and static guarded.
E_ATLAS_INVALID_ENTITY_CLASS500A relation's target (or through model) does not resolve to a BaseEntity subclass.
E_ATLAS_INVALID_HOOK500A hook decorator is not on a static method, or addHook() was given something other than a function.
E_ATLAS_INVALID_DECORATOR500A date column decorator was applied to something other than a class property.
E_ATLAS_INVALID_RELATION500Relation metadata lacks what its kind needs: a @ManyToMany without pivot options, a through relation without a through model.
E_ATLAS_RELATION_UNSUPPORTED_OPERATION500related() was asked for an operation its relation does not have: a write on @BelongsTo other than associate() / dissociate(), a write on a read-only through relation, a bulk write on @HasOne.
E_ATLAS_ASSOCIATE_NULL500associate() was given null or undefined; use dissociate().
E_ATLAS_PIVOT_KEY_COLLISION500attach() / sync() extras name a pivot key column or a pivot timestamp column.
E_ATLAS_COLUMN_ADAPTER500A @Column prepare / consume adapter threw (cause holds its error) or returned a Promise.
E_ATLAS_HAS_ONE_MULTIPLE_ROWS500A @HasOne preload found more than one related row for a parent.
E_ATLAS_THROUGH_KEY_NOT_UNIQUE500A through relation's secondLocalKey maps to several parents.
E_ATLAS_MULTIPLE_ROWS500sole() matched more than one row.
E_ATLAS_SUBQUERY_ALIAS500select() was given a subquery not named with .as().
E_ATLAS_INVALID_ALIAS500An alias is not a bare identifier.
E_ATLAS_INVALID_EXPRESSION500A whereExpr() extra expression holds forbidden characters, unbalanced parentheses, a SQL keyword, or a function outside the allowed list.
E_ATLAS_INVALID_JSON_PATH500A whereJsonPath() path does not start with $.
E_ATLAS_INVALID_GROUP_LIMIT500groupLimit() was given a value that is not a non-negative integer.
E_ATLAS_INVALID_LOCK500skipLocked() / noWait() was used without a base row lock.
E_ATLAS_INVALID_COMMENT500comment() text contains */.
E_ATLAS_INVALID_JOIN500A string-form join() is missing its right operand.
E_ATLAS_INVALID_AGGREGATE500A withAggregate() callback set no aggregate.
E_ATLAS_INVALID_PLUCK500pluck() read a column whose value is an object or a relation.
E_ATLAS_UNKNOWN_SCOPE500apply() reached a scope the model does not declare, or a model with no static scopes.
E_ATLAS_CURSOR_ORDER_REQUIRED500cursorPaginate() was called without an order column.
E_ATLAS_INVALID_CURSOR500A cursorPaginate() cursor does not decode, or its tuple length does not match the order columns.
E_ATLAS_EMPTY_UPDATE500An update was given an empty payload: a model query's update(), or an UPDATE with no SET assignment that reached the compiler.
E_ATLAS_QUERY_TIMEOUT500A query ran longer than its timeout(ms).
E_ATLAS_COMPILE_EMPTY500The query compiler returned no statement.
E_ATLAS_SCHEMA_MISMATCH500verifySchema() in throw mode found drift between the models and the database; the message lists the findings.
E_ATLAS_SCHEMA_DUMP_MANIFEST500A schema-dump manifest (.meta.json) is not version 1 with a schemaTableName.
E_ATLAS_SCHEMA_DUMP_SEQUENCE500schema:dump read a sequence parameter from the catalog that is not an integer.
E_ATLAS_SCHEMA_DUMP_PRUNE500schema:dump --prune ran without a migrationsDir.
E_ATLAS_SCHEMA_GENERATE_IDENTIFIER500schema:generate read a table or column name that does not make a TypeScript identifier.
E_ATLAS_DB_ASSERTION500A database assertion (assertHas, assertMissing, assertCount, assertEmpty) does not hold.
E_ATLAS_FACTORY_NO_CONNECTION500A factory's create() has no connection: none passed and none bound with .client() / .connection().
E_ATLAS_FACTORY_STATE500A factory state is not defined.
E_ATLAS_FACTORY_UNKNOWN_RELATION500A factory's with() names a relation the model does not declare, or one with no related factory.
E_ATLAS_FACTORY_PIVOT_LENGTH500A factory's pivotAttributes array length differs from the related-row count.
E_ATLAS_FACTORY_UNSUPPORTED_RELATION500A factory's with() names a relation kind it cannot build (a through relation).
E_ATLAS_SEEDER_DIR_REQUIRED500testUtils().db().seed() ran without a seedersDir.
E_ATLAS_INTERNAL500An invariant inside atlas broke, or the Rust compiler panicked or could not serialize what it compiled: always a bug in atlas itself.
E_INVALID_DATE_COLUMN_VALUE500A date column was given a value that is not a valid date: a JavaScript Date, which carries no zone, or a datetime string without an offset.
E_UNDEFINED_RELATIONSHIP500A relation name the model does not declare (load(), withCount(), whereHas()…).
E_UNABLE_ACQUIRE_LOCK500Another run holds the migration lock. Wait for it, or clear a stale lock with migration:unlock.
E_UNABLE_RELEASE_LOCK500A migration run succeeded, but its lock had been cleared under it (migration:unlock during the run), so another run may have migrated at the same time.
E_MISSING_SCHEMA_FILES500A migration recorded as applied has no file in the migrations directory, so it cannot be rolled back.
E_UNMANAGED_DB_CONNECTION500A connection name that is not registered: a model's static connection, db.connection(name), a factory's connection(name), manager.connect(name).
E_ATLAS_INVALID_SPEC500The statement the Rust compiler received is malformed: a clause misses a field, a field has the wrong shape, or the spec does not parse. Atlas builds every spec itself, so this points at an atlas bug or at a spec built by hand.
E_ATLAS_EMPTY_INSERT500An INSERT or an upsert has no row (insert([]), multiInsert([])), or has several rows that set no column: only one row can take every column's default.
E_ATLAS_EMPTY_TABLE500schema.createTable() declared no column.
E_UNSUPPORTED_CLIENT500The connection names a dialect atlas does not know. Atlas compiles for sqlite, postgres (or postgresql) and mysql (or mariadb).

Atom Errors ​

CodeHTTPDescription
E_ATOM_INVALID_INPUT500A value given as a decimal is not a string, number, bigint or Decimal.
E_ATOM_INVALID_DECIMAL500A string or number does not read as a decimal (parseLocale included).
E_ATOM_UNSAFE_INTEGER500A JavaScript number is an integer past Number.MAX_SAFE_INTEGER; pass a string or a bigint.
E_ATOM_INVALID_INTEGER500Minor units are not a whole number.
E_ATOM_DECIMAL_TOO_LARGE500A value or a result is past the maxDigits significant-digit bound, or a scientific literal's exponent is past maxExponent.
E_ATOM_INVALID_SCALE500A scale or a precision is not a whole number from 0 to maxScale (10 000 by default).
E_ATOM_INVALID_EXPONENT500A pow exponent is not a whole number in range.
E_ATOM_INVALID_ROUNDING_MODE500A rounding mode is not one atom knows.
E_ATOM_INVALID_RANGE500clamp / between got a minimum greater than the maximum.
E_ATOM_INVALID_STEP500A quantize step is not greater than zero.
E_ATOM_INVALID_RATIOS500allocate got no ratio, a negative one, or none positive.
E_ATOM_PRECISION_LOSS500toMinorUnits (and an exact Money) would lose digits at that scale.
E_ATOM_LENGTH_MISMATCH500Decimal.dot got two lists of different lengths.
E_ATOM_DIVISION_BY_ZERO500A division or a modulo by zero, on the TypeScript engine (the native engine answers with its own error).
E_ATOM_NEGATIVE_SQRT500sqrt of a negative value, on the TypeScript engine (the native engine answers with its own error).
E_ATOM_EMPTY_INPUT500avg, min, max, median or stddev got no value.
E_ATOM_TOO_FEW_VALUES500A sample stddev got fewer than two values.
E_ATOM_INVALID_CONTEXT500configureAtomContext / withAtomContext got a setting that is not valid.
E_ATOM_INVALID_CURRENCY500A currency code is not three letters.
E_ATOM_CURRENCY_MISMATCH500Two Money values of different currencies or scales were combined.
E_ATOM_INVALID_COLUMN_VALUE500The Atlas adapter got a column value of the wrong type.
E_ATOM_NULL_COLUMN_VALUE500A non-nullable decimalColumn got null.
E_ATOM_ENGINE_NOT_FOUND500nativeAtom() found no native engine (N-API, WASM or the phone's JSI module).
E_ATOM_NAPI_DISABLED500nativeAtom() ran while a test disabled the native engine.
E_ATOM_INTERNAL500An internal invariant broke (a bug in atom).
E_ATOM_BULK_NOT_RUN500A planned value was read before run().
E_ATOM_BULK_NO_OUTPUT500run() got no value to compute.
E_ATOM_BULK_BAD_OUTPUT500run() got something that is not a planned value.
E_ATOM_BULK_LENGTH_MISMATCH500A plan's columns have different lengths.
E_ATOM_BULK_EMPTY_COLUMN500A column has no value.
E_ATOM_BULK_BAD_INDEX500at() is outside the column.
E_ATOM_BULK_BAD_PERCENTILE500A percentile is not a fraction between 0 and 1.
E_ATOM_BULK_BAD_EXPONENT500A planned pow exponent is not a whole number in range.
E_ATOM_BULK_BAD_PRECISION500A planned precision is not a whole number from 0 to maxScale (10 000 by default).
E_ATOM_BULK_BAD_SCALE500minorUnits() got a scale that is not one.
E_ATOM_BULK_NOT_MINOR_UNITS500minorUnits() got a value that is not a whole number of minor units.
E_ATOM_BULK_TOO_SHORT500A planned sample standard deviation has fewer than two values.
E_ATOM_BULK_NO_LENGTH500A column was built with no source (a bug in atom).
E_ATOM_BULK_BAD_PROGRAM500The TypeScript evaluator met a malformed plan (a bug in atom).
E_ATOM_BULK_LOST_OUTPUT500A run returned fewer values than it was asked for (a bug in atom).
E_ATOM_BULK_OVERFLOW—Internal: the Rust bulk engine overflowed 128 bits; atom catches it and reruns the program with exact BigInt arithmetic, so it never reaches you.
E_ATOM_BULK_FOREIGN_COLUMN500run() / runAsync() got a planned value that reads a column loaded on another Bulk.

Aurora Errors ​

CodeHTTPDescription
E_AURORA_ILLEGAL_PAGE_NAME500A page name holds characters a page name may not.
E_AURORA_PAGE_OUTSIDE_ROOT500The resolved page path lands outside the configured pages root.
E_AURORA_PAGE_NOT_FOUND500No file for this page name.
E_AURORA_PAGE_IMPORT_FAILED500The page is on disk and its module graph refused to load.
E_AURORA_PAGE_INVALID_EXPORT500The page module loaded but does not default-export a factory.
E_AURORA_ILLEGAL_ROOT_TAG500renderPage was given a root tag that is not a plain element name.
E_AURORA_OUTSIDE_COMPONENT500onMount / onUnmount was called outside a component() setup function.
E_AURORA_MISSING_CONTEXT500inject found no provider for the context, and it declared no default.
E_AURORA_NOT_BOOTED500The manager singleton was read before a provider or setAurora set it.
E_AURORA_UNKNOWN_ROUTE500urlFor was given a name absent from the route manifest.
E_AURORA_MISSING_ROUTE_PARAMS500urlFor was given a route whose required params were not all supplied.
E_AURORA_UNKNOWN_LIVE_COMPONENT500A live component was mounted before registry.define() named it.
E_AURORA_LIVE_SESSION_LIMIT503A live session was refused: the registry holds maxSessions already, and every one is in use (claimed and seen within half of idleTimeoutMs).
E_AURORA_RELAY_REQUEST_FAILED500A relay request came back with a non-2xx status.
E_AURORA_UNSAFE_URL500A navigation URL failed the same-origin / scheme check.
E_AURORA_SLOT_IN_TAG_NAME500A ${} landed where a tag name goes.
E_AURORA_SLOT_IN_ATTRIBUTE_NAME500A ${} landed where an attribute name goes.
E_AURORA_SLOT_IN_RAW_TEXT500A ${} landed inside <script>, <style>, <textarea>, <title>…
E_AURORA_SLOT_IN_COMMENT500A ${} landed inside a comment, a <!…> / <?…> or a CDATA section.
E_AURORA_SLOT_IN_EVENT_ATTRIBUTE500A ${} landed in an on* attribute, whose value is JavaScript.
E_AURORA_SLOT_IN_SRCDOC500A ${} landed in srcdoc, which an iframe parses as a whole document.
E_AURORA_SLOT_IN_BASE_URL500A ${} landed in <base href>, which rebases every URL on the page.
E_AURORA_SLOT_IN_SCRIPT_SOURCE500A ${} landed in the URL a <script> loads its code from.
E_AURORA_SLOT_IN_HTML_PROPERTY500A .prop binding names a property that parses its value as HTML.
E_AURORA_TEMPLATE_IN_ATTRIBUTE500A nested html template reached an attribute value or .value.
E_AURORA_FILE_INPUT_VALUE500.value was given a non-empty string on an <input type="file">.
E_AURORA_DUPLICATE_KEY500Two elements of an each() list share a key, which names one row.
E_AURORA_INVALID_LAZY500each(…, { lazy }) was given an estimate that is not a positive length, or an overscan that is negative or not a number.
E_AURORA_VISITS_NEED_PHOTON500visits is on but @c9up/photon is not installed, or too old (0.1.25 and later speak the protocol for aurora).
E_AURORA_VISIT_PROPS500With visits on, a page's props (shared ones merged in) were not an object, as the protocol's page.props must be.
E_AURORA_INVALID_MOTION500motion=${…} was not an object of motion values, or named a property motion cannot drive (rotation, colour).
E_AURORA_REACTIVE_CYCLE500Effects kept re-running each other in one update: one writes what it, or an effect it triggers, reads.
E_AURORA_INTERNAL500An invariant inside aurora broke: always a bug in aurora itself.
E_AURORA_VISIT_NO_PAGE_DATA500With visits on, the page carries no usable page data script (script[data-aurora-page][type="application/json"]) to boot from.
E_AURORA_VISIT_ASYNC_FIRST_PAGE500With visits on, the first page's factory is async: a hydrated page renders synchronously.
E_AURORA_INVALID_LIVE_LIMIT500A live registry limit (maxSessions, maxPerOwner, claimTimeoutMs, idleTimeoutMs) is not a positive number.
E_AURORA_BROWSER_ENTRY_OUTSIDE_DIST500A browser package declares its entry outside the dist/ aurora serves for it.
E_AURORA_BROWSER_ENTRY_AT_ROOT500A browser package has its entry at the package root: serving it would publish the whole package.
E_AURORA_BROWSER_PACKAGE_CLASH500Two browser packages would mount on the same asset path.
E_AURORA_HTTP_REQUEST_FAILED500An HttpClient request came back with a non-2xx status (the error carries that status).
E_AURORA_VISIT_CROSS_ORIGIN_MODULE500With visits on, a page module's URL (the page data's modules pattern, {name} filled in) is not on the page's own origin and scheme, or its path starts with //. Nothing is imported. Serve page modules from your own origin.

Bay Errors ​

CodeHTTPDescription
E_BAY_INVALID_ADAPTER500An adapter factory did not build a queue driver.
E_BAY_UNSUPPORTED_DRIVER500The driver key names a driver; declare it under adapters instead.
E_BAY_INVALID_BINDING500The container answers something other than a QueueManager for the QueueManager token.
E_BAY_QUASAR_MISSING500A Redis adapter names a quasar connection and @c9up/quasar is not installed, or its manager is not available yet.
E_BAY_INCOMPLETE_CONNECTION500The Redis connection lacks a command the driver issues (EVALSHA, SCRIPT LOAD, …).
E_BAY_UNEXPECTED_REPLY500A Redis script answered with a reply the driver cannot read.
E_BAY_INVALID_JOB_OPTIONS500A job class declares an option it cannot run with; the specific refusal is in cause.
E_BAY_INVALID_JOB_NAME500A job's options.name is empty, or make:job is given a name that cannot become a file and a class.
E_BAY_DUPLICATE_JOB500Two job classes answer to the same name.
E_BAY_INVALID_ATTEMPTS500maxAttempts / maxRetries is not a whole number >= 1, or a backoff is asked for an attempt below 1.
E_BAY_INVALID_PRIORITY500A priority is not a whole number from 1 to 10.
E_BAY_INVALID_RETENTION500removeOnComplete / removeOnFail is not a boolean or a valid { age?, count? }.
E_BAY_INVALID_DEDUP500A dedup has an empty id, a ttl that is not a whole number from 1, or extend without a ttl.
E_BAY_INVALID_WORKER_OPTIONS500A worker option is out of range: idleDelay, stalledInterval, concurrency, unknownJobRetries or queues.
E_BAY_UNSUPPORTED_OPERATION500The queue driver has no getJob() or sizeOf() for the lookup asked.
E_BAY_INVALID_JOB_FACTORY500The job factory built something that is not the job class, or a handler without handle(); the attempt fails with it.
E_BAY_UNSERIALIZABLE_JOB500A job record cannot be stored as JSON the way Redis would carry it.
E_BAY_JOBS_DIRECTORY_UNREADABLE500A declared jobs directory exists but cannot be read.
E_BAY_NO_JOBS_FOUND500Job files were scanned and none yielded a Job subclass.
E_BAY_DUPLICATE_JOB_ID500FakeQueue.push() is given a job id it already holds.
E_JOB_TIMEOUT500An attempt ran past its timeout; carries job (its name) and timeout (ms). What failOnTimeout looks for.
E_WORKER_ALREADY_RUNNING500work() is called while the manager's worker is already running.
E_INVALID_TIMEOUT500A job timeout is not 0 or a whole number of milliseconds setTimeout can hold (1 to 2147483647).
E_CONFIGURATION_ERROR500bay: config.queue is not what defineConfig returns, declares adapters without a default, its default names an adapter it does not declare, a backoff names an unknown strategy, or a RedisDriver option (visibilityTimeoutMs, maxStalledCount, maxFailedJobs) is out of range.
E_QUEUE_NOT_INITIALIZED500The queue is used before BayProvider booted or setQueue() was called (service accessor, Job.dispatch(), queue:work), or ready() ran before boot().
E_INVALID_DURATION_EXPRESSION500A bay duration is neither a non-negative number of milliseconds nor a string like '10s'. The message names the value; help names the option that held it.
E_BAY_FAKE_JOB_NOT_FOUND500FakeQueue is asked to complete, fail or retry a job it does not hold.
E_ADAPTER_INIT_ERROR500The selected queue adapter's factory threw while building its driver; its error is the cause.
E_INVALID_BASE_DELAY500A backoff baseDelay is not above zero.
E_INVALID_MAX_DELAY500A backoff maxDelay is not above zero, or not above baseDelay.
E_INVALID_MULTIPLIER500A backoff multiplier is not above zero, or is below 1 for the exponential strategy.
E_JOB_NOT_FOUND500A job no handler or job class answers to stays unknown past unknownJobRetries; the failed record keeps its message.
E_JOB_MAX_ATTEMPTS_REACHED500Handed to a job's failed() hook once its retries ran out; the last attempt's error is the cause.
E_JOB_STALLED500The Redis queue driver files a job reclaimed from a dead worker more than maxStalledCount times as failed; the failed record keeps its message.

Blackhole Errors ​

CodeHTTPDescription
E_TOO_MANY_REQUESTS429Blackhole's global rate limit refused the request (with Retry-After), or a throttle middleware or limiter.consume() found the key over its budget. Wait and retry.
E_BAD_CSRF_TOKEN403Invalid or missing CSRF token. Echo the XSRF-TOKEN cookie in the X-XSRF-TOKEN header (or the _csrf form field).
E_BLACKHOLE_CSRF_ORIGIN_MISMATCH403A state-changing request came from another origin — another host, or the same host over another scheme — not listed in csrf.trustedOrigins.
E_BLACKHOLE_PATH_TRAVERSAL400The path holds .., raw or percent-encoded.
E_BLACKHOLE_PARAMETER_POLLUTION400A query-string key appears twice (keys ending in [] may repeat).
E_BLACKHOLE_MISSING_IP400Rate limiting is on and the request has no client address to count it under.
E_BLACKHOLE_SESSION_NOT_READY500CSRF tokens are bound to the session (csrf.session) and the request reached blackhole without one: register the session middleware before blackhole's.
E_BLACKHOLE_UNKNOWN_CSP_KEYWORD500The CSP names an @keyword no resolver is registered for (cspKeywords.register), or a keyword was registered under an invalid name. Raised when the filter is created.
E_BLACKHOLE_INVALID_CSP_KEYWORD_VALUE500A CSP keyword's resolver answered a value with ;, , or a line break, which would end the directive.
E_BLACKHOLE_DATABASE_UNAVAILABLE500The database limiter store has nothing to count in: @c9up/atlas is not installed, not booted, or the named connection is not one. Pass a client as connection, or set atlas up.
E_BLACKHOLE_UNSUPPORTED_DATABASE500The database limiter store was given a database other than PostgreSQL, MySQL or SQLite.
E_BLACKHOLE_BLOCKEDvariesA refusal whose body the engine did not supply as a JSON error.
E_BLACKHOLE_INVALID_CSP500The Content-Security-Policy is invalid: a bad directive name or value, an unquoted keyword, a directive given twice, no default-src, a line break, or both directives and policy.
E_BLACKHOLE_REMOVED_OPTION500The config still sets an option that was removed (securityHeaders); the message names its replacement.
E_BLACKHOLE_UNKNOWN_OPTION500A header or CORS option names a key it does not have.
E_BLACKHOLE_INVALID_HEADER_VALUE500An option's value cannot be written as a header value (empty, or a control or non-ASCII character).
E_BLACKHOLE_INVALID_XFRAME500xFrame.action is not DENY, SAMEORIGIN or ALLOW-FROM, or ALLOW-FROM has no domain.
E_BLACKHOLE_INVALID_CORS500CORS combines a wildcard origin with credentials: true, or its origin list holds something other than non-empty strings.
E_BLACKHOLE_INVALID_DURATION500A duration (HSTS maxAge, a limiter duration) is negative or unreadable.
E_BLACKHOLE_INVALID_RATE_LIMIT500A rate limit or limiter is given a request count or duration that is not a positive whole number.
E_BLACKHOLE_SECRET_MISSING—CSRF is enabled and no secret was given.
E_BLACKHOLE_WEAK_SECRET500The CSRF secret is the scaffolding placeholder, or shorter than 16 characters.
E_BLACKHOLE_INVALID_SECRET500The CSRF secret is neither a string nor a Secret wrapping one.
E_BLACKHOLE_NAPI_REQUIRED—The blackhole native engine is not loaded for this platform; cause carries the load failure.
E_BLACKHOLE_NOT_REGISTERED500The middleware ran without a Blackhole instance: BlackholeProvider is not registered, or the host exposes no ctx.containerResolver.
E_BLACKHOLE_RATE_LIMIT_STORE_MISSING500checkRateLimit() was called without a configured rateLimit.store.
E_BLACKHOLE_EMPTY_RATE_LIMIT_KEY500checkRateLimit() was given an empty key, which would count every request in one bucket.
E_BLACKHOLE_UNKNOWN_STORE500A limiter or rateLimit names a store that is not declared in stores.
E_BLACKHOLE_NO_DEFAULT_STORE—rateLimit declares stores but no default naming the one that counts.
E_BLACKHOLE_LIMITER_OPTIONS_MISSING500limiter.use() or limiter.multi() was called without the requests and duration of its limiter(s).
E_BLACKHOLE_INCOMPLETE_THROTTLE500A throttle middleware ran on a limiter without allowRequests() and every().
E_BLACKHOLE_INVALID_TABLE_NAME500The database limiter store's tableName is not a table name.
E_BLACKHOLE_QUASAR_MISSING500A Redis store names a connection and @c9up/quasar is not installed.
E_BLACKHOLE_INCOMPLETE_CONNECTION500The named quasar connection lacks the commands the counter issues.
E_BLACKHOLE_INVALID_XSS_ATTRIBUTE500xss.allowAttributes names an attribute outside the opt-in list (id, is, slot, part, data-*, class); the native engine refuses it.
E_BLACKHOLE_UNKNOWN_CHECK500check() was asked for a check the engine does not have (only rateLimit, shield and csrf exist).
E_BLACKHOLE_INVALID_HEADERS500check() was given request headers that are not an object of strings.
E_BLACKHOLE_INTERNAL_PANIC500The native engine panicked while checking a request; cause carries the native error.
E_BLACKHOLE_INVALID_XSS_LIMIT500xss.maxInputBytes or xss.maxDepth is not a positive whole number.
E_BLACKHOLE_HTML_TOO_LARGE500sanitizeResponse() (or the xss pass) was given a text/html body longer than xss.maxInputBytes (1 MiB by default).
E_BLACKHOLE_HTML_TOO_DEEP500The HTML to sanitize nests elements deeper than xss.maxDepth (512 by default), measured on the tree the parser builds.
E_BLACKHOLE_HTML_TOO_COMPLEX500The HTML to sanitize builds more than four times its size plus 64 KiB (misnested formatting tags re-created in every block).

Chronos Errors ​

Every refusal, from the TypeScript side or from the Rust engine, carries its code in error.code.

CodeHTTPDescription
E_CHRONOS_INVALID_YEAR500easterDate / holidays got a year that is not an integer in 1583-9999 (the Gregorian computus).
E_CHRONOS_UNKNOWN_COUNTRY500holidays / isHoliday got a country with no holiday calendar (known: CH, FR).
E_CHRONOS_UNKNOWN_REGION500The region is not a Swiss canton's two-letter code, or a region was given for FR.
E_CHRONOS_INVALID_DATE500A date that does not exist: isHoliday got a string that is not a calendar date YYYY-MM-DD, or a DateTime was built from an invalid JavaScript Date.
E_CHRONOS_ENGINE_REQUIRED—The Chronos engine (the NAPI binary in Node, the WASM build in a browser) did not load.
E_CHRONOS_INVALID_ARGUMENT500An argument has the wrong type (fromMillis("12"), fromFormat without a string, expandRRule(rule, options) without the rule text), or toRelative got an unknown rounding.
E_CHRONOS_OUT_OF_RANGE500A value or a plus/minus result falls outside years 0000-9999.
E_CHRONOS_CONFLICTING_FIELDS500A format mixes fields that contradict each other: a meridiem with a 24-hour hour, week fields with year/month/day, an ordinal with month/day.
E_CHRONOS_UNSUPPORTED_UNIT500A unit chronos does not know (fortnight) was given to plus, diff, toRelative, Duration or an Interval method.
E_CHRONOS_MISSING_UNIT500plus(amount) / minus(amount) without a unit, or diff / toRelative with an empty unit list.
E_CHRONOS_INVALID_UNIT_VALUE500A unit amount is not a finite number (NaN, Infinity, a string).
E_CHRONOS_INVALID_DURATION500A duration that cannot be read or used: an ISO 8601 duration that does not parse, a value that is not an object of units, a non-positive splitBy step.
E_CHRONOS_INVALID_INTERVAL500An Interval whose start is after its end, or an ISO 8601 interval that does not parse.
E_CHRONOS_INVALID_RANGE500A DateRange given to inRange, containsRange, overlapsRange or analyzeRange starts after it ends.
E_CHRONOS_INVALID_LOCALE500setLocale got a tag Intl does not accept.
E_CHRONOS_INVALID_RRULE500toRRuleString (or expandRRule with a structured rule) got a field it cannot write into the rule text.
E_CHRONOS_INVALID_RRULE_LIMIT500The expandRRule limit is not a positive integer.
E_CHRONOS_RRULE_LIMIT_EXCEEDED500The expandRRule limit is above the 10,000 cap.
E_CHRONOS_INVALID_COLUMN_VALUE500The atlas DateTime column adapter read a database value of an unexpected type, or was asked to store something other than a DateTime.
E_CHRONOS_INTERNAL500The engine answered something chronos does not expect (a bug in chronos, not in your code).
E_CHRONOS_UNKNOWN_ZONE500A zone the tz database does not know: new DateTime(input, zone), DateTime.now(zone), setZone, fromSQL, the tzid of expandRRule or a TZID in its text.
E_CHRONOS_UNREADABLE_RRULE500expandRRule got rule text the engine cannot read or expand: an unknown or repeated property, a value out of range, no start, a rule over the size limit.

Comet Errors ​

Raised by the WebSocket transport (createWebSocketTransport()), with one of the codes below: the call failed without a JSON-RPC answer. A JSON-RPC error the server answered keeps its numeric code.

CodeHTTPDescription
E_COMET_CONNECTION_FAILED500The socket could not be opened: refused handshake, bad URL or network.
E_COMET_CONNECTION_CLOSED500The socket closed while the call waited, or stays closed (reconnect: false).
E_COMET_TRANSPORT_CLOSED500close() was called on the transport; calls made afterwards fail the same way.
E_COMET_TIMEOUT500No answer within the timeout.
E_COMET_MESSAGE_TOO_LARGE500A message over maxMessageBytes, sent or received.
E_COMET_BACKPRESSURE500More than maxBufferedBytes already wait to be sent.
E_COMET_PROTOCOL_ERROR500The peer sent what no JSON-RPC server answers, so the socket was closed.
E_COMET_INVALID_MESSAGE500The client handed over something that is not a JSON-RPC message, or not JSON.
E_COMET_INVALID_OPTION500createWebSocketTransport() was given a timeout, maxMessageBytes or maxBufferedBytes that is not a positive number, or a timeout past what a timer can wait.

Echo Errors ​

E_FACTORY_ERROR, E_FACTORY_HARD_TIMEOUT, E_UNDEFINED_VALUE and E_L2_CACHE_ERROR keep the identifiers cache code already catches on.

CodeHTTPDescription
E_FACTORY_ERROR500The factory of getOrSet() threw; cause holds its error.
E_FACTORY_HARD_TIMEOUT500The factory did not finish within its hard timeout.
E_UNDEFINED_VALUE500A null or undefined value was written to the cache.
E_L2_CACHE_ERROR500A tiered store's second level failed and the failure is not suppressed.
E_ECHO_LOCK_TIMEOUT500A caller waited too long for another caller's factory of the same key.
E_ECHO_INVALID_ARGUMENT500A method was given an argument it cannot work with.
E_ECHO_INVALID_DURATION500A duration is neither a number of milliseconds nor a readable string.
E_ECHO_INVALID_CONFIG500A config value cannot be read, such as a size that is not bytes or '10mb', or a Redis connection's keyPrefix is not a string when clear() needs it.
E_ECHO_UNKNOWN_STORE500A store name, or the default store, is not declared in stores.
E_ECHO_UNSUPPORTED_DRIVER—The default provider was given a driver it does not build.
E_ECHO_NOT_TAGGABLE500Tag invalidation on a driver (or a tier) that has no tags.
E_ECHO_SCAN_UNSUPPORTED—flush() on a Redis client, or on a cluster master, without scan(); KEYS is not used.
E_ECHO_UNSERIALIZABLE_VALUE—The memory driver stores JSON and the value has no JSON form. Pass serialize: false to keep it as is.
E_ECHO_QUASAR_MISSING500A Redis store was configured and @c9up/quasar is not installed.
E_ECHO_INCOMPLETE_CONNECTION500The quasar connection lacks what echo needs (publish() / subscribe()).
E_ECHO_NOT_BOOTED—The cache singleton was used before EchoProvider.boot() or setCache().
E_ECHO_BUS_SUBSCRIBE_FAILED500The quasar cache bus reported a subscribe failure that is not an Error; cause holds what it reported.
E_FACTORY_SOFT_TIMEOUT500Not raised by echo: at the soft timeout the stale value is served. Exported on errors for code that tests it.

Eclipse Errors ​

E_LOCK_NOT_OWNED and E_LOCK_STORAGE_ERROR keep the identifiers lock code already catches on.

CodeHTTPDescription
E_LOCK_NOT_OWNED500The lock is not held by this holder: it expired, or another holder has it. Raised when work succeeded but the lease lapsed while it ran.
E_LOCK_STORAGE_ERROR500The lock store failed while saving, reading or deleting.
E_ECLIPSE_INVALID_TTL500A lock TTL is not a finite positive number of milliseconds, or null.
E_ECLIPSE_INVALID_DURATION500A duration string cannot be read.
E_ECLIPSE_INVALID_RETRY500A retry option is out of range.
E_ECLIPSE_INVALID_CONFIG500The lock config is invalid.
E_ECLIPSE_MISSING_CONFIG500config/lock.ts is missing.
E_ECLIPSE_UNKNOWN_STORE500A lock store name is not declared.
E_ECLIPSE_QUASAR_MISSING500A Redis store was configured and @c9up/quasar is not installed.
E_ECLIPSE_INCOMPLETE_CONNECTION500The quasar connection lacks what eclipse needs.
E_ECLIPSE_DATABASE_UNAVAILABLE500A database lock store asks for atlas, which is not installed or has not booted.
E_ECLIPSE_UNSUPPORTED_DATABASE500A database lock store was given a dialect other than PostgreSQL, MySQL or SQLite.
E_ECLIPSE_NOT_BOOTED500The lock manager singleton was used before EclipseProvider.boot() or setLocks().
E_ECLIPSE_INVALID_BINDING500The container resolved the LockManager token to something that is not a LockManager.

Eon Errors ​

Every refusal, the query compiler's included, carries its code in error.code. TDengine's own numeric error code is in taosCode.

CodeHTTPDescription
E_EON_MISSING_CONNECTION500A repository has no connection to run on.
E_EON_NOT_A_SUPERTABLE500A class used as a super-table is not decorated with @SuperTable.
E_EON_NO_TAGS500A super-table has no @Tag column, so a child table cannot be routed.
E_EON_NO_TIMESTAMP500A super-table has no @Timestamp column.
E_EON_CHILD_STABLE500createChildTable() was given neither stable nor EntityClass.
E_EON_CHILD_COLLISION500Two distinct tag sets map to the same child table; eon refuses to write mismatched rows under one tag set.
E_EON_CHILD_MIGRATION500migrateChildTableNames() read a child listing row without a table name.
E_EON_BATCH_SIZE500batchSize is not a positive integer.
E_EON_BIND500A value cannot be written to its STMT placeholder as given: the wrong type, or a decimal the column cannot hold exactly.
E_EON_SERVER_VERSION500The columnar STMT path needs TDengine 3.3.6.0 or later (stmt2).
E_EON_TYPE500A column or tag has an unknown or missing type.
E_EON_TS_TYPE500A timestamp is neither a bigint nor a safe-integer number.
E_EON_PARAM_PRECISION500A timestamp number is not a safe integer; pass nanosecond timestamps as bigint.
E_EON_VALUE_TYPE500An integer column was given something other than a safe integer or a bigint.
E_EON_VALUE_RANGE500A value is outside its column type's range; the connector would truncate it silently.
E_EON_TEMPLATE500The compiler returned no statement for the STMT insert template.
E_EON_LITERAL_INSERT500A literal insert for one child table compiled to other than exactly one statement.
E_EON_HYDRATE_BIGINT500A bigint or timestamp column came back with a non-integer value.
E_EON_DECODE500A server reply or result block does not match the protocol (truncated, unknown type, rows without column metadata); a frame that cannot be trusted closes the connection.
E_EON_TIMEOUT500A request to TDengine got no reply within timeoutMs.
E_EON_CLOSED500The TDengine connection closed while a request was waiting, or a request was sent on a closed one.
E_EON_CONNECT500The WebSocket to taosAdapter could not be opened: a bad URL, a refused connection, or no handshake within the deadline.
E_EON_SCHEMALESS_SCHEMA500A field type has no line-protocol form.
E_EON_SCHEMALESS_FIELD500A line-protocol field value is outside its type's range.
E_EON_SCHEMALESS_TAG500A line-protocol tag value cannot be written.
E_EON_SCHEMALESS_EMPTY_TAG500A line-protocol tag value is empty.
E_EON_SCHEMALESS_NO_FIELDS500A line-protocol point has no field.
E_EON_SCHEMALESS_MEASUREMENT500The super-table (measurement) name is empty.
E_EON_SCHEMALESS_CONTROL_CHAR500A line-protocol name or value holds a line terminator or control character; it is refused, not escaped.
E_EON_INVALID_VALUE500where() with one argument takes a callback that fills a group.
E_EON_EMPTY_WHERE_GROUP500A where(callback) group added no predicate.
E_EON_INVALID_LIMIT500limit() was given a value that is not a non-negative integer.
E_EON_INVALID_OFFSET500offset() was given a value that is not a non-negative integer.
E_EON_COMPILE_EMPTY500The compiler returned no SQL statement.
E_EON_UNEXPECTED_PARAMS500A time-series query compiled with bound parameters where literal SQL is expected.
E_EON_INTERNAL500An invariant inside eon broke, or the Rust compiler panicked or could not serialize what it compiled: always a bug in eon itself.
E_EON_ALTER_DB_ONE_OPTION500alterDatabase() takes exactly one option.
E_EON_MIGRATION_INVALID500The migrations tracking table holds an unreadable executed_at.
E_EON_MIGRATION_LOCKED500Another run holds the migration lock.
E_EON_FACTORY_STATE500A factory state is not defined.
E_EON_FAKE_UNSUPPORTED500FakeEonConnection answers only flat SELECTs; windowed or aggregate SQL needs a live TDengine.
E_EON_TEST_IDENTIFIER500A test cleanup helper was given a name that is not a plain identifier.
E_EON_NAPI_NOT_FOUND500The eon query compiler binary is not found.
E_EON_NAPI_UNSUPPORTED500There is no eon query compiler binary for this platform.
E_EON_INVALID_DURATION500A duration is not a positive integer followed by one unit.
E_EON_INVALID_FILL500A FILL mode is not one TDengine knows, or lacks its value.
E_EON_FILL_REQUIRES_INTERVAL500FILL was used without INTERVAL.
E_EON_SLIDING_REQUIRES_INTERVAL500SLIDING was used without INTERVAL.
E_EON_OFFSET_REQUIRES_LIMIT500OFFSET was used without LIMIT.
E_EON_INVALID_ORDER_DIRECTION500An order direction is neither asc nor desc.
E_EON_INVALID_PSEUDO_COLUMN500A pseudo-column is not one eon allows.
E_EON_INVALID_SELECT500A select expression cannot be compiled.
E_EON_INVALID_SELECT_FUNCTION500A select names a function eon does not allow.
E_EON_INVALID_DB_OPTION500A database option value is invalid.
E_EON_UNKNOWN_DB_OPTION500A database option is not alterable (KEEP, BUFFER, WAL_LEVEL, CACHEMODEL, REPLICA, MINROWS).
E_EON_IMMUTABLE_DB_OPTION500A database option is fixed at CREATE and cannot be altered.
E_EON_INVALID_TTL500A child-table TTL is not a non-negative whole number of days.
E_EON_INVALID_WAL_LEVEL500A WAL_LEVEL is not one TDengine accepts.
E_EON_INVALID_CACHEMODEL500A CACHEMODEL is not one TDengine accepts.
E_EON_INVALID_PRECISION500A database precision is not ms, us or ns.
E_EON_KEEP_TOO_SMALL500KEEP is less than three times DURATION.
E_TS_REQUIRED500A super-table's first column is not a TIMESTAMP.
E_TAGS_REQUIRED500A super-table declares no tag, or an INSERT that auto-creates a child table (using), or its STMT template, has no tag.
E_JSON_TAG_RULE500JSON is tag-only and must be the only tag.
E_TYPE_NOT_TAGGABLE500A type that cannot be a tag (DECIMAL) is used as one.
E_LENGTH_REQUIRED500A type that needs a length (BINARY(n), NCHAR(n)…) was given none.
E_NAME_COLLISION500A name is listed more than once across the STMT template's tag and value columns.
E_INVALID_CLAUSE_TYPE500A WHERE connector is neither and nor or.
E_INVALID_WHERE_GROUP500A WHERE group is empty, or also names a column.
E_INVALID_WHERE_VALUE500A WHERE value (or list element) is not a scalar, or an IN value is not a list.
E_UNSAFE_IDENTIFIER500The compiler refused an identifier.
E_UNSAFE_LITERAL500The compiler refused a literal value.
E_UNSAFE_OPERATOR500The compiler refused an operator.
E_EON_NOT_BOOTED500An eon connection (the eon token, eon:<name>, or @c9up/eon/services/connection) was used before EonProvider.boot() opened it.
E_EON_ALREADY_BOOTED500EonProvider.boot() ran a second time while its connections are open; call shutdown() first.
E_EON_BOOT_FAILED500EonProvider.boot() could not open one or more configured connections; cause holds the first failure.
E_EON_UNKNOWN_CONNECTION500The default connection named in config/timeseries.ts is not among its connections.
E_EON_NO_DATABASE500createDatabase is set but no database is configured.
E_EON_TEST_URL500connectTestEon() was called without EON_TEST_URL.
E_EON_SERVER_ERROR500The TDengine server refused a request (a bad statement, a missing table, bad credentials); taosCode holds TDengine's numeric error code.
E_EON_NO_TOPIC500subscribe() was given no topic; the server would accept it and deliver nothing.
E_EON_SEEK_NO_OFFSET500seek() was given a partition without an offset.
E_EON_INVALID_INSERT500An INSERT reached the compiler with no column, no row, a row whose width differs from the column list, or tags without using.
E_EON_ALTER_EMPTY500An ALTER STABLE reached the compiler with no change.
E_UNSUPPORTED_CLIENT500The compiler was asked for a dialect other than tdengine.
E_EON_INVALID_SPEC500The statement the compiler received does not parse. Eon builds every spec itself, so this points at an eon bug or at a spec built by hand.

Ephemeris Errors ​

CodeHTTPDescription
E_EPHEMERIS_INVALID_NODE500A structured-data node has no @type.
E_EPHEMERIS_INVALID_URL500A URL is not absolute.
E_EPHEMERIS_INVALID_DATE500A date is not ISO 8601.
E_EPHEMERIS_INVALID_VALUE500A value cannot be serialised (an invalid Date…).
E_EPHEMERIS_INVALID_PRICE500A price is neither a number nor digits with a decimal point.
E_EPHEMERIS_INVALID_CURRENCY500A currency is not an ISO 4217 code.
E_EPHEMERIS_MISSING_REQUIRED500A type lacks a property search engines require for it.
E_EPHEMERIS_UNSAFE_KEY500A key structured data may not use (such as __proto__).
E_EPHEMERIS_ID_TAKEN500An @id generated for one node was given to another.
E_EPHEMERIS_SLOT_TAKEN500A node slot is already taken by another node.
E_EPHEMERIS_CYCLE500A node contains itself.
E_EPHEMERIS_TOO_DEEP500The data is nested deeper than the allowed depth.
E_EPHEMERIS_TOO_LONG500A text value is longer than the allowed length.
E_EPHEMERIS_TOO_MANY500A list (a breadcrumb…) has more items than allowed.

Flare Errors ​

CodeHTTPDescription
E_RUNTIME_EXCEPTION500RuntimeException: a failure at run time that no more specific error describes.
E_INVALID_ARGUMENTS_EXCEPTION500InvalidArgumentsException: a function received arguments it cannot work with.

Goldstone Errors ​

The mail engine's limits are refused before the message is parsed further.

CodeHTTPDescription
E_GOLDSTONE_MESSAGE_TOO_LARGE422A message is over the size limit; refused before download when the server announces its size.
E_GOLDSTONE_NOT_A_MESSAGE422The bytes are not a mail message.
E_GOLDSTONE_TOO_MANY_PARTS422A message has more MIME parts than allowed.
E_GOLDSTONE_TOO_DEEP422MIME parts are nested deeper than allowed.
E_GOLDSTONE_TOO_MANY_HEADERS422A message has more headers than allowed.
E_GOLDSTONE_HEADERS_TOO_LARGE422A header block is over maxHeaderBytes, or the header blocks of a message's parts are over maxPartHeaderBytes together.
E_GOLDSTONE_MISSING_BOUNDARIES422A multipart message declares boundaries that never appear.
E_GOLDSTONE_BOUNDARY_TOO_LONG422A multipart boundary is longer than allowed.
E_GOLDSTONE_TOO_MANY_ATTACHMENTS422A message has more attachments than allowed.
E_GOLDSTONE_ATTACHMENT_TOO_LARGE422An attachment is over the size limit.
E_GOLDSTONE_HTML_TOO_LARGE422An HTML body is over the size limit.
E_GOLDSTONE_HTML_TOO_DEEP422An HTML body nests more than 1000 elements deep, measured on the tree the HTML parser builds.
E_GOLDSTONE_HTML_TOO_COMPLEX422An HTML body builds a tree out of proportion to its markup: too many nodes, or too much work to place them.
E_GOLDSTONE_DNS_UNAVAILABLE500An authenticity check needed DNS and DNS failed.
E_GOLDSTONE_INVALID_ENVELOPE500The envelope given to an authenticity check is invalid (an address that is not an IP…).
E_GOLDSTONE_ENGINE500The engine failed without one of the codes above.
E_GOLDSTONE_NATIVE_REQUIRED500The Rust mail engine is not loaded.
E_GOLDSTONE_INVALID_LIMITS500A parsing limit is not a positive integer under 2^32.
E_GOLDSTONE_INVALID_OPTIONS500An authenticity check option is not a positive integer under 2^32.
E_GOLDSTONE_INVALID_CONFIG500The inbox config is invalid (no mailbox declared…).
E_GOLDSTONE_INSECURE_CONNECTION500A mailbox would connect without TLS. Set starttls: true, or allowInsecure for a local test server.
E_GOLDSTONE_UNKNOWN_MAILBOX500A mailbox name is not configured.
E_GOLDSTONE_UIDVALIDITY_CHANGED500A watched folder renumbered its messages; watching resumes from the newest.
E_GOLDSTONE_MISSING_CONFIG500GoldstoneProvider registered with no config/inbox.ts.
E_GOLDSTONE_NOT_BOOTED500The services/main inbox was used before GoldstoneProvider registered or setInbox() was called.
E_GOLDSTONE_TOO_MANY_ADDRESSES422A message's address headers hold more addresses than maxAddresses, counted before the message is parsed.

Helix Errors ​

CodeHTTPDescription
E_HELIX_ASSERTION_FAILED500An expect() or assert check failed (AssertionError).
E_HELIX_TIMEOUT500A test or hook did not settle within its timeout. Also the code of a file error when the file exceeds --file-timeout.
E_HELIX_TEST_ABORTED500The running test called meta.abort(message).
E_HELIX_NO_ACTIVE_TEST500A test-only helper (getActiveTestOrFail(), time.freeze/travel, override(), a test.macro function) was called outside a running test.
E_HELIX_NO_ACTIVE_CONTAINER500override() was called before useContainer().
E_HELIX_ASYNC_DESCRIBE500A describe body returned a Promise; await the setup in beforeAll instead.
E_HELIX_NESTED_GROUP500A test.group() was declared inside another group.
E_HELIX_INVALID_TIME500A time value cannot be used: a non-finite or out-of-range epoch, an unreadable date, a fractional month or year, an unknown unit, or a negative advanceTimersByTime.
E_HELIX_FAKE_TIMERS_NOT_INSTALLED500A vi timer control was called before vi.useFakeTimers().
E_HELIX_TIMER_LOOP500Draining fake timers exceeded its iteration cap: a timer keeps rescheduling itself.
E_HELIX_SPY_NO_PROPERTY500vi.spyOn() targets a property the object does not have.
E_HELIX_SPY_NOT_FUNCTION500vi.spyOn() targets a value that is not a function; pass { accessor } for a getter or setter.
E_HELIX_SPY_NO_ACCESSOR500vi.spyOn() asked for a getter or setter the property does not define.
E_HELIX_ALREADY_SPIED500vi.spyOn() targets a method that is already a spy; call mockRestore() first.
E_HELIX_RUNNER_NOT_DRIVABLE500A plugin called runner.add/start/exec/end(): the CLI owns discovery and execution.
E_HELIX_RELATIVE_PATH500runTestFile() was given a relative path.
E_HELIX_INVALID_GLOB500An include or exclude glob has an unclosed {, ( or [; cause holds the regex error.
E_HELIX_INVALID_THREADS500The thread count is not a finite number.
E_HELIX_INVALID_COVERAGE_THRESHOLD500A coverage threshold is not a number from 0 to 100, or a diff-coverage threshold names functions or branches (diff coverage is line-only).
E_HELIX_INVALID_DIFF_COVERAGE500Diff coverage is enabled without coverage, or its cwd and coverage.root are disjoint.
E_HELIX_INVALID_WATCH_OPTIONS500Watch mode got an empty include or a debounceMs out of range.
E_HELIX_WATCH_FAILED500Watch mode could not watch its root directory; cause holds the fs.watch error.
E_HELIX_NATIVE_REQUIRED500The helix native binary is missing, failed to load, or is stale, or the platform has none.
E_HELIX_INTERNAL500An internal invariant of helix broke: a bug in helix, worth reporting. The native engine's refusals arrive under this code.
E_HELIX_WORKER_FAILED500Not thrown: the code of a file error when the worker could not start, sent a broken frame, exited without a result, or exited in a way its result does not explain.
E_HELIX_UNEXPECTED_ONLY500Not thrown: the code of the error of a test that a .only or a .pin() selects in a run that does not allow them (under CI, or with --allow-only=false).
E_HELIX_NO_TEST_SUITE500The code of the file error for a file that declares no test, unless --pass-with-no-tests is set.

Helix Plugin Errors ​

Raised by @c9up/helix-plugin-ream.

CodeHTTPDescription
E_HELIX_PLUGIN_REAM_UNKNOWN_SUITE500A suite name was asked for but the rc file does not declare it.
E_HELIX_PLUGIN_REAM_SUITE_CONFIGURE_UNREACHABLE500A suite declares configure and the runner has no module path to re-import it in each worker.
E_HELIX_PLUGIN_REAM_NO_SERVER—apiClient() was given neither testUtils nor boot.
E_HELIX_PLUGIN_REAM_SERVER_NOT_STARTED—No server is running for the suite. Add the hook that starts it.
E_HELIX_PLUGIN_REAM_NO_TEST_CLIENT—No client is in play. Add apiClient() to the plugins in tests/bootstrap.ts.

Inker Errors ​

CodeHTTPDescription
E_INKER_TEMPLATE_NOT_FOUND500No template has this name.
E_INKER_PARSE_ERROR—The template cannot be parsed.
E_INKER_UNKNOWN_IDENTIFIER—An expression names an identifier that is not in scope.
E_INKER_INVALID_PATH500A template path is invalid (traversal, absolute path…).
E_INKER_UNCLOSED_INTERPOLATION—A {{ has no matching }}.
E_INKER_UNCLOSED_BLOCK_TAG—A block tag is not closed.
E_INKER_UNCLOSED_BLOCK—A block has no @end.
E_INKER_UNMATCHED_BLOCK_END—An @end closes no block.
E_INKER_MISMATCHED_BLOCK_END—An @end closes another block than the open one.
E_INKER_UNKNOWN_DIRECTIVE—A directive the engine does not know.
E_INKER_UNKNOWN_TAG—No tag is registered under this name. Register it with templates.registerTag().
E_INKER_INVALID_LAYOUT_POSITION—@layout is not the first statement of the template.
E_INKER_DUPLICATE_LAYOUT—A template declares more than one layout.
E_INKER_NESTED_LAYOUT_UNSUPPORTED—A layout extends another layout.
E_INKER_LAYOUT_IN_PARTIAL—A partial declares a layout.
E_INKER_CIRCULAR_INCLUDE—Templates include each other in a loop.
E_INKER_MISSING_SLOT—A component requires a slot the caller did not fill.
E_INKER_UNKNOWN_SLOT—The caller fills a slot the component does not declare.
E_INKER_DISK_REQUIRED—A template rendered from a string (renderString, renderRaw) uses @layout, @include, @component or {{> name }}, which need template files: render it by name with render(name, data).
E_INKER_DISK_COLLISION500Two disks are mounted under the same name.
E_INKER_TEMPLATE_COLLISION500Two templates are registered under the same name.
E_INKER_INVALID_EXPRESSION500An expression cannot be evaluated.
E_INKER_INVALID_ITERABLE—@each was given something that is not iterable.
E_INKER_HELPER_THROW500A helper threw during the render.
E_INKER_ASYNC_NOT_SUPPORTED—A construct that renders synchronously used await.
E_INKER_RENDER_DEPTH—The render nested too deep.
E_INKER_DUMP_DIE—@dd() stopped the render and printed its value.
E_INKER_INVALID_JSON_LD500A value given to the JSON-LD helper cannot be held in JSON-LD.
E_INKER_TEMPLATE_ERROR—A template raised an error itself.
E_INKER_ENGINE_MISSING500A template was rendered through the inker singleton before InkerProvider built the engine.
E_INKER_NAPI_REQUIRED500The native inker engine is missing or cannot be loaded; the message names the platform package to install.
E_INKER_NOT_BOOTED500The renderer (@c9up/inker/services/main, or the container's InkerRenderer) was used before InkerProvider.start() ran or setInker() seated one.
E_INKER_INVALID_CONFIG500config.inker holds a value the provider cannot use: a cacheMode other than mtime, never or auto, or an additionalHelpers entry that is not a function.
E_INKER_INVALID_HELPER_ARGUMENT500A view helper (t, url, route, signedRoute, config, formAttributes, asset) got an argument it cannot use: a name or key that is not a string, or route params that are not a plain object of finite, non-null primitives.
E_INKER_OUTSIDE_RENDER500A helper that reads the request was called outside inker.render().

Lumen Errors ​

CodeHTTPDescription
E_LUMEN_INVALID_COLUMN500A table was asked for a column shape it does not have.
E_LUMEN_TASK_NO_RESULT500A task callback returned nothing and did not mark the task itself. Found on the outcome's error, not thrown.
E_LUMEN_TASK_FAILED500A task failed with something that is not an Error (a string, a thrown value, a returned { message, isError: true }); cause holds the original value.
E_LUMEN_INTERNAL500An invariant inside lumen broke; a bug to report.

Nebula Errors ​

CodeHTTPDescription
E_NEBULA_INVALID_CONFIG500config/nebula.ts has no default export, or a paths / language entry of the wrong shape.
E_NEBULA_SOURCES_NOT_BUILT500nebula add was asked for a language whose sources the package has not built (dist/ for JavaScript).
E_NEBULA_INVALID_REGISTRY500The installed package's registry.json is not a nebula registry.
E_NEBULA_UNKNOWN_COMPONENT500nebula add was given a component the registry does not hold.
E_NEBULA_UNKNOWN_ADAPTER500configure --adapter named an adapter other than tailwind, unocss or css.

Neutrino Errors ​

CodeHTTPDescription
E_NEUTRINO_INVALID_DESCRIPTOR500The bytes are not a valid FileDescriptorSet.
E_NEUTRINO_DUPLICATE_TYPE500Two descriptors declare the same type differently.
E_NEUTRINO_UNKNOWN_TYPE500No message or enum type of this name is loaded.
E_NEUTRINO_UNKNOWN_METHOD500No method of this path is loaded.
E_NEUTRINO_INVALID_MESSAGE400The bytes are not a valid message of the type.
E_NEUTRINO_INVALID_METADATA500Binary gRPC metadata is malformed; the server answers INTERNAL.
E_NEUTRINO_GRPC_STATUS500A method answers a gRPC status instead of a reply; its message goes to the client as the status details.
E_NEUTRINO_DUPLICATE_SERVICE500A service is registered twice.
E_NEUTRINO_INVALID_IMPLEMENTATION500A method implementation is not a function.
E_NEUTRINO_STREAMING_UNSUPPORTED500A streaming method was registered; only unary methods are served.
E_NEUTRINO_INVALID_OPTION500A size option is not a whole number of bytes, or -1 for no limit.
E_NEUTRINO_GRPC_UNSUPPORTED500The server has no grpc() method. Upgrade @c9up/ream.
E_NEUTRINO_INVALID_CONFIG500defineConfig loads no schema, or config/protobuf.ts does not export defineConfig's shape.
E_NEUTRINO_MISSING_CONFIG500config/protobuf.ts is missing at boot.
E_NEUTRINO_INVALID_BINDING500The container returned something else for the Protobuf or GrpcServices token.
E_NEUTRINO_NOT_BOOTED500@c9up/neutrino/services/main or services/grpc was used before NeutrinoProvider booted.
E_NEUTRINO_INVALID_REPLY500A method, or an interceptor, returned something other than a message object; the call is answered INTERNAL and the error goes to onError.
E_NEUTRINO_NEXT_CALLED_TWICE500An interceptor called next() more than once; the call is answered INTERNAL.
E_NEUTRINO_VERIFIER_FAILED500The bearerAuth token verifier itself failed; the call is answered INTERNAL.

Nova Errors ​

CodeHTTPDescription
E_NOVA_INVALID_SUBSCRIPTION400The subscribe or unsubscribe body is not a valid PushSubscription.
E_NOVA_SUBSCRIPTION_CONFLICT409Another request was writing the same endpoint at the same time. Retry the subscribe.
E_NOVA_SUBSCRIPTION_NOT_FOUND404The user has no such subscription.
E_NOVA_MISSING_USER500The subscription handler ran without an authenticated user.
E_NOVA_INVALID_USER_ID500The authenticated user has no usable id (a non-empty string or an integer), or pushToUser received an id that is not one.
E_NOVA_VAPID_NOT_CONFIGURED500A VAPID key or subject is missing.
E_NOVA_HTTP_CLIENT_MISSING500Sending a push needs the outbound HTTP client of @c9up/ream.
E_NOVA_UNKNOWN_STORE500The config names a store it does not declare.
E_NOVA_INVALID_TABLE500The SQL store's table name is not a plain identifier.
E_NOVA_INVALID_PREFIX500The Redis store's key prefix contains a space.
E_NOVA_STORE_BUSY500A subscription changed under every attempt to write it.
E_NOVA_STORE_FILE_UNREADABLE500The file store's file is not valid JSON.
E_NOVA_QUASAR_MISSING500A Redis store was configured and @c9up/quasar is not installed.
E_NOVA_REDIS_INCOMPLETE500The quasar connection lacks what nova needs.
E_NOVA_NOT_BOOTED500@c9up/nova/services/main was used before NovaProvider.boot() ran.
E_NOVA_INVALID_OPTION500A delivery or store option is out of range: concurrency, timeout, a pushServices or allowHosts entry, maxSubscriptionsPerUser, maxPerUser, or a push's ttl or topic.
E_NOVA_ASSERTION_FAILED500FakeNova.assertPushed() or assertNotPushed() does not hold.
E_NOVA_INVALID_PREDICATE500A FakeNova assertion was given an empty containing, which would match every push.
E_NOVA_INTERNAL500An invariant of nova broke (the VAPID key pair Node generated has an unexpected shape). A bug: report it.
E_NOVA_SERVICE_WORKER_UNSUPPORTED500@c9up/nova/client ran where there is no navigator.serviceWorker.
E_NOVA_PUSH_SUBSCRIBE_FAILED500The browser refused pushManager.subscribe(); its error is the cause.
E_NOVA_ENDPOINT_REJECTED500The subscription route refused subscribe() or unsubscribe(); status and responseBody hold its answer.

Orbit Errors ​

CodeHTTPDescription
E_ORBIT_NO_HOST500mount ran before useHost gave orbit a native host, or the module is not orbit's.
E_ORBIT_COMMIT_FAILED500The native host refused a commit; the message carries its report. What the commit carried is sent again with the next one; a scheduled commit's refusal goes to mount's onError.
E_ORBIT_UNSUPPORTED_ELEMENT500An element with no native mapping (select, canvas, or text / a gradient inside an svg).
E_ORBIT_BLOCK_IN_TEXT500A block element inside text: native text holds only inline runs.
E_ORBIT_INVALID_MOTION500motion=${…} was not an object of motion values.
E_ORBIT_INVALID_SCROLL_BINDING500scroll-y=${…} was not a motion value.
E_ORBIT_INVALID_COLOR500A colour orbit cannot read.
E_ORBIT_INSECURE_IMAGE_URL500<img src> over plain http: images are fetched over https only. Thrown for an address written in the template; for one from data, that image shows nothing and the error goes to mount's onError.
E_ORBIT_IMAGE_SOURCE500<img src> with a scheme that is not an image source (data:, javascript:…), with no scheme (//host/a.png) or a file: URL that does not decode. Thrown or reported as E_ORBIT_INSECURE_IMAGE_URL is.
E_ORBIT_DUPLICATE_KEY500Two elements of an each list share a key.
E_ORBIT_NO_SCREEN500useScreen() in a component no screen of a stack built.
E_ORBIT_STACK_SHOWN500One stack put in two places: a stack is shown once.
E_ORBIT_STYLE_TABLE500useStyles got something other than a table ream css:compile wrote.
E_ORBIT_INSECURE_SERVER500serverPages({ server }) over plain http to a host that is neither this machine nor the emulator's.
E_ORBIT_UNKNOWN_PAGE500The server named a page the app does not have (serverPages({ pages })).
E_ORBIT_FOREIGN_ORIGIN500A server connection was asked for a path that resolves to another origin.
E_ORBIT_SERVER_REQUEST_FAILED500The server answered a json request with an empty non-2xx response.
E_ORBIT_NO_XHR500Server events need an XMLHttpRequest, and the platform has none.
E_ORBIT_OBJECT_URL_UNAVAILABLE500URL.createObjectURL was called with no platform URL to make blob URLs. A TypeError, as the native API raises.
E_ORBIT_INVALID_URL500The standard URL was given a URL, or a base, that does not parse. A TypeError, as the native API raises.
E_ORBIT_UNSUPPORTED_ENCODING500The standard TextDecoder was given an encoding label other than UTF-8's. A RangeError, as the native API raises.
E_ORBIT_INVALID_DECODER_INPUT500TextDecoder.decode was given something that is not an ArrayBuffer or a view on one. A TypeError, as the native API raises.
E_ORBIT_INVALID_ENCODED_DATA500A fatal TextDecoder met bytes that are not valid UTF-8. A TypeError, as the native API raises.
E_ORBIT_INTERNAL500An invariant inside orbit broke: a bug in orbit.
E_ORBIT_TREE_TOO_DEEP500The views nest more than 100 levels deep: the host lays the tree out on the JS thread's stack, so it refuses the commit before layout. What the commit carried is sent again with the next one.
E_ORBIT_SVG_VALUE500A value of an <svg> the host cannot read (a NaN length, unreadable path data, points or transform). That shape is left out and the rest drawn; reported to mount's onError, never thrown.

Orbit Clipboard Errors ​

Raised by @c9up/orbit-clipboard, the same in the browser and on a phone.

CodeHTTPDescription
E_ORBIT_CLIPBOARD_UNAVAILABLE500No clipboard to reach: the server, an insecure page, or an app built without the native module.
E_ORBIT_CLIPBOARD_DENIED500The platform refused: no permission, or the page or app was not in focus.

Orbit Secure Store Errors ​

Raised by @c9up/orbit-secure-store. A cancelled biometric check is not a failed one.

CodeHTTPDescription
E_ORBIT_SECURE_STORE_UNAVAILABLE500No secure store here: the browser, the server, or an app built without the module.
E_ORBIT_SECURE_STORE_INVALID_KEY500A key that is not 1 to 128 of A-Z a-z 0-9 . _ -.
E_ORBIT_SECURE_STORE_NO_BIOMETRICS500requireAuthentication on a phone with no strong biometric enrolled.
E_ORBIT_SECURE_STORE_AUTH_CANCELLED500The user dismissed the biometric prompt.
E_ORBIT_SECURE_STORE_AUTH_FAILED500The biometric check failed for good: too many attempts, a lockout, a hardware error.
E_ORBIT_SECURE_STORE_INVALIDATED500The key behind the value is gone (a new biometric enrolled, the app's data restored), and the value with it.
E_ORBIT_SECURE_STORE_FAILED500Anything else the platform reported; the error never carries the value.

Parsec Errors ​

CodeHTTPDescription
E_PARSEC_INVALID_NAME500A metric or label name is not valid.
E_PARSEC_INVALID_INSTRUMENT500An instrument is declared with options it cannot have.
E_PARSEC_INSTRUMENT_CONFLICT500A metric name is already declared with a different type, help or label set.
E_PARSEC_INVALID_MEASUREMENT500A measurement is not a finite number.
E_PARSEC_INVALID_LABEL_VALUE500A label value is neither a string nor a finite number.
E_PARSEC_UNDECLARED_LABEL500A measurement was given a label the metric does not declare.
E_PARSEC_UNKNOWN_EXPORTER500An exporter name is not declared.
E_PARSEC_UNPROTECTED_ENDPOINT500The metrics endpoint would be served without protection. Set a token, or public: true deliberately.
E_PARSEC_EMPTY_TOKEN500The metrics endpoint token is empty, which would match a request without credentials.
E_PARSEC_INVALID_CONFIG500config/metrics.ts does not export defineConfig({ default, exporters }).
E_PARSEC_INVALID_BINDING500The container answers something other than a MetricsManager for the MetricsManager token.
E_PARSEC_NOT_BOOTED500The metrics service or the HTTP middleware was used before ParsecProvider bound the manager, or before setMetrics().

Photon Errors ​

Server-side errors are thrown from @c9up/photon (SSR / renderer); client-side errors are thrown from @c9up/photon/client (hydration / SPA-nav). Every code carries a docsUrl that resolves to its anchor below — operators can jump from the terminal directly to the recovery instructions.

E_PHOTON_INVALID_CONFIG ​

Cause. A field in config/photon.ts (or the PhotonConfig passed to PhotonRenderer) fails validation: buildDir resolves outside the project root, or ssr.entrypoint / entryClient contains path-traversal segments or characters outside [\w./\-@#].

Fix.

  1. Open config/photon.ts and verify buildDir is a relative path INSIDE your project (e.g. dist, NOT ../dist).
  2. Verify ssr.entrypoint and entryClient are relative paths without .. segments and end in .tsx? / .jsx? / .vue / .svelte.
  3. Restart the renderer (PhotonRenderer.boot() re-validates).

Also thrown at render time when rootView names a template but the request has no view engine (ctx.view): install one (@c9up/inker sets it), or make rootView return a function that writes the document.

Throw site: packages/photon/src/PhotonRenderer.ts.

E_PHOTON_MANIFEST_MISSING ​

Cause. The Vite manifest at ${buildDir}/manifest.json is absent when PhotonRenderer.boot() runs in production mode. The manifest is a build artefact — its absence almost always means the build never ran for this deployment, or the build output was not shipped.

Fix.

  1. Run your build script (e.g. pnpm build) before starting the server in production.
  2. Verify your deployment pipeline copies the build directory (default public/build/) into the runtime image.
  3. Confirm PhotonConfig.buildDir matches where Vite writes its output.

The thrown error's context carries { manifestPath, buildDir } for diagnostics.

Throw site: packages/photon/src/PhotonRenderer.ts.

E_PHOTON_MANIFEST_INVALID ​

Cause. The Vite manifest is there but cannot be read, is not JSON, or is not a manifest object. Photon used to skip it with a warning and then point every page at a client.js the build never wrote, so the server looked healthy and nothing hydrated; it now fails the boot.

Fix.

  1. Rebuild the client and redeploy the whole build directory — a partial copy is the usual cause.
  2. Check the process can read the file.

The thrown error's context carries { manifestPath }, and cause the read or parse error.

Throw site: packages/photon/src/PhotonRenderer.ts.

E_PHOTON_SSR_LOAD_FAILED ​

Cause. The Vite manifest is present, but the SSR entry module fails to load: missing build output for ssr.entrypoint (or, in development, no file there at all), syntax error in the bundled SSR file, or an unmet peer dependency at runtime. Distinct from E_PHOTON_MANIFEST_MISSING — that code fires when the manifest is absent; this one fires when the manifest is there but import() of the SSR entry rejects.

Fix.

  1. Re-run ream build (or your project's build script) and check its output for warnings.
  2. Verify the SSR entry file exists at one of the expected paths (<ssrBuildDir>/ssr.js or <ssrBuildDir>/<entryName>.js, ssrBuildDir defaulting to build/ssr).
  3. If the build runs but the import still fails, inspect the bundled file for missing peer dependencies (e.g. react-dom/server for the React adapter).

Throw site: packages/photon/src/PhotonRenderer.ts.

E_PHOTON_SSR_RENDER_FAILED ​

Cause. The SSR module loaded successfully, but its render(pageData) call threw or returned a non-string value. Common causes: a component throws during render, a useEffect-equivalent runs server-side and accesses window, or the SSR entry returns undefined.

Fix.

  1. Read error.cause (or the hint) — it carries the original error message from the SSR module.
  2. Audit the page component for browser-only globals (window, document, localStorage) accessed at module top level or in render.
  3. Confirm the SSR entry's render() export returns a string (React: renderToString(...); Vue: renderToString(...) from @vue/server-renderer; Svelte: <App />.render(...).html).

Throw site: packages/photon/src/PhotonRenderer.ts.

E_PHOTON_HYDRATION_NO_DATA ​

Cause. The browser-side hydrate() call ran but no <script id="photon-data" type="application/json"> block was found in the document. Almost always means the page was NOT rendered through PhotonRenderer.render() (a hand-rolled HTML response, a static file, or a 404 page).

Fix.

  1. Confirm the route returning this page goes through PhotonMiddleware / PhotonRenderer.render().
  2. If you serve an SPA fallback, render it through Photon as well — even an empty shell needs the data block for hydrate() to find it.

Throw site: packages/photon/src/client/boot.ts.

E_PHOTON_HYDRATION_BAD_DATA ​

Cause. The <script id="photon-data"> block was found, but its contents are not a JSON object with the expected { component, props, url, framework } shape. Causes: HTML mangling by a CDN / proxy that re-encodes script blocks, double-escaping by middleware that doesn't know the block is meant to be raw JSON, or a manual edit of the SSR template.

Fix.

  1. Inspect the page source: the block content must round-trip through JSON.parse cleanly.
  2. Disable any HTML-rewriting middleware (compression, link-rewriting, CSP nonce injection) that touches the body — verify the block remains intact in production.
  3. If you customised the SSR template, keep the <script type="application/json" id="photon-data">…</script> block exactly as PhotonRenderer.render() emits it.

Throw site: packages/photon/src/client/boot.ts.

E_PHOTON_HYDRATION_NO_TARGET ​

Cause. The hydrate target selector (default #app) matched no DOM node. Usually a custom target option that doesn't exist in the SSR HTML, or a stripped id="app" from a custom template.

Fix.

  1. Confirm the SSR HTML contains the element matching hydrate({ target }).
  2. If you customised the renderer's HTML envelope, keep the <div id="app">…</div> (or override target to match your wrapper's id).

Throw site: packages/photon/src/client/boot.ts.

E_PHOTON_HYDRATION_UNSUPPORTED_FRAMEWORK ​

Cause. The framework field in the page-data block is not one of react, vue, or svelte. Either the SSR side wrote an unexpected value, or page-data was hand-crafted with a typo.

Fix.

  1. Verify PhotonConfig.framework on the server is set to a supported value.
  2. If you serialise page-data manually (rare), ensure framework matches the union literal exactly.

Throw site: packages/photon/src/client/hydrate.ts.

E_PHOTON_HYDRATION_ADAPTER_LOAD_FAILED ​

Cause. Photon successfully read the page-data and dispatched to the right adapter, but the dynamic import() of the framework runtime rejected. Almost always a missing peer dependency: react + react-dom for React, vue for Vue, svelte for Svelte.

Fix.

  1. Install the framework's runtime: pnpm add react react-dom (or vue, or svelte).
  2. The thrown error's cause carries the original module-resolution failure — useful when the package is installed but a sub-path is missing (e.g. react-dom/client requires React 18+).

Throw site: packages/photon/src/client/hydrate.ts.

E_PHOTON_UNKNOWN_ROUTE ​

Cause. A Link, a Form, router.visit or urlFor named a route the browser does not know: it is not among the routes handed over with setRoutes(), or setRoutes() was never called.

Fix.

  1. Call setRoutes(router.namedRoutes()) once, before the first page renders; the error's hint lists the routes it knows.
  2. Check the name against the server's router.as(...).

Throw site: packages/photon/src/client/routes.ts.

E_PHOTON_MISSING_ROUTE_PARAMS ​

Cause. A named route has parameters (/users/:id) that routeParams did not supply. The message names them; context carries the route and the params given.

Fix. Pass every parameter of the route in routeParams.

Throw site: packages/photon/src/client/routes.ts.

E_PHOTON_UNKNOWN_PAGE ​

Cause. The resolve given to createPhotonApp returned nothing for a page name — usually a path built from the name that matches no file of import.meta.glob.

Fix. Check the path resolve builds from the page name against your pages directory; resolvePageComponent throws with the path it looked for.

Throw site: packages/photon/src/client/app.ts.

A note on hydration mismatches ​

Hydration mismatches (server-rendered HTML differs from the client's first render) are not thrown by Photon. Each framework owns this diagnostic:

  • React: emits a console.error with Hydration failed because .... See https://react.dev/errors/418.
  • Vue: emits a [Vue warn]: Hydration ... console warning.
  • Svelte: emits an Error: hydration_failed from svelte/internal.

If you see one, the cause is almost always a non-deterministic render: a Date.now(), Math.random(), useEffect that runs only on the client, or a process.env check that differs between server and browser. Photon's contract is that render(component, props) is pure; ensure your component is too.

CodeHTTPDescription
E_PHOTON_MISSING_CONFIG—The container resolved PhotonRenderer and there is no config/photon.ts.
E_PHOTON_INVALID_DURATION—A once() prop's expiresIn is neither milliseconds nor a duration like 30s, 5m, 7d.
E_PHOTON_SCROLL_CURSOR_UNDERIVABLE—scroll() was given a value that is not an offset paginator and no cursor callback; pass one as its second argument.
E_PHOTON_INVALID_PAGE_MODULE—resolvePageComponent loaded a module with no default export.
E_PHOTON_INVALID_PAGE_RESPONSE—The first page requested from the server answered an error status, or something other than a JSON page object.
E_PHOTON_NO_ROUTER_HOST—The client router ran with no host: no browser document, and none given to bootPage.
E_PHOTON_NO_PAGE—usePage() was called outside a Photon page (on the server, outside <PhotonPage>).
E_PHOTON_UNKNOWN_SCROLL_PROP—An infinite scroll names a prop the page object has no scroll prop for.
E_PHOTON_INVALID_DEFERRED—<Deferred> is missing its data prop or its fallback.
E_PHOTON_FORM_DATA_MISSING—useForm(rememberKey) was called without the form data.
E_PHOTON_FORM_DEFAULTS_UNSUPPORTED—setDefaults() was called on a form whose data is a function.
E_PHOTON_INVALID_SVELTE_ROOT—The svelteRoot given to the Svelte adapter does not export setPage(); pass the root from @c9up/photon/svelte.
E_PHOTON_INVALID_SSR_SETUP—Svelte's createPhotonApp rendered on the server without a setup, or its setup did not return render(App, { props }) from svelte/server.
E_PHOTON_DEFERRED_PROPS_MISSING—The answer to a deferred group did not carry the props asked for; reported on the router's exception event (photon:exception), not thrown, and not asked for again on that visit.

Prism Errors ​

The image engine reports a stable code with each failure; /__image answers its refusals as JSON with the status shown.

CodeHTTPDescription
E_PRISM_IMAGE_NO_SOURCE400/__image was called without src.
E_PRISM_IMAGE_WIDTH_NOT_ALLOWED400w is not one of the configured widths.
E_PRISM_IMAGE_FORMAT_NOT_ALLOWED400f is not one of the configured formats.
E_PRISM_IMAGE_QUALITY_NOT_ALLOWED400q is not one of the configured qualities.
E_PRISM_IMAGE_NOT_FOUND404No image at src.
E_PRISM_IMAGE_UNPROCESSABLE422The source is not an image the endpoint can serve.
E_PRISM_IMAGE_BUSY503Too many images are being rendered; retry shortly.
E_PRISM_EMPTY_INPUT422The input is empty.
E_PRISM_INPUT_TOO_LARGE422The input is over the byte limit.
E_PRISM_TOO_MANY_PIXELS422The image (its header, or any GIF frame), or an image an operation would build, is over the pixel ceiling; refused before it is allocated.
E_PRISM_ZERO_DIMENSION422The image has a zero width or height.
E_PRISM_UNKNOWN_FORMAT422The bytes are not an image format prism recognises.
E_PRISM_UNSUPPORTED_FORMAT422The format is recognised but not supported.
E_PRISM_FORMAT_NOT_ALLOWED422A real image, in a format the application chose not to decode.
E_PRISM_UNREADABLE422The image cannot be read: corrupt, a WebP bitstream whose size is not its frame's, an AVIF item located in more bytes than the file holds.
E_PRISM_DECODE_FAILED422Decoding the image failed.
E_PRISM_ENCODE_FAILED500Encoding the output failed.
E_PRISM_INVALID_GEOMETRY500A geometry the image cannot satisfy: a crop outside its bounds, a target size of zero.
E_PRISM_INVALID_FONT500A font cannot be used.
E_PRISM_COLOUR_SPACE500A colour space that cannot be named, or a conversion the model refuses.
E_PRISM_INVALID_OPERATION500An operation lacks a field it needs, or has one out of range.
E_PRISM_QR_TOO_LONG500More text than a QR code can hold at the chosen level and version.
E_PRISM_INVALID_QR_OPTION500A QR code option out of range, or a colour that is not strict hex.
E_PRISM_INTERNAL_PANIC500The engine panicked; always a bug in prism.
E_PRISM_ENGINE500The engine failed without a known code.
E_PRISM_NATIVE_REQUIRED500The Rust image engine is not loaded.
E_PRISM_NOT_BOOTED—The services/main engine was used before PrismProvider booted or setPrism() was called.
E_PRISM_INVALID_CONFIG500config/images.ts does not export a defineConfig({ ... }) config.
E_PRISM_INVALID_SERVE_CONFIG500images.serve declares no roots, one of its counts (concurrency, queueLimit, effort, memoryCacheBytes, maxCacheBytes…) is out of range, or cacheControl is not 'public', 'private' or false.
E_PRISM_INVALID_BINDING500The container resolved something other than a Prism for the Prism token, or other than a router for router.
E_PRISM_MEMORY_LIMIT422A step of the pipeline (the decoded image, a resize's float intermediate, an encoder's copy) would hold more than limits.maxMemory bytes; refused before it is allocated.

Quasar Errors ​

CodeHTTPDescription
E_INVALID_BYTES_VALUE500A Redis health check memory threshold cannot be read as a size.
E_QUASAR_MISSING_CONFIG500QuasarProvider registers and config/redis.ts does not exist.
E_QUASAR_INVALID_CONFIG500defineConfig declares no connection, or names a default connection it does not declare.
E_QUASAR_INVALID_PORT500A connection's port is not a whole number between 0 and 65535.
E_QUASAR_UNKNOWN_CONNECTION500connection(name) names a connection the config does not declare.
E_QUASAR_UNKNOWN_COMMAND500runCommand() names a command never defined with defineCommand(), or the connection lacks a forwarded command.
E_QUASAR_NOT_A_CLUSTER500nodes() is called on a standalone connection.
E_QUASAR_INVALID_DURATION500cacheFor() on a health check is given a duration it cannot read.
E_QUASAR_NOT_BOOTED500A member of services/main was read before QuasarProvider seated a manager, or before setQuasar().

Ream MCP Errors ​

Returned in the result of the MCP server's template tool.

CodeHTTPDescription
E_INKER_RENDER_TIMEOUT—A template render took longer than the tool allows.
E_INKER_UNKNOWN—A template render failed without an inker code.
E_REAM_MCP_INVALID_ARGUMENT500A tool or helper was called without a required argument (docs.get, docs.explain, an empty string) or with an out-of-range duplicate-detection threshold.
E_REAM_MCP_PROJECT_ROOT_NOT_FOUND—No Ream project root was found walking up from the working directory, or the one found above it is owned by another user or writable by group or others; set REAM_PROJECT_ROOT.
E_REAM_MCP_NATIVE_UNAVAILABLE500The native core did not report a version at startup: the binary is missing or incompatible.
E_REAM_MCP_NATIVE_MISMATCH500The native core answered something the server does not expect (trace, index statistics, model manifest): the binary is stale or from another version.
E_REAM_MCP_PATH_ESCAPE500A migration file name or a model file path resolves outside its directory.
E_REAM_MCP_INVALID_MIGRATION500A migration's default export is not a migration class, or its getDownSQL() does not return a list of strings.
E_REAM_MCP_MODEL_DOWNLOAD_FAILED500Downloading an embeddings model file answered an HTTP error or no body.
E_REAM_MCP_MODEL_INTEGRITY500A downloaded model file does not match its pinned size or SHA-256; nothing is kept.
E_REAM_MCP_SHELL_DISALLOWED500REAM_MCP_NO_SHELL=1 forbids spawning the ream binary.
E_REAM_MCP_CLI_NOT_FOUND—The ream binary is neither at $REAM_BIN nor in the project's node_modules/.bin.
E_REAM_MCP_CLI_OUTPUT_INVALID500The last line of the ream CLI's output is not a JSON object.
E_REAM_MCP_ALREADY_CONNECTED500McpServer.connect() was called on a server that is already connected.
E_REAM_MCP_INTERNAL500An internal invariant broke (an unknown tool kind reached a dispatcher); report it as a bug.
E_REAM_MCP_INDEX_FAILED500The native corpus index could not be built, opened or read (docs.* tools, startup reindex, ream-mcp-reindex); cause is the native error.
E_REAM_MCP_INVALID_JSON500The native core could not read the JSON it was given (search options) or write its answer as JSON; cause is the native error.
E_REAM_MCP_UNSUPPORTED_PLATFORM500Importing @c9up/ream-mcp/napi on a platform with no native binary (supported: linux-x64, linux-arm64 on glibc, darwin-x64, darwin-arm64, win32-x64).
E_REAM_MCP_NATIVE_LOAD_FAILED500The native binary of @c9up/ream-mcp/napi is missing or cannot be loaded; the message names the platform package to install, cause is Node's error.

Relay Errors ​

Returned in the JSON body of the relay routes, or as an error event on a hub.

CodeHTTPDescription
E_RELAY_BAD_REQUEST400subscribe without a usable uid or channel (both non-empty strings).
E_RELAY_CHANNEL_TOO_LONG400The channel name exceeds 256 characters.
E_RELAY_NOT_CONNECTED400No connection has this uid on this instance and no bus is configured to relay the request to the instance holding it — or the connection closed. Also a hub POST for a connection that has no open stream.
E_RELAY_BUS_UNAVAILABLE503The subscription had to be relayed to the instance holding the stream, and the bus refused the message.
E_RELAY_NOT_OWNER403The connection was opened by another user; subscribe, unsubscribe and hub frames must come from the same one.
E_RELAY_CHANNEL_NO_AUTHORIZER403No relay.authorize() covers the channel, and allowUnauthorizedChannels is off.
E_RELAY_CHANNEL_FORBIDDEN403The channel's authorizer refused, or threw.
E_RELAY_MAX_CHANNELS429The connection holds maxChannelsPerClient channels already.
E_RELAY_MAX_CLIENTS—The instance holds maxClients connections already; sent as an error frame before the stream closes.
E_RELAY_MAX_CLIENTS_PER_OWNER—This user holds the maximum number of connections already; sent as an error frame before the stream closes.
E_RELAY_UNKNOWN_CONNECTION400A hub request with no valid connection token — call <path>/negotiate first.
E_RELAY_MAX_CONNECTIONS503A hub already has maxConnections open streams.
E_RELAY_MAX_CONNECTIONS_PER_OWNER503This client already has the maximum number of open hub streams.
E_RELAY_MAX_PENDING503Too many hub connections are negotiated and not yet open.
E_RELAY_SHUT_DOWN503The realtime service is shutting down.
E_RELAY_UNAUTHORIZED401A guarded hub needs an authenticated user, or one authenticated through another guard. Answered at negotiate, at the stream and at the WebSocket handshake; sent as an error event, before the connection closes, when an invocation is refused.
E_RELAY_FORBIDDEN403The user lacks the role or the permissions a hub's guards require. Answered at negotiate, at the stream and at the WebSocket handshake; sent as an error event, before the connection closes, when an invocation is refused.
E_RELAY_UNKNOWN_EVENT—A hub invocation names no handler.
E_RELAY_HANDLER_ERROR—A hub handler threw.
E_RELAY_INVALID_CHANNEL_PATTERN500authorize() was given a channel pattern that could never match.
E_RELAY_INVALID_PING_INTERVAL500pingInterval is neither milliseconds nor a duration like '30s'.
E_RELAY_HUB_PATH_TAKEN500relay.hub() names a path where a hub is already mounted.
E_RELAY_HUB_ALREADY_MOUNTED500One hub instance is mounted a second time; give each mount its own instance.
E_RELAY_DUPLICATE_HANDLER500Two handlers of a hub differ only by case, so they answer the same invocation.
E_RELAY_INVALID_HUB500The object mounted with relay.hub() does not extend Hub.
E_RELAY_INVALID_ADAPTER500The adapter given to relay.hub() is not a SignalRAdapter.
E_RELAY_TRANSPORT_NOT_STARTED500whenTransportReady() was called before startTransport().
E_RELAY_TRANSPORT_SUPERSEDED500A startTransport() was overtaken by a shutdown or a newer start before it subscribed.
E_RELAY_TRANSPORT_UNRELEASED500startTransport() could not release the previous bus subscription, so it refuses to subscribe again; cause is the bus's error.
E_RELAY_QUASAR_MISSING500A Redis bus names a quasar connection and @c9up/quasar is not installed, or its provider has not booted.
E_RELAY_REDIS_INCOMPLETE500The quasar connection lacks a command the bus issues.
E_RELAY_ASSERTION_FAILED500FakeRelay.assertSent() or assertNotSent() does not hold.
E_RELAY_INTERNAL500An invariant of relay broke. A bug: report it.
E_RELAY_SUBSCRIBE_FAILED500The bus client's subscribe failed with something other than an Error; cause holds what it threw.
E_RELAY_MAX_QUEUED429A hub connection already has maxQueuedMessages messages waiting for the hub; the POST is refused and nothing of it runs. A WebSocket in the same state is closed with code 1013.

Robledo Errors ​

Raised by @c9up/robledo.

CodeHTTPDescription
E_ROBLEDO_INVALID_PREFIX500The routes' prefix does not start with /, or ends with one.
E_ROBLEDO_NOT_BOOTED500services/main was used before the provider booted.
E_ROBLEDO_NO_NATIVE_MODULE500The app has no native robledo module: it was not built with robledo installed.
E_ROBLEDO_BAD_RESPONSE500The server answered an update check, or a file download, with something other than an update: an error status, no manifest, a latest answer over 1 MiB, or a file larger than its signed size.
E_ROBLEDO_REFUSED500The phone refused an update: bad signature (checked before any file is fetched), altered file, wrong runtime, another app's update…
E_ROBLEDO_NOT_NEWER500The phone refused an update that is not newer (by its signed createdAt) than the newest it accepted, or than the bundle inside the app: an old, validly signed update served again. A deliberate rollback is published as a new update.

Rosetta Errors ​

CodeHTTPDescription
E_ROSETTA_NOT_BOOTED—The services/main singleton was used before RosettaProvider booted, or before setI18n().
E_ROSETTA_CONFIG_MISSING500config/i18n exports no config built with defineConfig().
E_ROSETTA_INVALID_CONFIG500The i18n config has no formatter.
E_ROSETTA_INVALID_ARGUMENT500A constructor or method got an argument of the wrong shape (an emitter, a manager, a locale, a FileSystemLoader without location or rootDir, an empty format key).
E_ROSETTA_UNSAFE_KEY500A catalog key or an ICU custom format key is one that would reach the prototype (__proto__, constructor, prototype).
E_ROSETTA_DUPLICATE_KEY500A catalog defines the same key twice: a YAML key, or a nested and a dotted key that flatten to one.
E_ROSETTA_INVALID_CATALOG500A catalog file does not parse (unsupported YAML) or holds a value that is neither a mapping nor a scalar message.
E_ROSETTA_CATALOG_LIMIT_EXCEEDED500A catalog is too deep, has too many keys, or a catalog file is too large.
E_ROSETTA_UNSAFE_PATH500A translation directory or file is a symbolic link, or resolves outside the loader's root.
E_ROSETTA_INVALID_PATH500A translation path is not a directory, or not a file, where one is expected.
E_ROSETTA_UNSUPPORTED_RUNTIME500FileSystemLoader was used from the browser build, which has no filesystem.
E_ROSETTA_INVALID_ICU_MESSAGE500An ICU message does not parse, or uses a style, skeleton or option Rosetta or Intl does not support.
E_ROSETTA_ICU_LIMIT_EXCEEDED500An ICU message is too long, too deeply nested, or has too many nodes.
E_ROSETTA_MISSING_VARIABLE500An ICU message uses a variable the call did not provide.
E_ROSETTA_INVALID_DATE500An ICU date or time value is not a Date, a timestamp, an ISO string or a Luxon-like DateTime, or names an impossible date.
E_ROSETTA_CATALOG_MISMATCH500verifyCatalogs({ mode: 'throw' }) found catalogs that disagree; the message is the report.
E_ROSETTA_INTERNAL500An internal invariant broke (an unknown ICU node, a parser state); report it as a bug.

Rover Errors ​

CodeHTTPDescription
E_MAIL_INVALID_MESSAGE500A message lacks what sending needs (a from address, a recipient…).
E_MAIL_INVALID_ADDRESS500An address is not a valid mail address.
E_MAIL_HEADER_INJECTION500A header value contains a line break or NUL.
E_INVALID_LIST_HEADER500A List-* header entry is not one URL (https, http, mailto or ftp) or bare address.
E_MAIL_FIELD_UNSUPPORTED500The transport cannot set a field the message uses (such as the SMTP envelope).
E_ATTACHMENT_UNREADABLE500An attachment's file cannot be read.
E_MAIL_RETRY_CONFIG500A retry setting is out of range.
E_MAIL_CONFIG_MISSING500No mail config is registered. Create config/mail.ts, or run ream configure @c9up/rover.
E_MAIL_UNKNOWN_MAILER500A mailer name, or the default mailer, is not configured.
E_MAIL_UNKNOWN_TRANSPORT500A transport type is unknown.
E_MAIL_JOB_MALFORMED500A queued mail job's payload is missing or not an object.
E_MAIL_TEMPLATE_ENGINE500The app uses inker but rover cannot render mail views with it.
E_MAIL_TEMPLATE_NOT_FOUND500A mail template is not found.
E_MAIL_TEMPLATE_READ_ERROR500A mail template cannot be read.
E_MAIL_TEMPLATE_SYNTAX500A mail template has a syntax error.
E_MAIL_TEMPLATE_RECURSION500Mail templates include each other too deep.
E_MAIL_TEMPLATE_NAPI_REQUIRED500The native rover engine is missing or cannot be loaded; the message names the platform package to install.
E_ROVER_UNKNOWN—A send failed with an error that carries no code of its own.
E_ROVER_NOT_BOOTED500The services/main mail singleton was used before RoverProvider booted.
E_ROVER_FAKE_ACTIVE500mail.fake() was called while a fake is already active; call restore() first.
E_ROVER_INVALID_PREDICATE500A fake-mailer assertion got an empty containing needle, which would match every message.
E_ROVER_ABSTRACT_MAIL500BaseMail was instantiated directly instead of through a subclass.
E_ROVER_WEBHOOK_KEY_MISSING500A webhook handler was created without its secret, public key or signing key.
E_ROVER_WEBHOOK_INVALID_SECRET500The Resend webhook secret is not valid base64, or decodes to fewer than 16 bytes.
E_ROVER_INTERNAL500An internal invariant broke (nodemailer composed no message); report it as a bug.
E_MAIL_TRANSPORT_ERROR500The mail transport failed to send. Its context carries the provider's status or network code; built as new E_MAIL_TRANSPORT_ERROR(message, { context, cause, help }).
E_INVALID_CONFIG500A mail transport's config is missing a property or holds an invalid one (Invalid config for "resend" transport. The "apiKey" property is missing). A message without recipients raises E_MAIL_INVALID_MESSAGE instead.
E_ROVER_ICAL_UNAVAILABLE500icalEvent(callback) needs ical-generator, which is not installed or does not build a calendar.
E_ROVER_WEBHOOK_INVALID_KEY500The SendGrid webhook publicKey is not a public key, or not the ECDSA P-256 key SendGrid signs its event webhook with.

Rune Errors ​

Rune normalises its codes: a code that already starts with E_ is kept, any other gets the E_RUNE_ prefix.

CodeHTTPDescription
E_VALIDATION_ERROR422validateOrThrow() found invalid data. Carries a messages array with one entry per field and rule.
E_RUNE_META_REQUIRED500A validator built with withMetaData() was called without { meta }.
E_RUNE_NOT_A_REGULAR_FILE500A file() value is not a regular file, so it is not an upload.
E_RUNE_INVALID_SIZE500file() was given a size it cannot read.
E_RUNE_INVALID_ERROR_REPORTER500errorReporter takes no argument and did not return a reporter ({ report, createError }).
E_RUNE_INVALID_RULE500use() was given something other than a compiled rule; call the factory first.
E_RUNE_NO_RULE500message() was called before any rule.
E_RUNE_NOT_AN_OBJECT500merge() (or a similar shape method) needs an object() shape.
E_RUNE_PARTIAL_NOT_APPLICABLE500partial() cannot relax a shape that has groups or allowUnknownProperties().
E_RUNE_NO_TYPE_RULE500A unionOfTypes() branch declares no type.
E_RUNE_DUPLICATE_UNION_TYPE500Two unionOfTypes() branches declare the same type.
E_RUNE_ASYNC_RULE_NOT_AWAITED500A synchronous run met an async rule. Use the async variant.
E_RUNE_NO_DATABASE_RESOLVER500A database rule (unique, exists) has no resolver. Call bindDatabase() at boot, or pass a callback.
E_RUNE_NO_HOST_RESOLVER500activeUrl() needs a host resolver.
E_RUNE_UNSUPPORTED_LOCALE500mobile() has no numbering plan for the locale.
E_RUNE_UNSUPPORTED_COUNTRY500A country-specific rule (postalCode()…) has no pattern for the country.
E_RUNE_UNSUPPORTED_JSON_SCHEMA_TARGET500A JSON Schema target rune does not emit.
E_RUNE_NO_OUTPUT_SCHEMA500A validator's output cannot be described as JSON Schema: a transform may produce anything.
E_RUNE_NAPI_REQUIRED500The Rust validation engine is missing or cannot be loaded; the message names the platform package to install.
E_RUNE_NAPI_NOT_FOUND500The Rust validation engine binary is not found; the message names the platform package to install.
E_RUNE_NAPI_REQUEST_REFUSED500The Rust validation engine refused the request.
E_RUNE_NAPI_INVALID_RESPONSE500The Rust validation engine returned an unexpected shape.
E_RUNE_CONFLICTING_URL_OPTIONS500normalizeUrl() was given both forceHttp and forceHttps.

Sigil Errors ​

CodeHTTPDescription
E_SIGIL_UNKNOWN_DRIVER500A hasher names a driver sigil does not know.
E_SIGIL_NAPI_REQUIRED—The driver needs the Rust engine, which is not loaded.
E_SIGIL_NOT_BOOTED—hash.<member> was used before SigilProvider.boot() ran.
E_SIGIL_UNKNOWN_HASHER500hash.use(name) (or the config's default) names a hasher the hash config does not declare.
E_SIGIL_INVALID_OPTION500A hash driver option is not an integer, out of range, not an allowed value, or the options together cost more than verify accepts.
E_SIGIL_PASSWORD_TOO_LONG500make received a password longer than the driver accepts (the shared byte cap, or 72 bytes for bcrypt).

Spectrum Errors ​

CodeHTTPDescription
E_SPECTRUM_UNKNOWN_LEVEL500A transport target level is not a log level.
E_SPECTRUM_UNSUPPORTED_TARGET500A transport target spectrum does not build. Pass a LogChannel to write anywhere else.
E_SPECTRUM_INVALID_FILE_OPTIONS500A file destination is neither a path nor a file descriptor.
E_SPECTRUM_INVALID_LINE_OPTIONS500A JSON-line option is invalid.
E_SPECTRUM_INVALID_REDACT_PATH500A redaction path cannot be parsed.
E_SPECTRUM_INVALID_STRINGIFY_LIMIT500A serialisation limit is not a positive integer.
E_SPECTRUM_UNSUPPORTED_OPTION500A logger option spectrum does not support.
E_SPECTRUM_LOGGER_NOT_BOUND500The container resolved something other than a Logger for the Logger token.
E_SPECTRUM_MISSING_DEFAULT_LOGGER500A multi-logger config ({ default, loggers }) names no default logger.
E_SPECTRUM_UNKNOWN_DEFAULT_LOGGER500The default logger is not declared in loggers.
E_SPECTRUM_UNKNOWN_LOGGER500logger.use(name) names a logger that is not in loggers.
E_SPECTRUM_NOT_BOOTED—The services/main logger was used before SpectrumProvider booted.
E_SPECTRUM_ASSERTION_FAILED500FakeLogger.assertLogged / assertNotLogged failed: the captured entries do not match.
E_SPECTRUM_INVALID_PREDICATE500A FakeLogger assertion was given an empty containing, which would match every entry.

Station Errors ​

CodeHTTPDescription
E_STATION_LOGIN_CREDENTIALS_REQUIRED400The admin sign-in form was sent without an email or a password.
E_STATION_LOGIN_IDENTIFIER_TOO_LONG400The admin sign-in email is longer than 254 characters (RFC 5321); refused before the rate limiter.
E_STATION_INVALID_CREDENTIALS401Invalid email or password.
E_STATION_TOO_MANY_LOGIN_ATTEMPTS429Too many sign-in attempts; try again later.
E_STATION_LOGIN_UNAVAILABLE503Sign-in is temporarily unavailable.
E_STATION_CSRF_REQUIRED403An admin action requires an active, verified CSRF token.
E_VALIDATION_ERROR422An admin form failed validation (JSON clients; a browser is redirected back).
E_STATION_NOT_BOOTED—The services/main registry was used before StationProvider booted, or before setStation().
E_STATION_INVALID_RESOURCE500defineResource() was given an invalid declaration (entity, name, actions, column lists, formFields, audit, onAuditError).
E_STATION_DUPLICATE_RESOURCE500Two resources were registered under the same name.
E_STATION_UNKNOWN_RESOURCE500getOrThrow() named a resource that is not registered.
E_STATION_UNKNOWN_COLUMN500A resource's list.columns, show.columns or editable names a property that is not a column of the entity.
E_STATION_COLUMN_NOT_EDITABLE500editable names a column the framework manages (primary key, timestamp, relation, soft delete) or one formFields hides.
E_STATION_PRIMARY_KEY_MISSING500An admin entity declares no @PrimaryKey() column.
E_STATION_INVALID_CONFIG500A station option is invalid (audit, permissionPrefix, guard, loginRateLimit).
E_STATION_UNKNOWN_GUARD500station.guard names a guard warden does not know.
E_STATION_GUARD_NOT_JWT—The admin guard does not issue a bearer token; Station needs a JWT guard.
E_STATION_AUTH_REQUIRED500No working auth binding is registered while requireAuth: true is set, or outside development and test.
E_STATION_DATABASE_REQUIRED500No db connection is registered for the admin (register @c9up/atlas/provider).
E_STATION_RUNE_REQUIRED500A resource with write forms needs @c9up/rune, which is not installed.
E_STATION_INKER_REQUIRED500No @c9up/inker view engine is registered to render the admin.
E_STATION_INKER_UNUSABLE500@c9up/inker is registered but does not resolve to a usable view renderer; see cause.
E_STATION_ROUTE_MIDDLEWARE_UNSUPPORTED500station.middleware is set but the router's routes have no middleware() method.
E_STATION_INTERNAL500An internal invariant broke (the view engine was not initialised); report it as a bug.

Transit Errors ​

CodeHTTPDescription
E_TRANSIT_INVALID_XML500A provider answered XML that cannot be parsed, or that uses a construct transit refuses.
E_TRANSIT_PROTECTED_PARAMETER500A per-request begin()/redirect() callback tried to set or clear a parameter the sign-in owns (state, nonce, the PKCE challenge, client_id, redirect_uri, response_type), or scope through param() instead of the scope methods.
E_TRANSIT_NOT_BOOTED500@c9up/transit/services/main was read before the provider booted, or before setTransit().
E_TRANSIT_UNKNOWN_PROVIDER404No provider of this name is registered. The message names only the provider asked for.
E_TRANSIT_NOT_A_REDIRECT_PROVIDER500use() / begin() named a directory (LDAP); call authenticate().
E_TRANSIT_NOT_A_DIRECTORY500directory() / authenticate() named a redirect provider; call begin().
E_TRANSIT_BEGIN_UNSUPPORTED500begin() on a driver that has no begin().
E_TRANSIT_TOKEN_PROFILE_UNSUPPORTED500userFromToken() on a driver that cannot read a profile from a token.
E_TRANSIT_USE_BEGIN500redirectUrl() on a provider whose redirect needs a round trip (OAuth1, OpenID Connect, SAML); call begin().
E_TRANSIT_NO_AUTHORIZE_PARAMS500A customizer was passed to an OAuth1 or SAML sign-in, which has no per-request scopes or parameters.
E_TRANSIT_STATE_REQUIRED500A callback ran without expectedState.
E_TRANSIT_MISSING_SECRET500A flow lacks the secret it needs: the secret begin() returned (PKCE verifier, OAuth1 request-token secret), or the token secret an OAuth1 access token signs with.
E_TRANSIT_PKCE_REQUIRED500A provider that requires PKCE got no code verifier.
E_TRANSIT_TOKEN_EXCHANGE_FAILED500The provider's token endpoint answered an HTTP error.
E_TRANSIT_NO_ACCESS_TOKEN500The token response carries no access token.
E_TRANSIT_PROFILE_REQUEST_FAILED500The provider's profile or userinfo endpoint answered an HTTP error.
E_TRANSIT_INVALID_RESPONSE500A provider's response is not JSON, or not a JSON object.
E_TRANSIT_NO_EMAIL500LinkedIn returned no email address; the application needs the r_emailaddress scope.
E_TRANSIT_CALLBACK_NOT_CONFIRMED500An OAuth1 provider did not confirm the callback URL.
E_TRANSIT_NO_REQUEST_TOKEN500An OAuth1 provider answered without a request token.
E_TRANSIT_DISCOVERY_FAILED500OpenID Connect discovery answered an HTTP error.
E_TRANSIT_INVALID_DISCOVERY500The discovery document lacks a required field, names another issuer, or gives an endpoint that is not https.
E_TRANSIT_JWKS_FAILED500Fetching the provider's JWKS failed, or it has no keys array. Keys older than cache.ttlMs are not used in its place.
E_TRANSIT_UNKNOWN_SIGNING_KEY500The id_token names a signing key the provider did not publish.
E_TRANSIT_UNSUPPORTED_ALGORITHM500The provider declares only id_token algorithms transit refuses (asymmetric signatures are required).
E_TRANSIT_NO_ID_TOKEN500The token response carries no id_token; check that the openid scope is granted.
E_TRANSIT_INVALID_ID_TOKEN500The id_token is refused: malformed, bad signature or algorithm, wrong issuer, audience or nonce, expired.
E_TRANSIT_NO_USERINFO_ENDPOINT500A profile was asked from a token alone and the provider publishes no userinfo endpoint.
E_TRANSIT_USERINFO_MISMATCH500The userinfo response describes another subject than the id_token.
E_TRANSIT_SAML_REJECTED500A SAML response or assertion is refused.
E_TRANSIT_INVALID_SIGNATURE500An XML signature does not verify, or is not one transit accepts.
E_TRANSIT_INVALID_BER500An LDAP message does not encode or decode as BER, or a DN, an attribute or a filter value handed to LdapConnection is not a string.
E_TRANSIT_QUASAR_MISSING500A Redis replay store names a quasar connection and @c9up/quasar is not installed, or its provider has not booted.
E_TRANSIT_INCOMPLETE_CONNECTION500The quasar connection lacks a command the replay store issues.
E_TRANSIT_FAKE_NOT_DECLARED500FakeTransit was asked for a provider no willReturn() declared.
E_TRANSIT_FAKE_ASSERTION500A FakeTransit assertion (assertBegan, assertSignedIn, assertNobodySignedIn) failed.
E_TRANSIT_LDAP_ERROR500A directory refused or could not be reached. resultCode holds the LDAP result code when the directory answered one; 400 for invalid credentials (49), for an empty login or password, and for one that is not a string (reported as 49).
E_OAUTH_STATE_MISMATCH400Unable to verify re-redirect state: the OAuth callback's state is missing or differs from the one stored at redirect time (possible CSRF). Start the sign-in again.
E_OAUTH_MISSING_CODE500The OAuth callback came back without its grant (code, oauth_verifier for OAuth1, SAMLResponse for SAML), as when the user denied access. Nothing was sent to the provider.
E_TRANSIT_INSECURE_ISSUER500An OpenID Connect issuer is not an https URL (http://localhost excepted). Raised when the driver is built.

Vellum Errors ​

Vellum normalises its codes: a code that already starts with E_ is kept, any other gets the E_VELLUM_ prefix.

CodeHTTPDescription
E_VELLUM_INVALID_PDF422The bytes are not a PDF vellum can read.
E_VELLUM_SIGNED_DOCUMENT500An edit would invalidate the document's signatures; refused unless the caller says they may go.
E_VELLUM_INVALID_PAGE500A page number is not a whole number from 1.
E_VELLUM_INVALID_ROTATION500A rotation is not a multiple of 90.
E_VELLUM_EMPTY_MERGE500merge() was given no document.
E_VELLUM_EMPTY_SELECTION500Selecting needs at least one page.
E_VELLUM_MERGE_FAILED500Merging documents failed.
E_VELLUM_SELECT_FAILED500Selecting pages failed.
E_VELLUM_SPLIT_FAILED500Splitting the document failed.
E_VELLUM_ROTATE_FAILED500Rotating pages failed.
E_VELLUM_STAMP_FAILED500Stamping an image failed.
E_VELLUM_STAMP_TEXT_FAILED500Stamping text failed.
E_VELLUM_FILL_FAILED500Filling the form failed.
E_VELLUM_FLATTEN_FAILED500Flattening the form failed.
E_VELLUM_RENDER_FAILED500Rendering a page to an image failed.
E_VELLUM_EXTRACT_FAILED500Extracting text failed.
E_VELLUM_WRITE_FAILED500Writing the document failed.
E_VELLUM_SIGN_FAILED500Signing the document failed.
E_VELLUM_VERIFY_FAILED500Verifying the signatures failed.
E_VELLUM_UNKNOWN_SIGNER500No signer of this name is configured.
E_VELLUM_SIGNER_INVALID500A signer's key or certificate is empty.
E_VELLUM_TIMESTAMP_FAILED500Building or reading a timestamp failed.
E_VELLUM_TIMESTAMP_UNREACHABLE500The timestamp authority could not be reached.
E_VELLUM_TIMESTAMP_REFUSED500The timestamp authority answered with an error status.
E_VELLUM_FONT_UNREADABLE500A configured font file cannot be read.
E_VELLUM_FILE_NOT_FOUND500A file given by path cannot be read.
E_VELLUM_INVALID_OPTIONS500A document, page, table or drawing option, or a ceiling, is invalid, or config/vellum.ts asks for a format other than "png" or "jpeg".
E_VELLUM_INVALID_COLOR500A colour cannot be read.
E_VELLUM_INVALID_IMAGE500An image cannot be used (unreadable, or opened by another document).
E_VELLUM_INVALID_SVG500An SVG cannot be used; pass a file as a URL or as its bytes.
E_VELLUM_UNSUPPORTED_CONTENT500A path holds an operator vellum does not draw.
E_VELLUM_INVALID_STRUCTURE500A structure element was changed after it ended.
E_VELLUM_NO_PAGE500There is no current page; call addPage() first.
E_VELLUM_NO_FORM500Form fields were added before initForm().
E_VELLUM_DOCUMENT_ENDED500The document has ended; nothing more can be added to it.
E_VELLUM_NAPI_REQUIRED500The Rust PDF engine is not loaded.
E_VELLUM_NOT_BOOTED—The services/main service was used before VellumProvider booted.
E_VELLUM_TABLE_ENDED500A row was added to a table after lastRow ended it.
E_VELLUM_INVALID_LINK500A link or a named destination cannot be used.
E_VELLUM_INVALID_OUTLINE500An outline entry cannot be used.
E_VELLUM_INVALID_FONT500A font cannot be used.
E_VELLUM_NO_FONT500Text was written before a font was selected.
E_VELLUM_PAGE_OUT_OF_RANGE500A page index names no page of the document.
E_VELLUM_UNBALANCED_RESTORE500restore() was called without a matching save().
E_VELLUM_NOTHING_TO_RESUME500No text is waiting for a page.
E_VELLUM_VALIDATION500The document does not meet its subset (PDF/A, PDF/UA), or a form field or an annotation breaks a PDF rule.
E_VELLUM_DOCUMENT_BROKEN500An earlier call failed inside the engine; start a new document.
E_VELLUM_INTERNAL500The engine panicked.

Visa Errors ​

CodeHTTPDescription
E_UNAUTHORIZED_ACCESS403currentAccessToken.authorize() found a token too narrow for the ability asked. 403, not 401: the request is authenticated (insufficient_scope).
E_VISA_MISSING_ISSUER500No issuer is configured.
E_VISA_INVALID_ISSUER500The issuer is not a URL.
E_VISA_INSECURE_ISSUER500The issuer is not https (localhost excepted).
E_VISA_NO_REDIRECT_URI500A client was registered without a redirect URI.
E_VISA_INVALID_REDIRECT_URI500A redirect URI is not a complete URL.
E_VISA_INVALID_INITIAL_ACCESS_TOKEN500registration.initialAccessToken is empty, which would accept an empty bearer token.
E_VISA_INVALID_SECRET_TTL500registration.secretTtlSeconds is not a positive whole number of seconds.
E_VISA_STORE_READ_ONLY500The client store cannot register clients.
E_VISA_MISSING_CONFIG500VisaProvider found no config/visa.ts; run ream configure @c9up/visa.
E_VISA_NOT_BOOTED500@c9up/visa/services/main was read before VisaProvider booted, or before setVisa().
E_VISA_CREDENTIALS_UNSUPPORTED500authenticate() with credentials on the visa guard, which only verifies a bearer token.
E_VISA_NO_TOKEN_CLIENT500The guard's createToken() ran without tokenClientId: a token is always issued to a client.
E_VISA_INVALID_RESOURCE500A protected-resource identifier is not an absolute URI, or carries a fragment (RFC 8707 §2).
E_VISA_INVALID_CHALLENGE_PARAMETER500A WWW-Authenticate parameter holds a quote, a backslash or a control character, so it cannot be a quoted string.
E_VISA_CORRUPT_ROW500The Atlas store read a column it cannot decode: a list, a date, a string or a client auth method that is not one of the three.
E_VISA_TEST_AUTHORIZE_FAILED500The @c9up/visa/testing helper's authorization request was refused; the message carries the OAuth error.
E_VISA_INTERNAL500An internal invariant broke: a bug in visa, to report.
E_VISA_OAUTH_ERROR400A client's mistake, answered on the wire: oauthCode holds the protocol string (invalid_grant, invalid_client…). 401 for invalid_client and invalid_token, else 400.
E_VISA_UNREDIRECTABLE400An authorization failure that cannot be redirected (unknown client or redirect URI): show error to the user.
E_VISA_INVALID_TTL500A lifetime is not a positive whole number of seconds: accessTokenTtlSeconds, refreshTokenTtlSeconds, codeTtlSeconds or consentTicketTtlSeconds (checked when the VisaManager is built, and by token() and issueAuthorizationCode() when called directly), or the guard's expiresInSeconds (checked by visaGuard() and on each createToken()).

Warden Errors ​

Warden normalises its codes: a code that already starts with E_ is kept, any other gets the E_WARDEN_ prefix.

CodeHTTPDescription
E_UNAUTHORIZED_ACCESS403No guard authenticated the request. A guarded route answers with this code.
E_INVALID_CREDENTIALS400The credentials do not match. authFinder().verifyCredentials throws it for an unknown account and a wrong password alike, after the same hash work.
E_WARDEN_AUTH_STRATEGY_ERROR500Every attempted guard crashed (a database down, a bug): a server incident, distinct from a credential rejection.
E_WARDEN_MFA_REQUIRED403The route declares @RequireMfa and the user has not passed the step-up.
E_AUTHORIZATION_FAILURE403A bouncer ability or policy denied the action (403 unless the denial gives another status). The exported class carries the denial as error.response, translation included.
E_WARDEN_UNAUTHORIZED401The standalone expressMiddleware() found no token or refused it.
E_WARDEN_AUTH_ERROR500The standalone expressMiddleware() failed internally.
E_WARDEN_NO_AUTH_CONFIG500WardenProvider booted without any guard configured.
E_WARDEN_NAPI_REQUIRED500The Rust JWT engine is not loaded.
E_WARDEN_NOT_BOOTED500The AuthManager singleton was used before WardenProvider.boot() ran.
E_WARDEN_AUTH_NOT_REGISTERED500AuthManager is not in the container; add WardenProvider to the providers.
E_WARDEN_INVALID_CONFIG500A guard, token, MFA or rate-limit setting is invalid.
E_WARDEN_STRATEGY_NOT_FOUND500A guard name is not configured.
E_WARDEN_STRATEGY_CANNOT_ISSUE500issueFor() on a guard that does not mint tokens.
E_WARDEN_STRATEGY_CANNOT_LOGIN500login() / logout() on a stateless guard (JWT, API key).
E_WARDEN_STRATEGY_HAS_NO_CLIENT500A guard has no authenticateAsClient(), so it cannot forge a client request in tests.
E_WARDEN_USE_LOGIN500The session guard has no credential step. Verify the password yourself, then call login(user).
E_WARDEN_NO_SESSION500A session guard's login() / logout() ran without ctx.session; register the session middleware first.
E_WARDEN_REMEMBER_ME_UNAVAILABLE500Remember-me was asked and no remember-me tokens are configured.
E_WARDEN_TOKEN_TTL_INVALID500A token lifetime (a refresh token's TTL, an access token's lifetime) is not a positive finite number; a token lifetime must also be whole seconds.
E_WARDEN_OTP_STORE_FULL500The in-memory OTP store holds its maximum of pending challenges.
E_WARDEN_OTP_STORE_CONTRACT500The OTP challenge store does not implement take().
E_WARDEN_WEBAUTHN_STORE_FULL500The in-memory WebAuthn challenge store holds its maximum of pending ceremonies.
E_WARDEN_STORE_TTL_INVALID500A challenge store ttlMs is not a positive integer.
E_WARDEN_STORE_LIMIT_INVALID500A challenge store maxEntries is not a positive integer.
E_WARDEN_WEBAUTHN_CREDENTIAL_EXISTS500The WebAuthn credential id is already registered; registration answers { verified: false }.
E_WARDEN_INVALID_CREDENTIAL500A stored WebAuthn public key is malformed.
E_WARDEN_INVALID_ABILITY500Bouncer.ability() was given options without a callback.
E_WARDEN_UNKNOWN_ABILITY500No ability of this name is registered on the bouncer.
E_WARDEN_UNKNOWN_POLICY500No policy of this name is registered on the bouncer.
E_WARDEN_UNKNOWN_POLICY_ACTION500A policy has no method for the action.
E_WARDEN_POLICY_RESOLUTION_FAILED500The container resolved a policy to something that is not an instance of its class.
E_WARDEN_TEMPLATE_ENGINE_UNUSABLE500The template engine is installed but @can / @cannot cannot be registered on it.
E_WARDEN_INVALID_DURATION500A duration string does not parse, or names an unknown unit.
E_WARDEN_INVALID_TOTP_SECRET500The secret given to TotpProvider.generate() / verify() is not base32.
E_WARDEN_BLACKLIST_REQUIRED500JwtStrategy.revoke() on a guard built without a blacklist.
E_WARDEN_STRATEGY_CANNOT_AUTHENTICATE500authenticate() with credentials on an API key guard; the token goes to verify().
E_WARDEN_QUASAR_MISSING500A Redis token blacklist names a quasar connection and @c9up/quasar is not installed, or its provider has not booted.
E_WARDEN_INCOMPLETE_CONNECTION500The quasar connection lacks a command the token blacklist issues (set, exists).
E_WARDEN_REFRESH_STORE_CONTRACT500The refresh token driver given to rotateRefreshToken has no consume() or no revokeFamily(). consume(familyId, presentedHash, successor) must replace the family's hash only if it is still the one presented, in one indivisible operation (an UPDATE … WHERE family_id = ? AND hash = ? and its affected row count, or a Lua script on Redis).
E_WARDEN_EMPTY_GATE_REQUIREMENT500@Guard(), @Role() or @Permission() names nothing to require (no argument, or only empty names, such as an empty list read from configuration). Thrown when the decorator is applied, at class load, and by warden's middleware for an action whose metadata names nothing, so the action is never read as public. Name at least one guard, role or permission, or remove the decorator.