# whatsapp-web.js QR not showing after a WhatsApp Web update

> WhatsApp Web build 2.3000.1055852612 stops the whatsapp-web.js qr event. How to confirm it, when a webVersion pin works, and the status of each issue and fix.

Published 2026-11-24. Z-API Omni team.

WhatsApp Web build 2.3000.1055852612 redirects logged-out sessions to `/login/`, and whatsapp-web.js never emits a `qr` event there. `Client.inject()` waits for a module that now returns `null`, then fails with `TimeoutError: Waiting failed: 30000ms exceeded`. Sessions that are already logged in keep working.

The reported workaround pins the previous build, 2.3000.1054759074, through a local web cache. It only works if that build's HTML is already on your disk, for example from an earlier run. A candidate fix is open as a pull request, not merged, as of 2026-11-24.

## What breaks on build 2.3000.1055852612

The report is [whatsapp-web.js#201988](https://github.com/wwebjs/whatsapp-web.js/issues/201988), opened 2026-11-23 and still open (accessed 2026-11-24). On the new build, a logged-out session lands on `/login/`. The QR code renders in the page, but `window.require('WAWebSocketModel')` returns `null`.

`Client.inject()` waits on `WAWebSocketModel.Socket.state`. With the module missing, the wait runs until it times out at 30000 ms. No `qr` event and no `code` event fire, so your app never sees a code to show. Raising `authTimeoutMs` to 120000 does not help, per the reporter.

The previous build, 2.3000.1054759074, stays on `/` and reports `UNPAIRED`, which is the normal state before a scan. The report was filed against library version 1.34.7. The reporter says 1.34.8 and the main branch have the same `inject()` code.

A second report, [#201989](https://github.com/wwebjs/whatsapp-web.js/issues/201989), opened the same day on build 2.3000.1055872355 and library 1.34.7. It fails with a different message:

```text
WhatsApp start failed: page.waitForFunction: ModuleError: Requiring module "%s" with unresolved dependencies: %s
```

That issue gives no workaround. Both point to the same class of cause: the page loads, but the internal modules the library expects have changed.

## Tell a build change from a session or Chromium problem

A build change, a Chromium problem and a session problem can all look like "the QR never appears". The stage where startup stops tells them apart.

| Symptom | Likely cause | What to check |
| --- | --- | --- |
| Browser launches, page loads, logged-in sessions work, new sessions time out in `inject` with no `qr` | WhatsApp Web build change | The build number in the issue tracker; the `ModuleError` text |
| Failure before the page loads | Chromium or Puppeteer | "Could not find expected browser locally", "No usable sandbox!", missing libraries, "chrome_crashpad_handler: --database is required" |
| `auth_failure` or `disconnected`, or a `TOS_BLOCK` or `CONFLICT` state | Session or account | The stored session, the phone, the account's standing |

The Chromium messages come from Puppeteer's [troubleshooting page](https://pptr.dev/troubleshooting) (accessed 2026-11-24). For missing shared libraries, the page suggests running `ldd chrome | grep not` against the browser binary. Session states and disconnect handling for other libraries are in [Baileys, WAHA and Evolution API session errors](/academy/articles/waha-evolution-api-baileys-session-errors/). If the session connects and then drops every night, the cause is usually the phone, covered in [why a QR-connected number disconnects every day](/academy/articles/whatsapp-qr-connection-disconnects-every-24-hours/).

The library's `Constants.js` defines the events worth logging during diagnosis: `qr`, `code`, `authenticated`, `auth_failure`, `ready`, `disconnected` and `change_state`. Its `WAState` values include `UNPAIRED`, `CONFLICT`, `DEPRECATED_VERSION`, `TOS_BLOCK` and `SMB_TOS_BLOCK`. A client stuck on this build logs no `qr` or `code` event before the timeout.

## Pin the previous build, if you have it cached

The workaround in #201988 sets two client options. `webVersion` is `'2.3000.1054759074'`, and `webVersionCache` is `{ type: 'local', path: ... }`, where the path is the directory that holds `2.3000.1054759074.html`.

With `type: 'local'`, the library reads `<path>/<version>.html` from disk. The default path is `./.wwebjs_cache/`. When the file is missing and the cache is not in strict mode, `LocalWebCache` returns `null`, so the pin has no HTML to serve. The library's defaults are `webVersion: '2.3000.1017054665'` and `webVersionCache: { type: 'local' }`.

So the pin helps only on a machine that ran an earlier build and kept the cache folder. List what you have first:

```bash
ls -1 .wwebjs_cache/
```

Look for `2.3000.1054759074.html`, the build the reporter pinned. No report confirms that older cached builds still load. A fresh container, or one that rebuilds without a persistent volume for that folder, will not have one.

A remote cache does not fill the gap for this build. `RemoteWebCache` needs a `remotePath` containing `{version}`, with an optional `strict` flag. One public archive of builds, `wppconnect-team/wa-version`, returns 404 for `html/2.3000.1054759074.html` as of 2026-11-24.

This script applies the pin only when the cached file exists, and logs every lifecycle event so you can see where startup stops. It needs `npm install whatsapp-web.js`.

```js
const fs = require("fs");
const path = require("path");
const { Client, LocalAuth } = require("whatsapp-web.js");

const PIN = process.env.WWEBJS_PIN_VERSION || "2.3000.1054759074";
const CACHE_DIR = path.resolve(process.env.WWEBJS_CACHE_DIR || ".wwebjs_cache");
const cachedFile = path.join(CACHE_DIR, `${PIN}.html`);

const options = {
  authStrategy: new LocalAuth(),
  puppeteer: { args: ["--no-sandbox", "--disable-setuid-sandbox"] },
};

if (fs.existsSync(cachedFile)) {
  options.webVersion = PIN;
  options.webVersionCache = { type: "local", path: CACHE_DIR };
  console.log("pinning to cached build", PIN);
} else {
  console.log("no cached HTML at", cachedFile, "so the pin cannot apply");
}

const client = new Client(options);
const ts = () => new Date().toISOString();

client.on("qr", (qr) => console.log(ts(), "qr received, length", qr.length));
for (const ev of ["code", "authenticated", "auth_failure", "ready", "disconnected", "change_state"]) {
  client.on(ev, (...args) => console.log(ts(), ev, ...args));
}

client.initialize().catch((err) => {
  console.error(ts(), "initialize failed:", err.name, err.message);
  process.exitCode = 1;
});
```

The `--no-sandbox` flags follow the library's guide for headless servers, as covered in [Baileys and whatsapp-web.js vs the Cloud API](/academy/articles/baileys-whatsapp-web-js-vs-cloud-api/). Drop them if your environment runs Chromium with a sandbox.

The reporter warns that "old builds eventually expire". Keep the pin only until a library fix ships.

## Fix status on 2026-11-24

| Item | State | Notes |
| --- | --- | --- |
| [Issue #201988](https://github.com/wwebjs/whatsapp-web.js/issues/201988) | Open | 2 comments, neither from a maintainer |
| [Issue #201989](https://github.com/wwebjs/whatsapp-web.js/issues/201989) | Open | 1 comment, no workaround |
| [PR #201990](https://github.com/wwebjs/whatsapp-web.js/pull/201990) "fix: Socket" | Open, not merged | From a contributor; 1 file; references both issues; no maintainer comment |
| Release v1.34.8 (2026-11-12) | Latest | Predates the break; does not mention `webVersion` |

The pull request switches the library to `WAWebBackendEventBus`, and its description says it "only works with newer versions" that include that module. The author notes they have not yet found the "takeover" function. On 2026-11-24, a contributor reported receiving the QR on v1.34.8 with build 2.3000.1055991158 using the change.

Watch the [pull request](https://github.com/wwebjs/whatsapp-web.js/pull/201990) and the [releases page](https://github.com/wwebjs/whatsapp-web.js/releases) for an upstream fix.

## The WPPConnect error is a separate incident

WPPConnect's `Cannot read properties of undefined (reading 'prepRawMedia')` error is not caused by this build. It was reported on 2026-10-16 in [wppconnect#2926](https://github.com/wppconnect-team/wppconnect/issues/2926), on WA-JS 4.5.0 and WhatsApp 2.3000.1050588369. A member tied it to a split-export issue fixed in WA-JS 4.7.1. No WPPConnect or WA-JS issue or pull request from 2026-11-18 to 2026-11-24 reports the `/login/` break. WPPConnect's own pin option is `whatsappVersion`, not `webVersion`.

## Why this keeps happening

whatsapp-web.js "uses Puppeteer to access WhatsApp Web's internal functions", per its [README](https://github.com/wwebjs/whatsapp-web.js). Those internals are not a published interface. When WhatsApp renames a module or changes a route, the library breaks until someone maps the new code. Three builds, 1055852612, 1055872355 and 1055991158, appear in these reports within about a day. A pinned build number goes stale quickly.

WhatsApp's [FAQ on unofficial apps](https://faq.whatsapp.com/1217634902127718/?locale=en_US) (accessed 2026-11-24) describes them as "versions of WhatsApp developed by third-parties without WhatsApp's approval." It says accounts may be "temporarily or permanently banned" or face restrictions, "including the ability to link devices". The page names apps such as GB WhatsApp and does not name any library. How the terms apply to a library session is in [Baileys and whatsapp-web.js vs the Cloud API](/academy/articles/baileys-whatsapp-web-js-vs-cloud-api/).

If a build change that stops new sessions is not acceptable, that comparison also covers the Cloud API. The Cloud API does not depend on WhatsApp Web's page code.

*Z-API Omni team*
