What are you trying to achieve?
I am attempting to generate AI images via the FAL.AI API, but I'm encountering a 422 error. I suspect this might be due to unexpected newline characters or spaces in the input. Here's the error message I'm receiving:
Error: 422 Unprocessable Entity
{"detail":[{"type":"json_invalid","loc":["body",355],"msg":"JSON decode error","input":{},"ctx":{"error":"Invalid control character at"}}]}
Could someone please assist with this?
Steps taken so far
I've tried running the module in isolation, and it functions correctly when I input the output from the preceding module.
Screenshots: scenario setup, module configuration, errors
I'm encountering the same issue. Have you managed to find a resolution?
Apologies, I did not. I've removed the scenario and am now operating with Fal.AI, downloading files as necessary.
For anyone encountering this issue: It's likely due to a special character within your prompt. I experienced the same error when my prompt included a " character.
I encountered a similar issue with FLUX.1 from Blackforestlabs.
I had to instruct the AI to exclude any special characters and trailing whitespace.
To ensure this, I implemented a find and replace step to remove empty strings at the end.
I created a video demonstrating this, which you can view here: https://www.youtube.com/watch?v=t5YD9Q3Iy3I