You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 6, 2026. It is now read-only.
Fresh WhatsApp instances fail to generate QR codes in Evolution API Lite v2.2.1. All new instances get stuck in an infinite "connecting" loop without ever generating QR codes.
Impact
Cannot add new WhatsApp connections
qrcode response always empty: {"count": 0}
No QRCODE_UPDATED webhook events triggered
Makes Baileys integration unusable for new instances
Root Cause
Auth state providers (use-multi-file-auth-state-*.ts) pre-initialize credentials using initAuthCreds() before Baileys connects. This causes Baileys to treat all connections as reconnection attempts instead of fresh connections requiring QR codes.
Bug Description
Fresh WhatsApp instances fail to generate QR codes in Evolution API Lite v2.2.1. All new instances get stuck in an infinite "connecting" loop without ever generating QR codes.
Impact
qrcoderesponse always empty:{"count": 0}QRCODE_UPDATEDwebhook events triggeredRoot Cause
Auth state providers (
use-multi-file-auth-state-*.ts) pre-initialize credentials usinginitAuthCreds()before Baileys connects. This causes Baileys to treat all connections as reconnection attempts instead of fresh connections requiring QR codes.Key Files:
src/utils/use-multi-file-auth-state-prisma.ts:130-134src/utils/use-multi-file-auth-state-redis-db.ts:39src/utils/use-multi-file-auth-state-provider-files.ts:89Reproduction Steps
POST /instance/createwith"qrcode": trueProposed Solution
Modify auth providers to NOT pre-initialize credentials for fresh instances. Only initialize credentials after QR code scan completes.