Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(docker): pass WWEBJS_WEB_VERSION through to the container (#273) (#274)
Yudhi Armyndharis513278443440
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 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/storybroadcasts are flagged with a neutral `isStatusBroadcast` on the message payload, so engine-neutral code no longermatches 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-16diff --git a/docker-compose.dev.yml b/docker-compose.dev.ymlindex 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=10000diff --git a/docker-compose.yml b/docker-compose.ymlindex 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