Skip to content

input.too_large

An input exceeds a size limit

Type https://mthds.ai/errors/input.too_large
Family input: A run's inputs.
Domain input: the caller acts, by changing the request or its inputs
Retry no: repeating the operation fails the same way
HTTP status 422
Raised as a problem document, sent as the body of an HTTP response or kept in a run's record

What it means

An input, or what a template renders from it, passes a bound of the runtime or of the pipe that reads it.

What to do

Shrink the input below params.limit, by splitting a document or reducing an image's resolution, for instance.

Next steps

A problem carries the step aimed at whoever reads it: the first when its reader is the domain's actor, the caller, and the second for any other reader.

Reader Kind Detail
The domain's actor change_input Make the input '{input}' smaller than {limit}, then send the request again.
Any other reader change_input Pass this to the caller, who must make the input '{input}' smaller.

Detail

The problem's detail is written from this template, filled with the occurrence's parameters:

The input '{input}' reaches {size}, past the limit of {limit}.

Parameters

Every parameter is present on every occurrence of the code.

Name Type Description
input identifier The input at fault.
limit integer The bound the input passes.
size integer The size the input, or what a template renders from it, reached.

See also