Hello,
My agent sends sometimes double responses and I have no idea on what might be wrong.
I’m sharing my workflow for the review. Please, advise.
{
“nodes”: [
{
“parameters”: {
“respondWith”: “text”,
“responseBody”: “={{ $json.query[‘hub.challenge’] }}”,
“options”: {}
},
“type”: “n8n-nodes-base.respondToWebhook”,
“typeVersion”: 1.3,
“position”: [
3400,
560
],
“id”: “50b55657-ebec-497b-bb94-04272f1e38a0”,
“name”: “Respond to Webhook”
}
],
“connections”: {},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “db98ca185106ae915a80dbcf4952c8d43496bd08ececdddce71aad22b981dbb1”
}
}
Information on your n8n setup
- **n8n version: 1.95.3
- **Database (default: SQLite):
- **n8n EXECUTIONS_PROCESS setting (default: own, main):
- **Running n8n via (Docker, npm, n8n cloud, desktop app): desktop
- **Operating system: MacOS 15.5 (24F74)
Hey @Lukasz_Filip hope all is well. Welcome to the community.
Most of the time double responses correspond to double inputs. See your workflow logs and examine if there are any places where you get multiple inputs to any of the nodes, which causes duplicate actions in the nodes down the path.
I don’t know if that helps but this is my log:
[
{
“headers”: {
“host”: “lukasz88.app.n8n.cloud”,
“user-agent”: “facebookexternalua”,
“content-length”: “460”,
“accept”: “/”,
“accept-encoding”: “gzip, br”,
“cdn-loop”: “cloudflare; loops=1; subreqs=1”,
“cf-connecting-ip”: “2a03:2880:20ff:2::”,
“cf-ew-via”: “15”,
“cf-ipcountry”: “US”,
“cf-ray”: “963f13a01675205a-IAD”,
“cf-visitor”: “{"scheme":"https"}”,
“cf-worker”: “n8n.cloud”,
“content-type”: “application/json”,
“instagram-api-version”: “v23.0”,
“x-forwarded-for”: “2a03:2880:20ff:2::, 172.71.222.219”,
“x-forwarded-host”: “lukasz88.app.n8n.cloud”,
“x-forwarded-port”: “443”,
“x-forwarded-proto”: “https”,
“x-forwarded-server”: “traefik-prod-users-gwc-8-86454fd949-dmrxs”,
“x-hub-signature”: “sha1=207cf4c684e651bab5dd56ec8fa9faae1f41cb38”,
“x-hub-signature-256”: “sha256=c4e651342cfe5a7dd981565c76d96daee965e0f7133d74ebb7d0d747fe010e59”,
“x-is-trusted”: “yes”,
“x-real-ip”: “2a03:2880:20ff:2::”
},
“params”: {},
“query”: {},
“body”: {
“object”: “instagram”,
“entry”: [
{
“time”: 1753314590630,
“id”: “17841425747492400”,
“messaging”: [
{
“sender”: {
“id”: “17841425747492400”
},
“recipient”: {
“id”: “1915378832530849”
},
“timestamp”: 1753314590187,
“message”: {
“mid”: “aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDI1NzQ3NDkyNDAwOjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTQ4NzcyMjQ2Mzk3MzU5NjozMjM0Mjk0NTUyNTg4ODEzMzQ3MTAzMjkzMTkyNzQ1Nzc5MgZDZD”,
“text”: “Hej\n\nTutaj Łukasz, \nRozmawiałeś z AI”,
“is_echo”: true
}
}
]
}
]
},
“webhookUrl”: “https://lukasz88.app.n8n.cloud/webhook/c07d0528-a7b2-4877-8296-7b5578f01523”,
“executionMode”: “production”
}
]
I’m still learning automation and are not savvy with it.
Could you show a screenshot of an execution where you had a double-response?
It should be under Executions:
This will show you a list of executions (hopefully). Find the one which resulted in double response and show a screenshot.
Do you see my screenshot?
Good morning.
On the screenshot provided I see the workflow wasn’t triggered (likely because the method of the request wasn’t GET.
Oh, pardon me, it was a wrong screenshot. I deleted the correct one and posted the wrong one.
Correct workflow is:
On this screenshot it looks like the execution never passed the “IF” node. Can you click on it in the log:
In this execution, you will see it passes the “if1” node.
I think it doesn’t pass “if1” node just when it wants to repeat itself:
[
{
“headers”: {
“host”: “lukasz88.app.n8n.cloud”,
“user-agent”: “facebookexternalua”,
“content-length”: “744”,
“accept”: “/”,
“accept-encoding”: “gzip, br”,
“cdn-loop”: “cloudflare; loops=1; subreqs=1”,
“cf-connecting-ip”: “2a03:2880:10ff:45::”,
“cf-ew-via”: “15”,
“cf-ipcountry”: “US”,
“cf-ray”: “963d91897235b789-DFW”,
“cf-visitor”: “{"scheme":"https"}”,
“cf-worker”: “n8n.cloud”,
“content-type”: “application/json”,
“instagram-api-version”: “v23.0”,
“x-forwarded-for”: “2a03:2880:10ff:45::, 172.71.167.195”,
“x-forwarded-host”: “lukasz88.app.n8n.cloud”,
“x-forwarded-port”: “443”,
“x-forwarded-proto”: “https”,
“x-forwarded-server”: “traefik-prod-users-gwc-8-86454fd949-dmrxs”,
“x-hub-signature”: “sha1=18af5e4ff4e971712b8ab2b9426201630d6d95f6”,
“x-hub-signature-256”: “sha256=11a68885946a64ef2a7d3c5a3901d24eadf1bb9d0ed741308f5e9f08f035d3be”,
“x-is-trusted”: “yes”,
“x-real-ip”: “2a03:2880:10ff:45::”
},
“params”: {},
“query”: {},
“body”: {
“object”: “instagram”,
“entry”: [
{
“time”: 1753298776448,
“id”: “17841425747492400”,
“messaging”: [
{
“sender”: {
“id”: “17841425747492400”
},
“recipient”: {
“id”: “1430891420917651”
},
“timestamp”: 1753298775942,
“message”: {
“mid”: “aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDI1NzQ3NDkyNDAwOjM0MDI4MjM2Njg0MTcxMDMwMTI0NDI1OTc0NDU0NTI1ODIwMDEyNjozMjM0MjY1MzgwNDU2NjA4OTg4NDQ5MzU2MzM5ODQ1NTI5NgZDZD”,
“text”: “Brzmi idealnie na wypoczynek! Na południu Tajlandii znajdziecie wiele pięknych plaż, gdzie można naprawdę się zrelaksować. Jeśli chcecie, możemy pomóc z transferami lub polecić sprawdzone miejsca na spokojny wypoczynek. Potrzebujesz informacji o transferach lub innych usługach?”,
“is_echo”: true
}
}
]
}
]
},
“webhookUrl”: “https://lukasz88.app.n8n.cloud/webhook/c07d0528-a7b2-4877-8296-7b5578f01523”,
“executionMode”: “production”
}
]
I am sorry, I am not sure what that means.
I still do not see any double responses in the logs, which was the initial reason for the post.
Double response is here. In the previous executions, there are more double responses. Do you want me to show them as well?
Hmm, I guess I might not be understanding what double responses are then, could you explain what makes them… double?
I posted this question because I don’t know what makes them double. That’s why I posted here, not with the solution, but the question related to this issue.
I have no idea what makes them double, hence, my post in this community.
For instance, here there were 3 same responses.
Someone has any idea on why despite setting ‘of’ node, I still more than 1 response to any message?
From the screenshot above we see that each of them have a different webhook trigger (at different times), so if you see two responses, I assume two requests have made it to n8n, which caused n8n to answer twice. Initially I assume I will see a single incoming request and two responses somehow (even though it is not even how requests work), but I see two requests coming in and two requests coming out, which is … normal. So the question is then now why n8n responds twice but why whichever system sends the requests - why does it send two requests, right? Or am I missing something?
Yes, I think something triggers the webhook more than once. The question is: what is it?
I have only one webhook for each social media channel.
I’m totally lost on this.
Anyone ever had similar problem?
It is nearly impossible to figure out why two requests were made to n8n by looking just at n8n. Where do these requests come from? Does this system have logs? Can you send logs? How often does this issue happen? Can you easily reproduce it?