﻿# JOINED_RESPONSE_TOO_LARGE — a callbacks answer is larger than it may hold under the transaction

A compute members callback — a request carrying a transaction token — runs while it holds its transaction, and its answer is built in memory and sent onl…

<em>cyoda-go version <a href="https://github.com/Cyoda/cyoda-go/releases/tag/v0.9.0">0.9.0</a></em>

# errors.JOINED_RESPONSE_TOO_LARGE

## NAME

JOINED_RESPONSE_TOO_LARGE — the answer to a request made under a transaction token is larger than the server may hold while it holds the transaction.

## SYNOPSIS

HTTP: `413` `Content Too Large`. Retryable: `no`.

## DESCRIPTION

A compute member's callback — a request carrying a transaction token — runs while it holds its transaction, and its answer is built in memory and sent only once the transaction has been let go of. Everything else waiting on that transaction, including the end of the callout itself, waits behind those bytes, so the answer has a ceiling: `CYODA_CALLOUT_JOINED_RESPONSE_MAX_BYTES` (default `10485760`, 10 MiB). The message carries the configured figure.

The whole answer is discarded when it passes the ceiling. Nothing is sent in part: a collection cut short would be a wrong answer given as an available one, and the caller could not tell the two apart. The same applies on all three doors — the HTTP callback door and the two gRPC ones, the unary door and the server-streaming door, where the frames of a chunked collection are counted together.

On an entity write this answer is a failed write: its writes are discarded, except a schema extension it made, which stays (`cyoda help models`, SCHEMA EXTENSION), and the transaction becomes rollback-only — the operation that owns it fails with `409 TRANSACTION_ROLLBACK_ONLY`.

The ceiling is on the answer only. A callback's *request* body has its own, separate cap — a fixed 10 MiB, which no setting moves — and a body over it is refused with `413` `BAD_REQUEST` before the transaction is touched.

The message carries the configured figure under the rule this server's refusals follow: a refusal names the figure the caller can work within, and withholds one that only reads how loaded the node is. A byte ceiling is the first kind — a caller pages its read to fit under it. `TOO_MANY_JOINED_REQUESTS` withholds its queue cap for the opposite reason: no caller can act on it.

Not retryable: the same request builds the same answer again. Ask for less — `pageSize` and `pageNumber` on a get-all, `limit` on a search — and make several callbacks instead of one. If the deployment's compute members legitimately read more than this in one callback, an operator raises `CYODA_CALLOUT_JOINED_RESPONSE_MAX_BYTES`; the cost is memory held on the owning node while the transaction is held.

See `cyoda help config grpc` for the variable. Over gRPC the code is the message prefix of the error envelope.

## SEE ALSO

- errors
- errors.CALLOUT_SUPERSEDED
- errors.SEARCH_RESULT_LIMIT
- config

## See also

- [`cyoda help errors`](/help/errors/) — Every error response from the Cyoda REST API carries a structured `errorCode` in the `properties` object. Multiple codes may share the same HTTP status. Programmatic handling keys on `errorCode`, not HTTP status.
- [`cyoda help errors CALLOUT_SUPERSEDED`](/help/errors/callout_superseded/) — A compute node receives a transaction token with each processor, criterion or function request, and presents it on the API requests it makes while it works. The token is valid for that one request on that one compute node. This error fires when the token is presented after cyoda gave the same work to another compute node — because this one did not answer within its answer limit, or its connection dropped — or after the request ended: answered, failed or abandoned. The transaction itself is still open; once it has ended the answer is `TRANSACTION_NOT_FOUND` instead.
- [`cyoda help errors SEARCH_RESULT_LIMIT`](/help/errors/search_result_limit/) — Direct (synchronous) search is bounded-or-fail: `limit` caps the matched result set rather than paging it. When more entities match than the limit allows, the request is rejected — it never returns a truncated prefix, because a partial result would be indistinguishable from a complete one.
- [`cyoda help config`](/help/config/) — Environment variables beat default values. The `_FILE` suffix variant takes precedence over the plain variable when both are set — for example, `CYODA_POSTGRES_URL_FILE=/etc/secrets/db-url` wins over `CYODA_POSTGRES_URL`. There are no command-line flags for configuration values; env vars are the sole configuration surface.

## Raw formats

- [`/help/errors/joined_response_too_large.json`](/help/errors/joined_response_too_large.json) — full descriptor (matches `GET /help/{topic}` envelope)
- [`/help/errors/joined_response_too_large.md`](/help/errors/joined_response_too_large.md) — body only