Improve JSON in Body for a HTTP Request

Hi community,

I have been getting this error when I run the HTTP module

	{"message":"Unexpected token \n in JSON at position 134","error":"Bad Request","statusCode":400}

blueprint.json (56.9 KB)

Can you please advise?

Welcome to the Make community!

Looks like the input JSON is incorrect. You need to escape the special characters in each of the variables, using a “Transform to JSON” module. Then map the transformed variables into the HTTP module.

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

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

1 Like

Thanks a lot.

How did I miss this, otherwise I would have responded sooner.

When you say “escape the special characters in each of the variables, using a “Transform to JSON” module” do you mean have multiple transform to JSON modules or a single one?

I will try this out though. Thank you

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.