Skip to content

v1.6.2

Latest

Choose a tag to compare

@techieanant techieanant released this 29 Jul 00:47

Fixes

WhatsApp 405 Connection Failure on fresh pairing

Two issues prevented WhatsApp QR pairing from working:

  1. Platform rejection – Baileys 7.0.0-rc13 sends Platform.WEB which WhatsApp has been rejecting since Feb 2026. Fixed by patching Baileys validate-connection.js to use Platform.MACOS via patch-package (applied automatically during npm install via postinstall hook).

  2. Stale WA versionfetchLatestBaileysVersion() returns 2.3000.1035194821 (Feb 2026). WhatsApp now requires a current version (2.3000.1044015310 as of Jul 28). Fixed by hardcoding the latest known version with a guard to only accept fetched versions that are actually newer.

Infrastructure

  • Added patches/ directory to Docker build context so patch-package can apply the Baileys fix during image build.
  • patches/@whiskeysockets+baileys+7.0.0-rc13.patch: changes Platform.WEBPlatform.MACOS.

How to verify

  1. Open the WhatsApp settings page
  2. Click "Connect WhatsApp"
  3. The QR code should appear and remain visible for scanning