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:

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


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:


Similar error with “JSON/RAW Parameters”, o:tag ignored:
@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?
Thank you! My mistake, I used query parameters instead of body in the last case.
Ahh cool. Glad that it finally worked.
1 Like