Error Diagnostics // NodeFlow Diagnostics
Nginx & Cloudflare 524 Timeout on Agent Streaming
Even when an agent streams tokens, reverse proxy response buffering holds output in memory—causing Cloudflare to return 524 after 100 seconds of apparent silence.
Measured Stack Telemetry & Memory Profile
By default, Nginx buffers upstream SSE chunks until its buffer fills, hiding streaming progress from downstream proxies and clients. Disabling proxy_buffering and enabling chunked transfer encoding flushes tokens immediately, while Make.com handles non-interactive background webhooks.
| Subsystem / Signal | Measured Target | Operational Impact |
|---|---|---|
| Nginx Buffering On | Buffer stalls SSE -> 524 | Client sees zero bytes until chain finishes |
| proxy_buffering off + SSE | First token < 1.2s | Keeps Cloudflare edge socket alive |
| Async Make.com Offload | Zero browser timeout | Ideal for batch doc pipelines & cron runs |
Step-by-Step Triage & Config Remediation
- Disable proxy buffering in Nginx: Add proxy_buffering off; proxy_cache off; and X-Accel-Buffering: no on /api/v1/prediction routes.
- Enable HTTP/1.1 WebSocket & SSE: Set proxy_http_version 1.1 and clear Connection header for SSE or pass Upgrade for Socket.IO.
- Offload batch triggers to Make.com: Never wait synchronously in an HTTP request for 500+ page ingestion; trigger via Make.com webhooks.
location / {
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_buffering off;
proxy_read_timeout 300s;
}
Diagnostic FAQ
Why does Socket.IO disconnect in Flowise behind Nginx?
Missing Upgrade and Connection headers on the reverse proxy block WebSocket upgrades used for real-time agent status.
Can Make.com trigger Flowise prediction APIs safely?
Yes. Make.com HTTP modules support configurable timeouts and retry backoffs without blocking user-facing web pages.