[Magic][BUG?] Why isn't one of the parameters transferred?

I have a mystical situation - Mailgun api(http node) is not getting some parameters on the server side.


Everything works fine, except that mailgun does not see the tagging, as i see inside mailgun:
image

On the other hand, if you send the same data directly through the сurl, everything works fine:
image
image

How can this be and how to debug this?

Try sending tag as an array instead. Add an expression to the o:tag value like {{["tag1"]}}

That didn’t solve my problem:

image
image

Similar error with “JSON/RAW Parameters”, o:tag ignored:


image

@maxbaluev Got it working by sending the data using multipart-formdata. Check the example below:

{
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "authentication": "basicAuth",
        "requestMethod": "POST",
        "url": "=",
        "options": {
          "bodyContentType": "multipart-form-data",
          "useQueryString": false
        },
        "bodyParametersUi": {
          "parameter": [
            {
              "name": "to",
              "value": "[email protected]"
            },
            {
              "name": "from",
              "value": "[email protected]"
            },
            {
              "name": "text",
              "value": "asasasas"
            },
            {
              "name": "subject",
              "value": "asasasas"
            },
            {
              "name": "o:tag",
              "value": "={{['1', '2']}}"
            }
          ]
        }
      },
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        520,
        300
      ],
      "credentials": {
        "httpBasicAuth": "asasa"
      }
    }
  ],
  "connections": {}
}
1 Like

It didn’t work for me. The result is the same as it was. Did you test this with mailgun and did the tag appear?

Yes, it works for me.

image

Thank you! My mistake, I used query parameters instead of body in the last case.

Ahh cool. Glad that it finally worked.

1 Like