Have some trouble with Response to Webhook step to return ZIP file

Describe the problem/error/question

We have try to use this as some kind of webhook api to get image and then compress to zip. Client (user) will get zip to download.

call webhook by http://localhost:5678/webhook/p001/?pid=A156dctest for example.

Testing with below work as expect.
http://localhost:5678/webhook-test/p001/?pid=A156dctest

But the production link does not work to return the zip binary.

We try in docker local and it work fine. We also try setup another server with minimum nginx setting and we got similar response minus it does not return error code.

We do have nginx for this but we use config similar to misc/proxy-confs/n8n.subdomain.conf.sample at main · sutidor/misc · GitHub

but without upstream setting. The execution does work normally so I think the problem might be from reverse proxy?

What is weird is I try to make it return json or other return it work fine.Only returning binary have issue.

Below try to return first incoming item.
image

What is the error message (if any)?

On actual sever

502 Bad Gateway


nginx

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.11.2
  • Database (default: SQLite): postgres 15 on docker same server n8n
  • n8n EXECUTIONS_PROCESS setting (default: own, main): How do we check this?
  • Running n8n via (Docker, npm, n8n cloud, desktop app) Docker:
  • Operating system: Ubuntu 22.04

If you more information do let me know. I will ask the infra team.

Hey @punyawee,

Welcome to the community :tada:

It looks like you have done all the troubleshooting for this one, It does sound like the issue is with your nginx confguration but the downside is I am not sure what you would need to add or change to fix this.

Have you checked the nginx logs to see if there are any messages in there? It may also be worth trying a different reverse proxy if you are having troubles with nginx like Caddy.

Okay update, nothing shown up on nginx log.
But I have the infra team change EXECUTIONS_MODE to regular and its work now. I do know form Configuring queue mode | n8n Docs that queue-mode doesn’t support persists binary.

But why does it not work on zip file case? The text binary does work fine.
Also, can i safely change from the existing production to regular mode from queue? I just pick this up for my case so a lot of how and why it got setup this way I am not quite sure yet.

Thank you for your recommend though and have a nice day!

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