Issue with respond to webhook large binary file

Describe the problem/error/question

I have a workflow that is called via a webhook with the goal of returning a specific file. Until now, I used the webhook node with the parameter ‘response data’ set to ‘first entry binary,’ and it was working perfectly.

However, I believe that since an update, this functionality is no longer working. n8n returns a large JSON response like this:

image

So, I tried using the ‘respond to webhook’ node. I conducted several tests, and my workflow works when the size of the returned file is up to 20MB. However, with a 23MB file, I do not receive the file, and my request is pending indefinitely.

The strange thing is that my workflow works when I use the webhook test; the file is returned properly, but it does not work in production. In execution tab, the workflow ended normally but I never received a file.

For info, I set the ENV var N8N_PAYLOAD_SIZE_MAX to 500 in n8n_main, workers and webhook instances.

What is the error message (if any)?

No error, the workflow show a successful execution :

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

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

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