Make errors / Schema

Response body is not a valid JSON. Bad control character in string literal in JSON

platform: Make / category: Schema

Cause

The external API returned a response containing a raw control character (unescaped newline/tab/binary) inside a JSON string, failing strict parsing.

Fix

Turn off 'Parse response' in the HTTP module to receive the raw body as a string, then feed it to a Parse JSON module (its parser may tolerate minor issues). If it still fails, use a text-transform to strip/replace the offending characters first. Report the malformed response to the API provider.

Source thread →

Part of the Automation Error Index — Make errors: browse all.

Hitting an automation error we have not covered?

AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.

Describe the problem