HTTP request node sends out multiple requests

Describe the issue/error/question

I created a simple workflow, just an MQTT trigger and a HTTP request sent out. I triggered the MQTT event one time and n8n sent out 300 HTTP requests (at least my backend received 300 of these). I expect that with each click there is one HTTP request sent.

What is the error message (if any)?

Please share the workflow

{
  "meta": {
    "instanceId": "MY_INSTANCE_ID",
  },
  "nodes": [
    {
      "parameters": {
        "topics": "THE_TOPIC",
        "options": {}
      },
      "id": "eca628b4-6967-4c36-bd68-9be4078f7a7a",
      "name": "MQTT Trigger",
      "type": "n8n-nodes-base.mqttTrigger",
      "typeVersion": 1,
      "position": [
        1140,
        540
      ],
      "credentials": {
        "mqtt": {
          "id": "1",
          "name": "MQTT account"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "OUR_URL",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{   \"team_id\": 1,   \"watcher_ids\": [     1   ],   \"current_editor_id\": 1,   \"title\": \"Testticket n8n\",   \"is_archived\": false,   \"is_public\": false,   \"created_by\": 1,   \"status\": 36,   \"type_id\": 67 }",
        "options": {}
      },
      "id": "11087723-661d-4663-99f1-c0eb09934535",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 3,
      "position": [
        1360,
        540
      ],
      "executeOnce": false,
      "notesInFlow": false,
      "credentials": {
        "httpHeaderAuth": {
          "id": "2",
          "name": "Header Auth account"
        }
      }
    }
  ],
  "connections": {
    "MQTT Trigger": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Share the output returned by the last node

No output accumulated apparently (I believe n8n interprets this as a success)

Information on your n8n setup

This is in the n8n cloud

Hi @anon64345283

Welcome to the community!
You probably have 300 items going into this HTTP node.
Most n8n nodes will run for each Item comming in. So in this case it will run your HTTP request 300 times because of 300 items coming in.
That’s my best and most obvious guess. :slight_smile:

1 Like

Thanks for the quick response! The only problem is that I am monitoring the MQTT broker and it shows me just one item coming in for this topic (mainly because I created this topic manually for testing). Do you know why pushing one package in MQTT triggers the receiver 300 times?

That would be very odd. I’ve not seen that happen before.
Could you share some screenshots of the workflow(s) you are talking about?
Screenshot of the executions that is.

1 Like

Alright, today it works flawlessly. Maybe it was because my n8n cloud instance was being created still yesterday? I can’t reproduce it anymore…

1 Like

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