Replies: 1 comment
|
Thanks for the detailed write-up, @mooshuree — the One thing worth knowing about the remaining error: Debug steps, in order of likelihood: 1. Check for an OOM kill. Your compose sets
2. Correlate with server logs. At the exact timestamp of a failed n8n execution, check the OpenWA container logs: did the 3. Bypass n8n to isolate. Send the same video directly to the API:
4. Include your OpenWA version in whatever you end up reporting — it matters a lot for anything engine-related. My money is on #1. Let us know what the |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm using the official OpenWA n8n node provided by the OpenWA project to send WhatsApp videos.
The workflow checks whether a number exists on WhatsApp, checks the OpenWA session status, and then sends a video using the Send Video node.
The "Send Video" operation works sometimes, but intermittently fails.
When it fails, n8n reports:
NodeApiError: The connection to the server was closed unexpectedly, perhaps it is offline. You can retry the request immediately or wait and retry later. at ExecuteContext.httpRequestWithAuthenticationStack Trace
NodeApiError: The connection to the server was closed unexpectedly, perhaps it is offline. You can retry the request immediately or wait and retry later. at ExecuteContext.httpRequestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+exporter-trace-otlp_56f5a5be5f9a76dfbcdc404d6ec4dea5/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helpers/authentication.ts:145:9) at processTicksAndRejections (node:internal/process/task_queues:104:5) at ExecuteContext.httpRequestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+exporter-trace-otlp_56f5a5be5f9a76dfbcdc404d6ec4dea5/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helpers/factory.ts:119:11) at ExecuteContext.execute (/home/node/.n8n/nodes/node_modules/@rmyndharis/n8n-nodes-openwa/nodes/OpenWa/OpenWa.node.ts:2730:26) at WorkflowExecute.executeNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+exporter-trace-otlp_56f5a5be5f9a76dfbcdc404d6ec4dea5/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1082:8) at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+exporter-trace-otlp_56f5a5be5f9a76dfbcdc404d6ec4dea5/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1382:11) at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+exporter-trace-otlp_56f5a5be5f9a76dfbcdc404d6ec4dea5/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1855:27 at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+exporter-trace-otlp_56f5a5be5f9a76dfbcdc404d6ec4dea5/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2549:11I also added a session-status check immediately before Send Video. Even when the session status is reported as:
ready
the subsequent "Send Video" request can still fail.
Media size
I initially suspected a media-size limitation.
Small videos around 1–2 MB work.
Larger videos initially failed, but I discovered that the OpenWA Docker configuration had the default:
BODY_SIZE_LIMIT=25mb
I changed it to:
After this change:
22 MB video → works
44 MB video → works
Therefore the HTTP request-body limit was one separate issue, but it does not explain the intermittent Send Video failure.
The videos are sent to the OpenWA n8n node as Binary Data.
Video format
The video that was tested is a standard MP4:
codec: H.264
audio: AAC
pixel format: yuv420p
resolution: 480x848
framerate: 25 FPS
OpenWA Docker configuration
I'm running OpenWA using the provided Docker Compose configuration.
Relevant settings:
mem_limit: ${OPENWA_MEM_LIMIT:-2g}
The OpenWA session remains in ready state when the failure occurs.
Question
Has anyone encountered this intermittent Send Video failure with the official OpenWA n8n node?
Specifically, I'm trying to determine whether this could be related to:
whatsapp-web.js / WhatsApp Web media sending
Puppeteer ExecutionContext.evaluate()
OpenWA session/client state despite the session reporting ready
Binary media handling in the n8n node
Multiple consecutive media sends
Some internal OpenWA media/request timeout or queue
A WhatsApp Web version compatibility issue
The failure is intermittent and can occur even on the first item of an execution, so it does not appear to be strictly related to processing a particular item.
Any suggestions for additional logs or debugging steps would be appreciated.
All reactions