The inputs are not valid
- Type
https://pyeconomics.dev/problems/invalid-input- HTTP status
- 422
- Exit code
- 3 (invalid input)
- Raised as
InputError
What it means
An input failed validation: a wrong type, a value outside its bounds, a missing field or a number that is not finite. The problem's errors list each field at fault, without its value.
What to do
Correct the fields the errors name. Each model's page lists its inputs with their units and bounds; rates are decimals (0.05, not 5).
Every 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.