NocoDB Webhook created via API body error

Describe the problem/error/question

I’m trying to create a NocoDB Webhook via an API call in the docs it says that in the body section goes {{ json data }}, in N8N it gives me an error

When I Remove the Body section on the response of the Webhook it returns an empty body.

What I need is to NocoDB returns all the info of the row of the triggered Webhook, the normal response of a Webhook created in the NocoDB UI.

What is the error message (if any)?

n8n version

1.58.2 (Self Hosted)

Error cause

={ "active": 1, "env": "all", "event": "after", "notification": "{\"type\":\"URL\",\"payload\":{\"method\":\"GET\",\"body\":\"{{ json data }}"}\", \"headers\":[{}],\"parameters\":[{}],\"auth\":\"\",\"path\":\"webhook URL"}}", "null": null, "operation": "update", "retries": 10, "retry_interval": 60000, "timeout": 60000, "title": "Generador", "condition": true }

Stack trace

Error: invalid syntax at Expression.renderExpression (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Expression.js:234:23) at Expression.resolveSimpleParameterValue (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Expression.js:207:34) at Expression.getParameterValue (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Expression.js:290:25) at getNodeParameter (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:1622:42) at Object.getNodeParameter (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:2344:24) at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js:1262:44) at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:722:42) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:670:66 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1100:20

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

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

Hi @Alexander_Urbina

Thanks for posting here and welcome to the community! :partying_face:

The correct syntax is {{ $json.data }} (provided there is such a property on the input data. Give this a go and see if that fixes it.

Would you be able to share which documentation you were referring to?

Thanks!

Thanks, yes the correct syntax is {{ $json.data }}, I just change from expression to Fixed, that way is not considered as a variable for n8n.

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