input.file_type_unsupported
An input file's type is not supported here
| Type | https://mthds.ai/errors/input.file_type_unsupported |
| 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
The file's format is one that the pipe, or the model it calls, cannot take.
What to do
Convert the file to a format the model takes, such as a PDF or a common image format, or use a method whose model takes this one.
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 |
Give the input '{input}' in a format the model '{model}' takes, then send the request again. |
| Any other reader | change_input |
Pass this to the caller, who must give the input '{input}' in a format the model takes. |
Detail
The problem's detail is written from this template, filled with the occurrence's parameters:
The model '
{model}' cannot take the file of the input '{input}', whose format is '{format}'.
Parameters
Every parameter is present on every occurrence of the code.
| Name | Type | Description |
|---|---|---|
input |
identifier |
The input at fault. |
format |
identifier |
The file's format. |
model |
identifier |
The model the pipe would send the file to. |
See also
- Error Registry, which describes the members of this page
- Error Codes, every code of the core registry