Trigger nodes won’t stop listening for event

Describe the problem/error/question

When I set up trigger nodes like Webhook, Telegram or Form submission and then click “Listen for Test Event” the UI indicates that I should send a sample request to the webhook URL. When I do so then flow executes. However, the UI still says “Listening for test event”.
I found advice on this forum to add “proxy_buffering off;” setting to the nginx virtual host, but it doesn’t help in my case.

In browser console I see a error:
WebSocket connection to ‘wss://n8n.mydomain.com/rest/push?pushRef=87xqzuykmo’ failed:

nginx server is installed and configured with Fastpanel:

upstream n8n.mydomain.com {
    server n8n.mydomain.com:5678;
}

server {
    server_name n8n.mydomain.com ;
    listen 194.87.221.26:80;
    listen 194.87.221.26:443 ssl;
    
    ssl_certificate "/var/www/httpd-cert/n8n.mydomain.com_2024-12-09-19-33_06.crt";
    ssl_certificate_key "/var/www/httpd-cert/n8n.mydomain.com_2024-12-09-19-33_06.key";

    charset utf-8;
    gzip on;
    gzip_min_length 1024;
    gzip_proxied expired no-cache no-store private auth;
    gzip_types text/css image/x-ico application/pdf image/jpeg image/png image/gif application/javascript application/x-javascript application/x-pointplus;
    gzip_comp_level 1;

    set $root_path /var/www/wiki_eu_ru_usr/data/www/n8n.mydomain.com;

    root $root_path;
    disable_symlinks if_not_owner from=$root_path;

    location / {
        #proxy_pass http://n8n.mydomain.com;
        include /etc/nginx/proxy_params;
        proxy_http_version 1.1;
        proxy_set_header Connection ‘’;
        proxy_buffering off;
        proxy_pass http://localhost:5678;
    }

    location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpeg|avi|zip|gz|bz2|rar|swf|ico|7z|doc|docx|map|ogg|otf|pdf|tff|tif|txt|wav|webp|woff|woff2|xls|xlsx|xml)$ {
        try_files $uri $uri/ @fallback;
    }

    location @fallback {
        proxy_pass http://n8n.mydomain.com;
        include /etc/nginx/proxy_params;
    }


    include "/etc/nginx/fastpanel2-sites/wiki_eu_ru_usr/n8n.mydomain.com.includes";
    include /etc/nginx/fastpanel2-includes/*.conf;


    error_log /var/www/wiki_eu_ru_usr/data/logs/n8n.mydomain.com-frontend.error.log;
    access_log /var/www/wiki_eu_ru_usr/data/logs/n8n.mydomain.com-frontend.access.log;
}

N8N Env variables:

docker run -d --restart unless-stopped -it \
    --name n8n \
    -p 5678:5678 \
    -e N8N_HOST="n8n.mydomain.com" \
    -e VUE_APP_URL_BASE_API="https://n8n.mydomain.com/" \
    -e WEBHOOK_URL=https://n8n.mydomain.com/ \
    -e GENERIC_TIMEZONE="Europe/Berlin" \
    -e TZ="Europe/Berlin" \
    -v ~/.n8n:/home/node/.n8n \
    n8nio/n8n

Can anyone help me to fix this problem?

Information on your n8n setup

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

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:
1 Like

I found a solution. I added a location block to nginx settings:

location /rest/push {
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        
        proxy_buffering off;
        proxy_pass http://localhost:5678;
    }
1 Like

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