Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

fix(docker): pass WWEBJS_WEB_VERSION through to the container (#273) (#274)

Yudhi Armyndharis513278443440
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0a9ba5287..bd9a97574 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -45,6 +45,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
`…@c.us` form (e.g. a `@lid` identifier) rather than echoing the input. And status/story
broadcasts are flagged with a neutral `isStatusBroadcast` on the message payload, so engine-neutral code no longer
matches the engine-specific `status@broadcast` pseudo-JID. A non-whatsapp-web.js engine supplies its own JID scheme.
+### Fixed
+
+- The `WWEBJS_WEB_VERSION` (and `WWEBJS_WEB_VERSION_REMOTE_PATH`) workaround for sessions stuck at
+ "authenticating" (#251) is now actually passed through by the Docker Compose files. The `environment:`
+ blocks enumerate vars explicitly with no `env_file`, so setting `WWEBJS_WEB_VERSION` in `.env` previously
+ never reached the container — making the documented fix a no-op for Compose users. Added the passthrough
+ (empty default = auto-select, no behavior change when unset) to `docker-compose.yml` and
+ `docker-compose.dev.yml`. (#273)
## [0.2.7] - 2026-06-16
diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml
index 5b4bc186f..4faea6ce9 100644
--- a/docker-compose.dev.yml
+++ b/docker-compose.dev.yml
@@ -49,6 +49,12 @@ services:
- SESSION_DATA_PATH=/app/data/sessions
- PUPPETEER_HEADLESS=true
- PUPPETEER_ARGS=--no-sandbox,--disable-setuid-sandbox,--disable-dev-shm-usage,--disable-gpu
+ # Pin the WhatsApp Web version if a session hangs at "authenticating" after scanning the QR
+ # (whatsapp-web.js 1.34.x can stall on an incompatible auto-selected WA-Web version, #251/#273).
+ # Empty = auto-select (default). Set WWEBJS_WEB_VERSION in .env to a known-good version — see
+ # docs/12-troubleshooting-faq.md.
+ - WWEBJS_WEB_VERSION=${WWEBJS_WEB_VERSION:-}
+ - WWEBJS_WEB_VERSION_REMOTE_PATH=${WWEBJS_WEB_VERSION_REMOTE_PATH:-}
- STORAGE_TYPE=local
- STORAGE_LOCAL_PATH=/app/data/media
- WEBHOOK_TIMEOUT=10000
diff --git a/docker-compose.yml b/docker-compose.yml
index 42f3ab8a5..d65d79156 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -111,6 +111,12 @@ services:
- SESSION_DATA_PATH=/app/data/sessions
- PUPPETEER_HEADLESS=${PUPPETEER_HEADLESS:-true}
- PUPPETEER_ARGS=${PUPPETEER_ARGS:---no-sandbox,--disable-setuid-sandbox,--disable-dev-shm-usage,--disable-gpu}
+ # Pin the WhatsApp Web version if a session hangs at "authenticating" after scanning the QR
+ # (whatsapp-web.js 1.34.x can stall on an incompatible auto-selected WA-Web version, #251/#273).
+ # Empty = auto-select (default). Set WWEBJS_WEB_VERSION in .env to a known-good version — see
+ # docs/12-troubleshooting-faq.md. (Without this line the var in .env never reaches the container.)
+ - WWEBJS_WEB_VERSION=${WWEBJS_WEB_VERSION:-}
+ - WWEBJS_WEB_VERSION_REMOTE_PATH=${WWEBJS_WEB_VERSION_REMOTE_PATH:-}
# Storage
- STORAGE_TYPE=${STORAGE_TYPE:-local}
- STORAGE_LOCAL_PATH=/app/data/media