pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
14.62k stars 3.48k forks source link

Chromium still open when im cancel to scan qr and destroy client #3052

Closed micjef closed 1 month ago

micjef commented 1 month ago

Is there an existing issue for this?

Describe the bug

I run the app on Linux Debian x86/64 When I do a QR scan process, it will open Chromium with a new PID (think of it as PID running and not closing even though I have executed the destroy client command

Expected behavior

Pids on chromium that are not being used will be closed

Steps to Reproduce the Bug or Issue

carry out the process of bringing up a qr to log in -> when the qr appears, do the close qr command (also include the command to destroy the client)

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

No, I am not using Multi Device

Environment

OS: debian-11-bullseye-v20240515 Wa web js version: 1.23.1-alpha.2 Wa web version: 2.2412.54 Phone Os: Android Nodejs version: v16

Additional context

No response

aangwie commented 1 month ago

Try This. Open Constants.js at util folder, change this code WebVersion : 2.2410.1, webVersionCache : { type : 'local' },

With This webVersion: '2.2410.1', webVersionCache: { type: 'remote', remotePath : 'https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2410.1.html', }, If you use pm2 , try to stop and delete the app first, and run again the app. And if still not working reboot your PC or VPS first and try again. this method worked for me

alechkos commented 1 month ago

1621