method.function_invalid
A function the method declares cannot be used
| Type | https://mthds.ai/errors/method.function_invalid |
| Family | method: The method as written, the validation vocabulary included. |
| Domain | method: the method's author acts, by changing the method |
| 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
A PipeFunc's function cannot be imported from the method's tree under the import path it names, lacks or breaks its return type, or shares its name with another.
What to do
Check that function_name is the function's import path from the root of the method's tree, that its module is in the tree, and that the function declares the return type the pipe's output needs.
Next steps
A problem carries the step aimed at whoever reads it: the first when its reader is the domain's actor, the method's author, and the second for any other reader.
| Reader | Kind | Detail |
|---|---|---|
| The domain's actor | change_method |
Correct the function '{function}' of pipe '{pipe}', then validate the method again. |
| Any other reader | contact_owner |
Ask the method's owner to correct the function '{function}'. |
Detail
The problem's detail is written from this template, filled with the occurrence's parameters:
The function '
{function}' of pipe '{pipe}' cannot be used ({finding}).
Parameters
Every parameter is present on every occurrence of the code.
| Name | Type | Description |
|---|---|---|
pipe |
identifier |
The PipeFunc at fault. |
function |
identifier |
The function's import path. |
finding |
caller_text |
What is wrong with the function. |
See also
- Operator: PipeFunc
- Error Registry, which describes the members of this page
- Error Codes, every code of the core registry