whatsapp-web.js: the qrcode does not come out, it is always pending.
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
the qrcode does not come out, it is always pending. i tried to reset the sessions and also to update the chrome browser. Anyone have the same problem?
image error: https://prnt.sc/T89Qu8GE5Kv4
Expected behavior
i expect the qrcode to be returned
Steps to Reproduce the Bug or Issue
app.get('/:instance/status', async (req, res) => {
var instance = req.params.instance;
console.log("/" + colore.magenta(instance) + '/status');
// sendMessageAdmin(draw.path("/" + colore.magenta(instance) + "/status"));
init_client(instance).then(
function resolve(data) {
if (req.query.img && data["accountStatus"] == STATUS.GOT_QR_CODE) {
res.render('qr', data);
} else {
res.status(200).json(data);
}
},
function reject(data) {
res.status(200).json(data);
}
).catch(
function reject(data) {
res.status(200).json(data);
}
);
});
Relevant Code
No response
Browser Type
Google Chrome
WhatsApp Account Type
WhatsApp Business
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
OS: Linux Phone OS: iOS whatsapp-web.js 1.18.2 Node.js : v16.15.1
Additional context
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 22 (8 by maintainers)
@stefanfuchs Thank you for the prompt response, its works pretty well for me too
I’m actually saving to a
.tar.gzfile. Some code below for reference:zipPathis the path in amazon EFS where the zip file is saved.sessionDataPathParentDirandsessionDirNameare the path to the directory where whatsapp-web.js saves the session files (locally).unfortunately not, i had to move everything to ebs and use a disk share. I too would like to go back to EFS