Skip to main content
When an error occurs during request processing, the router classifies it into one of the following types. This classification is available via:
  • Expressions: request.errorType and subgraph.request.errorType (see Template Expressions)
  • Metrics: the wg.error.type OTEL attribute (or wg_error_type in Prometheus)
ValueDescription
rate_limitThe request was rejected because the client exceeded the configured rate limit.
unauthorizedThe request failed authentication or authorization.
context_canceledThe request was canceled, typically because the client disconnected before the response was sent.
context_timeoutThe request timed out before a response could be produced.
upgrade_failedA WebSocket upgrade request to a subgraph failed.
edfsAn error occurred in a Cosmo Streams (EDFS) data source.
invalid_ws_subprotocolThe client requested an unsupported WebSocket subprotocol.
edfs_invalid_messageA message received from a Cosmo Streams backend could not be parsed as valid JSON.
merge_resultThe router failed to merge results from multiple subgraph responses.
streams_handler_errorAn error occurred while handling a Cosmo Streams event.
operation_blockedThe operation was rejected by the operation blocker (e.g. blocked operation type or safelist violation).
persisted_operation_not_foundA persisted operation was requested but could not be found.
validation_errorThe GraphQL operation failed parsing or validation against the schema.
input_errorThe request body was malformed or otherwise invalid (e.g. invalid JSON, missing query).
subgraph_errorOne or more subgraphs returned an error during execution.
unknownAn error occurred that does not match any known category.
publish_errorA Cosmo Streams publish operation failed (Kafka, NATS, or Redis). Only appears on stream produce/consume metrics.
request_errorA Cosmo Streams NATS request-reply operation failed. Only appears on stream produce/consume metrics.