#1679·OpenWA

[Bug]: audio sends answer 500 (page error `t`) while the localised "what's new" modal is open at engine init; the pt-BR modal is not recognised by default

Author: DavidgFernandesCreated Sep 21, 2026Updated Sep 23, 2026

Pre-flight

  • I searched existing issues and this isn't a duplicate
  • I'm on the latest released version (or noted my version below)

OpenWA version

0.23.5 (image built from main at 49d7d70b, which includes #1670)

Deployment

Docker Compose

Database

SQLite (default)

WhatsApp engine

whatsapp-web.js 1.34.7, node 22.23.2, puppeteer-core 24.38.0, WhatsApp Web 2.3000.1047978911-alpha (auto pin). The WhatsApp account is in Portuguese (Brazil).

What happened?

Two related things, on a session that reaches ready and whose text sends work:

1. The localised "what's new" modal is not recognised by the onboarding probe. On every boot the log shows

"A visible dialog on WhatsApp Web matches neither the onboarding-modal heading nor a confirm-button label. If this is the onboarding screen in an unrecognised title or language, WhatsApp will unlink this companion within minutes ...",
"dialogs":[{"heading":"wds-picto-whatsapp-outlineNovidades do WhatsApp Webic-close","buttons":["ic-close","Continuar"]}],
"action":"onboarding_dialog_unrecognized"

The default probe matches only /what[’']?s new/i + Continue, so a pt-BR deployment runs with the modal open until an operator sets WWEBJS_ONBOARDING_CONTINUE_LABELS=Continuar. I know the code comment says you will not carry WhatsApp's translation table; I am reporting it because of the second point.

2. While that modal was open at engine init, every AUDIO send failed with 500, and text and image sends kept working. OGG/opus with ptt: true, the same OGG with ptt: false, MP3 with ptt: true, to a @lid chat and to the paired number's @c.us: all 500. send-text and send-image (base64 PNG): 201. The page error is minified:

[ExceptionsHandler] t: t
    at #evaluate (puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:391:56)
    at async Client.sendMessage (whatsapp-web.js/src/Client.js:1544:25)
    at async WwebjsMessaging.sendResolved (dist/engine/adapters/wwebjs-messaging.js:137:20)
    at async WwebjsMessaging.sendMediaMessage (dist/engine/adapters/wwebjs-messaging.js:207:21)
    at async MessageSendService.sendAudio (dist/modules/message/message-send.service.js:193:22)

This is not #1643 / #1670: delete message.__x_id is in the image's Utils.js (line 486) and image sends work. Pinning the last pre-2026-09-17 build (2.3000.1047700797-alpha) changed nothing.

What separated the failing runs from the passing ones was only the modal at init:

  • boots at 01:14, 01:27 and 01:31 UTC (2026-09-21), modal open at ready: six audio sends, all 500 (01:19, 01:21, 01:27, 01:28, 01:32, 01:33);
  • on the 01:31 boot the probe dismissed the modal 5 s AFTER ready (label set through the env): the two audio sends after that still failed;
  • POST /api/sessions/{id}/stop + /start at 01:37, the first engine init without the modal: the same OGG ptt send answered 201, twice;
  • the next two container boots (01:44, 01:47), modal gone for good (WhatsApp shows it once): audio 201 right after ready.

No controlled pair is possible on my side (the modal does not come back), so treat the causal link as the best-supported hypothesis, not a proof. I could not capture the unminified page error: the container rootfs is read-only and a bind-mounted instrumented Utils.js booted without the modal and passed.

Steps to reproduce

  1. Run OpenWA 0.23.5 with ENGINE_TYPE=whatsapp-web.js, WWEBJS_WEB_VERSION unset, and a WhatsApp account whose Web UI renders the "what's new" modal in a language other than English (pt-BR here), without WWEBJS_ONBOARDING_CONTINUE_LABELS.
  2. Start the session until Session ready; confirm the log shows onboarding_dialog_unrecognized with the localised heading and button.
  3. POST /api/sessions/{id}/messages/send-text → 201; send-image (base64) → 201; send-audio (OGG/opus, ptt: true) → 500 with the stack above.
  4. Set WWEBJS_ONBOARDING_CONTINUE_LABELS=<localised label>, then POST /api/sessions/{id}/stop and /start: send-audio → 201.

Expected behavior

The probe recognises the modal (a small localised default list, or a generic fallback for a dialog with a single confirm button and the WhatsApp picto heading), and when a modal is dismissed after ready, the adapter either re-initialises the engine or says in the log that sends may need a session restart. Audio sends should not depend on the modal state at init.

Relevant logs

{"timestamp":"2026-09-21T01:31:38.035Z","level":"info","context":"SessionEngineLifecycle","message":"Session ready: 55<redacted>"}
{"timestamp":"2026-09-21T01:31:43.045Z","level":"info","context":"WhatsAppWebJsAdapter","message":"Dismissed the WhatsApp Web onboarding modal"}
[Nest] ERROR [ExceptionsHandler] t: t        <- send-audio at 01:32:06 and 01:33, after the dismissal
{"timestamp":"2026-09-21T01:37:49.769Z","level":"warn","context":"WhatsAppWebJsAdapter","message":"Page navigated; whatsapp-web.js is re-injecting"}
{"timestamp":"2026-09-21T01:37:50.957Z","level":"info","context":"SessionEngineLifecycle","message":"Session ready: 55<redacted>"}
send-audio 01:38:11 -> 201 {"messageId":"true_..._out"}   send-audio 01:38:43 -> 201
{"timestamp":"2026-09-21T01:44:27.536Z","level":"info","context":"SessionTakeoverService","message":"Adopted session serena from lapsed node bdb4f727e6f9"}
{"timestamp":"2026-09-21T01:44:32.462Z","level":"info","context":"SessionEngineLifecycle","message":"Session ready: 55<redacted>"}
send-audio 01:44:48 -> 201