What is your goal?
I am building a multi-scenario workflow in Make to generate e-commerce short videos using Sora 2 (via KIE AI API).
Scenario 1: Analyzes product names/URLs to extract selling points into Google Sheets. (Works fine)
Scenario 2: Takes selling points from Sheets, uses Gemini to generate visual prompts, and writes them back to Sheets.
Scenario 3: Takes those visual prompts from Sheets and sends an HTTP POST request to KIE AI to generate the video.
Everything works perfectly for a single test run, but when I switch to batch processing, the 3rd scenario consistently fails with: InvalidConfigurationError: The provided JSON body content is not valid JSON. Bad control character in string literal in JSON at position 102 (or 115/185).
What have you tried?
I have followed KIE AI’s API documentation strictly for the Body Content. I suspect the issue lies in the data generated by Gemini in Scenario 2. It seems the output contains invisible line breaks or “bad control characters” that break the JSON structure in Scenario 3’s HTTP module.
My Question:
Is the error caused by the formatting of the Body Content in Scenario 2 (Gemini’s output) or Scenario 3 (HTTP request)?
How can I sanitize the text variables in Make to ensure they don’t break the JSON body during batch execution? (e.g., using replace() functions for newlines or quotes).
What is the problem & what have you tried?
I am building a multi-scenario workflow in Make to generate e-commerce short videos using Sora 2 (via KIE AI API).
Scenario 1: Analyzes product names/URLs to extract selling points into Google Sheets. (Works fine)
Scenario 2: Takes selling points from Sheets, uses Gemini to generate visual prompts, and writes them back to Sheets.
Scenario 3: Takes those visual prompts from Sheets and sends an HTTP POST request to KIE AI to generate the video.
Everything works perfectly for a single test run, but when I switch to batch processing, the 3rd scenario consistently fails with: InvalidConfigurationError: The provided JSON body content is not valid JSON. Bad control character in string literal in JSON at position 102 (or 115/185).
What have you tried?
I have followed KIE AI’s API documentation strictly for the Body Content. I suspect the issue lies in the data generated by Gemini in Scenario 2. It seems the output contains invisible line breaks or “bad control characters” that break the JSON structure in Scenario 3’s HTTP module.
My Question:
Is the error caused by the formatting of the Body Content in Scenario 2 (Gemini’s output) or Scenario 3 (HTTP request)?
How can I sanitize the text variables in Make to ensure they don’t break the JSON body during batch execution? (e.g., using replace() functions for newlines or quotes).
Error messages or input/output bundles
InvalidConfigurationError
The provided JSON body content is not valid JSON.
Bad control character in string literal in JSON at position 102
Origin
Make
Automatic error handler
If you want to handle this error automatically, choose one of the following options. This will create a new error-handler route in your scenario. You can then expand the route in any way you like.





