I have an HTTP node that calls an API to post request for a response. I mostly get an error response implying that the externalId being passed in the request is a duplicate. To be able to know the exact externalId being passed, I have connected the http node to a function node to get the request. however, that is not working. The request is not passed when I run the function node
No error is being returned. The function node response is being received
return [
{
json: {
ddsource: “n8n”,
service: “n8n”,
hostname: “n8n-hostname”,
message: “Payment API Request”,
tags: [“env:production”, “team:automation”],
requestPayload: $node[“Pay NG”].request, // Include the request payload
response: $node[“Pay NG”].json.response // Include the response
}
}
];
below is the out put of the function node
[
{
“ddsource”: “n8n”,
“service”: “n8n”,
“hostname”: “n8n-hostname”,
“message”: “Payment API Request”,
“tags”: [
“env:production”,
“team:automation”
]
}
]
- n8n version: 1.73.1
- **Database (default: SQLite): **
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
- Operating system: Linux