Skip to content

TimeoutError: QR code not loading on Windows 11 - Waiting failed: 30000ms exceeded #102

Description

@Chasemako0

Environment

  • OS: Windows 11 (Version 10.0.26100.8457)
  • Node.js: v22.18.0
  • open-wa version: 4.76.0
  • Chrome: installed at C:\Program Files\Google\Chrome\Application\chrome.exe

Problem

When running open-wa via CLI or programmatically, the QR code never appears.
The process crashes with a timeout after 30 seconds.

Error

Error: spawn wmic.exe ENOENT

Steps to Reproduce

  1. Install @open-wa/wa-automate
  2. Run: npx @open-wa/wa-automate --use-chrome --port 8003 --popup
  3. Process loads WhatsApp Web but QR code element never appears within 30s
  4. Process crashes

Notes

  • The wmic.exe error was fixed by running DISM /Online /Add-Capability /CapabilityName:WMIC~~~~
  • Even after fixing wmic, the 30s timeout persists
  • The popup server at localhost:8003 starts but shows raw base64 data instead of a rendered QR image
  • Using --use-chrome flag with the correct executable path does not resolve the timeout

Question

Is WhatsApp Web's DOM structure still compatible with v4.76.0?
Is there a way to increase the QR timeout or force-load the QR element?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions