Response body is not a valid JSON

This is my error: Response body is not a valid JSON. Bad control character in string literal in JSON at position 180224

I am trying via HTTP request to get and parse some data, & this is my respond!!!

Any help?

Bump !!! Anyone please?

Hi @Sam_Krausz, Are you parsing data inside your http module ? There’s an option for that.

If that’s the case, maybe use ‘json parse’ module apart? same thing? Do you suspect the json string to really be invalid ? check with chatgpt rapidly

1 Like

Welcome to the Make community!

To allow others to assist you with your scenario, please provide the following:

Relevant Screenshots

Please share screenshots of your scenario, any error messages, relevant module fields, and relevant filter settings. It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:

Scenario Blueprint

Please export the scenario blueprint file to allow others to view the mapped variables in the module fields. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Output Bundles of Modules

Please provide the output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

A. Upload as Text File

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

By providing these details, it will allow others to assist you better.

I am making an HTTP GET request in Make.com to retrieve a JSON response, but Make.com is failing to parse it and showing the error: “Response body is not a valid JSON. Bad control character in string literal at position 180224.” This suggests that the response contains an invalid character or formatting issue, so I need to check if the API is returning properly structured JSON, if there are unexpected control characters, or if Make.com is misinterpreting the response due to incorrect encoding or compression settings.

Make.com surely has some tools to handle this kind of parsing issue, but I don’t know which ones to use.

blueprint.json (765.1 KB)

You’ll need to provide the full error Output body here as requested.

This is because while it may look like JSON, it could also be JSONC or JSONL, which is NOT JSON.

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

— @samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.