Cant send http request to webhook jira

Hello i want to ask about http request payload to jira incoming webhook automation

i testing on my postman and curl and thats no problem always success

but when i put the config in body n8n it always error

NodeOperationError: JSON parameter need to be an valid JSON
    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js:1296:35)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:706:42)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:656:68
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1058:20

the payload success if i didnt using paramter “description” if i put it in payload always error like that, whats the problem? anybody can help me?

this my payload in body http request post

{
“issues”: [
“{{ $json.jscode }}”
],
“data”: {
“fields”: {
“summary”: “{{ $json.summary }}”,
“description”: “{{ $json.description }}”
},
“releaseVersion”: “5.3.2”
}
}

i using n8n version 1.27

thank youu

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

@code_werich , you left a lot for a guess. It would help if you could provide the actual setup of your HTTP Request node.

Though, the error is clear, your payload is not a valid JSON. My guess that your are using JSON body. Try to replace your payload with expression like this.

{{
  {
    "issues": [
      $json.jscode
    ],
    "data": {
      "fields": {
        "summary": $json.summary,
        "description": $json.description
      },
      "releaseVersion": "5.3.2"
    }
  }
}}

If still doesn’t help, please, share the whole HTTP Request node and the values of that $json item.

1 Like

i think this code resolve my problem. thank you so much…