waha icon indicating copy to clipboard operation
waha copied to clipboard

[GOWS] - Bug Report: Frame Too Large Error When Sending Status Messages 50K Contacts (Text & Media)

Open TheOneironaut opened this issue 1 year ago • 3 comments

Describe the Bug When trying to send status messages to 50K contacts, I receive a frame too large error. Previously, sending status messages to 15K contacts worked fine without any issues.

Version { "version": "2025.2.8", "engine": "GOWS", "tier": "PLUS" }

Text Message Failure Log: { "statusCode": 500, "timestamp": "2025-03-15T21:33:48.660Z", "exception": { "stack": "Error: 2 UNKNOWN: failed to send message node: frame too large (got 16966369 bytes, max 16777216 bytes)\n at callErrorFromStatus (/app/node_modules/@grpc/grpc-js/build/src/call.js:31:19)\n at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client.js:193:76)\n at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:360:141)\n at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:323:181)\n at /app/node_modules/@grpc/grpc-js/build/src/resolving-call.js:129:78\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)\nfor call at\n at MessageServiceClient.makeUnaryRequest (/app/node_modules/@grpc/grpc-js/build/src/client.js:161:32)\n at MessageServiceClient.SendMessage (/app/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)\n at MessageServiceClient.SendMessage (/app/dist/core/engines/gows/grpc/gows.js:6409:30)\n at node:internal/util:435:21\n at new Promise (<anonymous>)\n at node:internal/util:421:12\n at WhatsappSessionGoWSPlus.sendTextStatus (/app/dist/core/engines/gows/session.gows.core.js:344:78)\n at StatusController.sendTextStatus (/app/dist/api/status.controller.js:28:24)\n at /app/node_modules/@nestjs/core/router/router-execution-context.js:38:29\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)", "message": "2 UNKNOWN: failed to send message node: frame too large (got 16966369 bytes, max 16777216 bytes)", "code": 2, "details": "failed to send message node: frame too large (got 16966369 bytes, max 16777216 bytes)", "metadata": {}, "name": "Error" }, "request": { "path": "/api/status/status/text", "method": "POST", "body": { "text": "<REDACTED>" } } }

Image Upload Failure Log:

{ "statusCode": 500, "timestamp": "2025-03-15T21:05:14.055Z", "exception": { "stack": "Error: 2 UNKNOWN: failed to send message node: frame too large (got 16969197 bytes, max 16777216 bytes)\n at callErrorFromStatus (/app/node_modules/@grpc/grpc-js/build/src/call.js:31:19)\n at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client.js:193:76)\n at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:360:141)\n at Object.onReceiveStatus (/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:323:181)\n at /app/node_modules/@grpc/grpc-js/build/src/resolving-call.js:129:78\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)\nfor call at\n at MessageServiceClient.makeUnaryRequest (/app/node_modules/@grpc/grpc-js/build/src/client.js:161:32)\n at MessageServiceClient.SendMessage (/app/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)\n at MessageServiceClient.SendMessage (/app/dist/core/engines/gows/grpc/gows.js:6409:30)\n at node:internal/util:435:21\n at new Promise (<anonymous>)\n at node:internal/util:421:12\n at WhatsappSessionGoWSPlus.sendMedia (/app/dist/plus/engines/gows/session.gows.plus.js:104:78)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async WhatsappSessionGoWSPlus.sendImageStatus (/app/dist/plus/engines/gows/session.gows.plus.js:128:16)", "message": "2 UNKNOWN: failed to send message node: frame too large (got 16969197 bytes, max 16777216 bytes)", "code": 2, "details": "failed to send message node: frame too large (got 16969197 bytes, max 16777216 bytes)", "metadata": {}, "name": "Error" }, "request": { "path": "/api/status/status/image", "method": "POST", "body": { "file": { "mimetype": "image/jpg", "url": "<REDACTED>" } }, "query": {} }, "version": { "version": "2025.2.8", "engine": "GOWS", "tier": "PLUS", "browser": "/usr/bin/chromium" } }

Summary Previously, sending status messages to 15K contacts worked fine without any issues. However, now that I'm trying to send status messages to 50K contacts, I'm consistently encountering a frame too large error.

This issue occurs for both text messages and media files. I tested multiple image formats (JPG, PNG, WebP) and ensured that all images were under 1MB, yet the issue persists.

Thanks! 🙏

patron:PLUS

TheOneironaut avatar Mar 15 '25 22:03 TheOneironaut

Additionally, does "Send status to specific contacts" exist in GOWS? Perhaps I'll try split it into two batches instead of sending to 50,000 contacts at once—25,000 each time.

patron:PLUS

TheOneironaut avatar Mar 15 '25 23:03 TheOneironaut

Let us try to batch it inside the engine (so you have the same message.id for all ack for easy analytics) and your phone has only one "stories". If we don't find a way to do that - likely batching with different messages is the only way to go :(

patron:PRO

devlikepro avatar Mar 16 '25 08:03 devlikepro

Hi! 2025.3.2 sends status message to many contacts in the way how official apps do - sending it in chunks 5K contacts in each chunk. It should work now in GOWS and NOWEB, but the request will likely take long.

We documented additional details, so you can use "internal" API to generate message.id and control the chunk size for your use case and retries if the request fails. https://waha.devlike.pro/docs/how-to/status/#send-status-to-10k-contacts-manually

Probably you can send status to 50K one contact by one and track it's status, so you 100% know who get the message and how doesn't (but it'll take forever 😆 ) So consider trying built-in chunks or smaller, like 256-512 contacts

patron:PRO

devlikepro avatar Mar 27 '25 08:03 devlikepro