Sending POST requests with previous node data

Hi I am trying to make a relatively simple POST HTTP request to an endpoint. There seems to be some strange formatting happening in the background because when I send the actual value of the payload, without the node variables, it works fine. However, with the node variables it returns a “document not found” error. I have attached a picture of the hardcoded body payload vs the one with previous node variables.

Looking at the format of the outgoing request, it looks like the node variable one adds two “/” on every quotation mark, which could be the cause of this issue, yet is not clear why n8n would do that.

I resolved it by adding a “set” step before, stringifying the json string, then parsing it and then setting to a variable


Glad to hear you figured it out, thx so much for sharing your solution!

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