The inputs are too large
- Type
https://pyeconomics.dev/problems/input-too-large- HTTP status
- 413
- Exit code
- 3 (invalid input)
- Raised as
InputTooLargeError
What it means
The inputs are larger than the surface decodes: the hosted service takes a smaller body than a local run.
What to do
Send fewer values, or run the model on your own machine, where the limit is larger, with the inputs in a JSON file.
On your own machine, put the inputs in a JSON file and run:
pyeconomics models run <model-id> --inputs FILEEvery pyeconomics surface reports a failure as a problem in the form of RFC 9457: its type, title, HTTP status and detail, and the exit code the command line returns. A problem never holds a key, a file path, a host or an upstream URL. Every problem type.