Fix Baileys QR Display Bug for Whatsapp web app
Budget: $10 – $30 USD
Hi,
I am building a small Node.js service that connects to WhatsApp Web using the Baileys library and generates a QR code so users can link their WhatsApp account.
The project is deployed on Railway and runs an Express server.
My goal is simple:
Create a WhatsApp session per store.
Generate a QR code for linking WhatsApp.
Send messages later using the session.
The server starts correctly and the endpoint /session/create works.However, the QR code is never generated, and the endpoint /session/qr/:store_id always returns:
QR nu este gata. Refresh in cateva secunde.
So it seems the connection.update event is not returning the qr value, or the session is not properly initialized.
What I need help with:
Fix the QR generation so it appears reliably
Make sure the session connects correctly with Baileys
Ensure the Express endpoint /session/qr/:store_id returns the QR image
Ideally add stable reconnection logic
Tech stack:
Node.js
Express
Baileys (@whiskeysockets/baileys)
QRCode package
Hosted on Railway
I will provide my current index.js file. The code is already mostly implemented but something in the session/QR flow is not working.
If possible, I would also like:
stable multi-session support (one WhatsApp per store)
clean working code
Thanks!
I am building a small Node.js service that connects to WhatsApp Web using the Baileys library and generates a QR code so users can link their WhatsApp account.
The project is deployed on Railway and runs an Express server.
My goal is simple:
Create a WhatsApp session per store.
Generate a QR code for linking WhatsApp.
Send messages later using the session.
The server starts correctly and the endpoint /session/create works.However, the QR code is never generated, and the endpoint /session/qr/:store_id always returns:
QR nu este gata. Refresh in cateva secunde.
So it seems the connection.update event is not returning the qr value, or the session is not properly initialized.
What I need help with:
Fix the QR generation so it appears reliably
Make sure the session connects correctly with Baileys
Ensure the Express endpoint /session/qr/:store_id returns the QR image
Ideally add stable reconnection logic
Tech stack:
Node.js
Express
Baileys (@whiskeysockets/baileys)
QRCode package
Hosted on Railway
I will provide my current index.js file. The code is already mostly implemented but something in the session/QR flow is not working.
If possible, I would also like:
stable multi-session support (one WhatsApp per store)
clean working code
Thanks!