How to see body parameters sent on execution error

Hi,
I’m sending an http post request, and am receiving the message "ERROR: The data in “Body Parameters” is no valid JSON. Is there a way to see the full JSON that was sent in the instance? I can only see the first few characters in the body parameters field when opening the failed execution.

json used to send the data:

{
"nome":"{{$json["body"]["nome"]}} {{$json["body"]["sobrenome"]}}",
"email":"{{$json["body"]["email"]}}",
"origem":"{{$json["body"]["origem"]}}",
"idimobiliaria":"3",
"telefone":"{{$json["body"]["telefone"]}}",
"permitir_alteracao":"true",
"idsituacao":"20",
"campos_adicionais": {
"cf_cpf": "{{$json["body"]["cpf"]}}",
"cf_dependentes":"{{$json["body"]["dependentes"]}}",
"cf_em_qual_cidade_voce_quer_o_seu_ape":"{{$json["body"]["regiaodeinteresse"]}}",
"cf_empreendimento_interesse":"{{$json["body"]["empreendimento"]}}",
"cf_maior_desafio":"{{$json["body"]["maiordesafio"]}}",
"cf_voce_mora_de_aluguel":"{{$json["body"]["moradealuguel"]}}",
"cf_conta_cef":"{{$json["body"]["possuicontanacef"]}}",
"cf_quando_pretende_comprar":"{{$json["body"]["quandopretendecomprar"]}}",
"cf_renda_familiar":"{{$json["body"]["rendafamiliar"]}}",
"cf_tempo_fgts":"{{$json["body"]["tempofgts"]}}",
"cf_motivo_do_contato":"{{$json["body"]["motivocontato"]}}"
},
"interacoes":
{"0":
{
"tipo" : "L",
"descricao" : "Lead em recuperação - remarketing"
}
}
}

Thanks!
Christophe

Is the “Body Parameters” field set to expression?

Hi Jan,

here’s the node I’m talking about:

Hey @cdesseaux

I don’t think there is a way to see what exactly was sent from inside n8n but I can recommend you to use an external tool: https://webhook.site/

Once you open this URL it will create a unique address for you that accepts all type of request.

You can then change the URL in the HTTP Node on your workflow and see what was actually delivered to the receiving side.

I created a small sample that you can test using the following workflow:

To see what was received head to Webhook.site - Test, process and transform emails and HTTP requests

Thanks krynble, that makes sense, but since n8n doesn’t accept the json that I’m sending, it doesn’t even initiate sending it, so nothing arrives. I don’t understand why postman accepts it without problem and everything arrives at the destination application without a hitch, but in n8n it doesn’t work. And it’s not because of parameters, the part that causes the problem is this one:
“interacoes”:
{“0”:
{
“tipo” : “L”,
“descricao” : “Lead em recuperação - remarketing”
}
}

Any help would be greatly appreciated!

Regards,
Christophe

Hum I copied and pasted the JSON you provided into https://jsonlint.com/

It’s telling that the double quotes used are invalid. The JSON you added contains “ and ” quotes that are different than " quotes.

Can this be the case? I am not sure if it’s a copy paste problem but it’s something I noticed.