Failed to get QrCode response after Initializing session
Description
I'm using the WPPConnect API to establish a WhatsApp session, and I anticipate receiving a QR code to complete the connection setup. The problem is that when I made a "https://website.com/api/{session}/logout-session" and then try to start session again. It returns a status of "INITIALIZING" without providing a QR code or "CLOSED" without providing QR code. This also applies with qrcode-session. Also, when trying to start session again it returns: "CONNECTED". This also happens both in postman and in my page.
Environment
WPPConnect version(s): 1.34.2 Browser: Opera GX Node version: 20.16.0 WhatsApp version: 2.3000.1017570007 MultiDevice (BETA):no
Steps to Reproduce
- Start a session by providing details - /start-session
- Try to get qr code providing details -/qrcode-session
- Try to start session again
- closing the session by providing details - /close-session
- Instead of closing the session in step 4 try /logout-session
Log Output
{ "status": "CLOSED", "qrcode": null } 2. { "status": "CONNECTED", "message": "QRCode is not available..." } 3. { "status": "CONNECTED", "qrcode": null, "version": "2.7.0" } 4. { "status": true, "message": "Session successfully closed" } 5. { "status": false, "message": "Error closing session", "error": { "name": "TargetCloseError", "cause": { "name": "ProtocolError" }, "level": "error" } }