-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webhook Trigger for Post Requests Breaks when able to receive binary data #7213
Comments
Hey @shalalalaw, Which version of n8n were you running previously? Can you also try not setting the |
@Joffcom I'm not positive, I had tried to update about two weeks ago and ran into this issue, so I rolled it back. I can say pretty positively that it was no more than three versions back, and the flow is several months old (so it worked consistently across versions until now). I was able to get that particular workaround in place, but I figured the bug report would be helpful anyways. Thanks. |
I have created |
Same issue, we just upgraded to n8n Will give the scenarios below but here is the source of the issue: n8n/packages/nodes-base/nodes/Webhook/Webhook.node.ts Lines 228 to 230 in 97aa38e
Seems like When
First scenario (updating the existing webhook node)When previously it automatically was detecting the binary file and doing the right thing, after the upgrade it started saying:
Had to change the Webhook node (typeVersion: 1) to this: Step
By the look of it seems like instead of parsing the formdata, it is saving the entire body as binary for Second scenario (deleting Webhook node and adding a new one)After removing and adding again the Now the error gets similar to the initial one:
Here It fails in the same place, but it looks like it tries to set Workflow test{ "name": "My workflow", "nodes": [ { "parameters": { "httpMethod": "POST", "path": "test", "responseMode": "responseNode", "options": { "binaryPropertyName": "file" } }, "id": "e0a8eeb0-2e34-4dc2-a156-ac4282be7754", "name": "Webhook", "type": "n8n-nodes-base.webhook", "typeVersion": 1.1, "position": [ 1060, 660 ], "webhookId": "19c4d395-8f3d-4f6a-9478-d02669097674" }, { "parameters": { "options": {} }, "id": "396b7404-2078-4ed7-9c21-890b5ca7f791", "name": "Edit Fields", "type": "n8n-nodes-base.set", "typeVersion": 3.2, "position": [ 1240, 660 ] }, { "parameters": { "options": {} }, "id": "27834575-5651-4cef-bca1-2bb0af2fb722", "name": "Respond to Webhook", "type": "n8n-nodes-base.respondToWebhook", "typeVersion": 1, "position": [ 1420, 660 ] } ], "pinData": {}, "connections": { "Webhook": { "main": [ [ { "node": "Edit Fields", "type": "main", "index": 0 } ] ] }, "Edit Fields": { "main": [ [ { "node": "Respond to Webhook", "type": "main", "index": 0 } ] ] } }, "active": false, "settings": { "executionOrder": "v1" }, "versionId": "13ede9af-668d-428b-a8ab-b52a20fd9a1a", "id": "akOYRmJsk1Io7yKs", "meta": { "instanceId": "4a76d51d29a71c5b99488f8a7cce39b7774a5946d79d1bf7ecaf14e675bdeaed" }, "tags": [] } ``` |
Hey, So it looks like this was resolved in #7804 which was released in There was another issue that has been solved since then which resulted in filenames having I am going to mark this as closed and if the original issue is still a problem let me know and we can open this again. |
Describe the bug
Webhook trigger receiving both JSON and binary data now shows the JSON params as binary data, and the JSON params themselves look empty.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Binary shows attached content, JSON/Schema view should hold params
Environment (please complete the following information):
Additional context
Same exact flow worked prior to change.
The text was updated successfully, but these errors were encountered: