From trigger stays idle after pushing send button, all the workflow waits

Describe the problem/error/question

Form Trigger stays idle after send button.

my n8n is selfhosted, unde cloudflare.

all my webhooks works fine in test and production mode/URL

What is the error message (if any)?

no error just send infinte wait

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 2.2.3
  • Database (default: SQLite):postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):docker/portainer
  • Operating system:debian

thanx for your help

Fabrizio

I would try restarting your docker instance. It might be a glitch or a bug that can be fixed by restarting.

i’ve done it, pulled down the container. the problem remain

It’s possible something wrong with the cloudfare tunnel, can you try with a diffrent provider?

no, I can’t, but why all my web hook through cloud flare are working?

Just a question to try to resolve: btw, form was working a couple of versions ago :slight_smile:

At least then we can narrow it down to a version issue possibly. Is the webhook URL set in the local config file?

if your ever able to change providers, i reccomend tailscale funnel, its free and works just like cloudfare. Try to check your browser console when pressing the trigger, it will tell hyou if there is errors.

None of the forms work either on my self-deployment.
Version 2.3.1

CF-showing tunnel is healthy, and it is working as usual EXCEPT for the forms just spinning and throwing the below console errors.

Console:
376de6d8-88a2-49e0-9fab-be44b2aad0ad:1 Access to speculationrule at ‘https://[n8n-url]/cdn-cgi/speculation’ from origin ‘null’ has been blocked by CORS policy: The ‘Access-Control-Allow-Origin’ header has a value ‘https://[n8n-url]’ that is not equal to the supplied origin.
speculation:1 Failed to load resource: net::ERR_FAILED
376de6d8-88a2-49e0-9fab-be44b2aad0ad:1 Load failed or canceled (net::ERR_FAILED) for rule set requested from “https://[n8n-url]/cdn-cgi/speculation” found in Speculation-Rules header.
vcd15cbe7772f49c399c6a5babf22c1241717689176015:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
376de6d8-88a2-49e0-9fab-be44b2aad0ad:536 Uncaught SecurityError: Failed to read the ‘localStorage’ property from ‘Window’: The document is sandboxed and lacks the ‘allow-same-origin’ flag.
376de6d8-88a2-49e0-9fab-be44b2aad0ad:1 Access to fetch at ‘https://[cf-client].cloudflareaccess.com/cdn-cgi/access/login/[n8n-url]?kid=[sig]&meta=[meta]&redirect_url=%2Fform-test%[form]’ (redirected from ‘https://[n8n-url]/form-test/[form]’) from origin ‘null’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
VM16:303 GET https://[cf-client].cloudflareaccess.com/cdn-cgi/access/login/[n8n-url]?kid=[sig]&meta=[meta]&redirect_url=%2Fform-test%[form] net::ERR_FAILED 200 (OK)
(anonymous) @ VM16:303
c @ rocket-loader.min.js:1
VM16:373 Error: TypeError: Failed to fetch
at HTMLFormElement. (:303:6)
at HTMLFormElement.c (rocket-loader.min.js:1:9405)
(anonymous) @ VM16:373
Promise.catch
(anonymous) @ VM16:372
c @ rocket-loader.min.js:1

yes, except forms, everything is working.. web hooks, chat url, everything except forms

I would see if you can maybe download the workflow and downgrade your version.

version: "3.8"
services:
  traefik:
    image: "traefik"
    restart: always
    command:
      - "--api.insecure=true"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--entrypoints.web.address=:80"
      - "--entrypoints.web.http.redirections.entryPoint.to=websecure"
      - "--entrypoints.web.http.redirections.entrypoint.scheme=https"
      - "--entrypoints.websecure.address=:443"
      - "--certificatesresolvers.mytlschallenge.acme.tlschallenge=true"
      - "--certificatesresolvers.mytlschallenge.acme.email=${SSL_EMAIL}"
      - "--certificatesresolvers.mytlschallenge.acme.storage=/letsencrypt/acme.json"
    volumes:
      - /srv/dev-disk-by-uuid-83b6a8f9-5b92-4b9f-ab73-81c3cf7cc424/n8n/traefik_data:/letsencrypt
      - /var/run/docker.sock:/var/run/docker.sock:ro

  n8n:
    image: docker.n8n.io/n8nio/n8n:latest
    restart: always
    ports:
      - 5678:5678
    #command: start --tunnel
    labels:
      - traefik.enable=true
      - traefik.http.routers.n8n.rule=Host(`${SUBDOMAIN}.${DOMAIN_NAME}`)
      - traefik.http.routers.n8n.tls=true
      - traefik.http.routers.n8n.entrypoints=web,websecure
      - traefik.http.routers.n8n.tls.certresolver=mytlschallenge
      - traefik.http.middlewares.n8n.headers.SSLRedirect=true
      - traefik.http.middlewares.n8n.headers.STSSeconds=315360000
      - traefik.http.middlewares.n8n.headers.browserXSSFilter=true
      - traefik.http.middlewares.n8n.headers.contentTypeNosniff=true
      - traefik.http.middlewares.n8n.headers.forceSTSHeader=true
      - traefik.http.middlewares.n8n.headers.SSLHost=${DOMAIN_NAME}
      - traefik.http.middlewares.n8n.headers.STSIncludeSubdomains=true
      - traefik.http.middlewares.n8n.headers.STSPreload=true
      - traefik.http.routers.n8n.middlewares=n8n@docker
    environment:
      - N8N_HOST=$##############.$###############
      - N8N_PORT=5678
      - N8N_PROTOCOL=https
      - NODE_ENV=production
      - WEBHOOK_URL=https:##################################
      - GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
      - N8N_SECURE_COOKIE=false
      - N8N_DEFAULT_BINARY_DATA_MODE=filesystem
      - N8N_PROXY_HOPS=1
##
      - DB_TYPE=postgresdb
      - DB_POSTGRESDB_HOST=db
      - DB_POSTGRESDB_PORT=5432
      - DB_POSTGRESDB_DATABASE=n8n
      - DB_POSTGRESDB_USER=n8n
      - DB_POSTGRESDB_PASSWORD=n8n
      - NODE_FUNCTION_ALLOW_EXTERNAL=axios,qs
      - NODE_OPTIONS=--max-old-space-size=8192
    depends_on:
      - db      
##
    volumes:
      - /srv/dev-disk-by-uuid-83b6a8f9-5b92-4b9f-ab73-81c3cf7cc424/n8n/n8n_data:/home/node/.n8n
      - /srv/dev-disk-by-uuid-83b6a8f9-5b92-4b9f-ab73-81c3cf7cc424/n8n/local-files:/files
    networks:
      myNetwork:
        ipv4_address: 172.16.1.### #add ip here

  db:
    image: postgres:12
    #image: ankane/pgvector
    volumes:
      - /srv/dev-disk-by-uuid-83b6a8f9-5b92-4b9f-ab73-81c3cf7cc424/n8n/db-data:/var/lib/postgresql/data
    environment:
      - POSTGRES_USER=n8n
      - POSTGRES_PASSWORD=n8n
      - POSTGRES_DB=n8n
    restart: unless-stopped
    networks:   
      myNetwork:
        ipv4_address: 172.16.1.### #add ip here

  adminer:
    image: adminer
    restart: always
    ports:
      - 8081:8080
    networks:
      myNetwork:
        ipv4_address: 172.16.1.### #add ip here
    environment:
      ADMINER_DEFAULT_SERVER: db
      ADMINER_DEFAULT_DB_DRIVER: pgsql
    depends_on:
      - db
    
volumes:
  n8n_data:
  traefik_data:
  db-data:

networks:
  myNetwork:
    external: true
    name: myNetwork


I paste here my docker compose, maybe someone find something wrong. But forms were working before, with the same composer