422 Unprocessable
Hi, sometimes fooocus-api will return 422 unprocessable entity from POST /v2/generation/image-prompt HTTP/1.1" 422 Unprocessable Entity. Is it possible for the api to return what is wrong with the request? When playing around sometimes it can be hard to figure out what I have done wrong and this would be very appreciated! Or maybe if you can give me a hint on where to implement this myself? Thank you!
The 422 Unprocessable Entity error means that some of your input parameters are incorrect or have syntax issues. A good way to debug this is to remove a few parameters and test again to see which one is causing the issue.
Once you find it, you can check the correct syntax in the API documentation.
You can also visit your local server docs— it has clear explanations for each API request for each endpoint
Here see the example below