#Problem with exodus session reconnection

10 messages · Page 1 of 1 (latest)

full jasper
#

Hello everyone, I have problems with reconnecting sessions when my service stops, I don't know what. Help!!

mystic kindle
#

Revelant code

full jasper
#

How do I do it? Before, the web cache was stored in another folder, which I assume would allow me to restore the session, with the indicated changes the type is none, therefore, the auth is effectively saved but it does not allow me if my service restarts, for example, from me authentication restore session

mystic kindle
#

Show your code

crimson ocean
#

Send logs

full jasper
#

When connecting a phone, exchanging messages, etc. No problem. Then when my backend restarts for x reason, I can't reconnect the phone, I have to scan the QR again. Previously, the connection could be resumed. const client = new Client({
authStrategy: new LocalAuth({ clientId: clientId }),
puppeteer: { args: [
'--no-sandbox',
'--no-experiments',
'--hide-scrollbars',
'--disable-plugins',
'--disable-infobars',
'--disable-translate',
'--disable-pepper-3d',
'--disable-extensions',
'--disable-dev-shm-usage',
'--disable-notifications',
'--disable-setuid-sandbox',
'--disable-crash-reporter',
'--disable-smooth-scrolling',
'--disable-login-animations',
'--disable-dinosaur-easter-egg',
'--disable-accelerated-2d-canvas',
'--disable-rtc-smoothness-algorithm'
]},
//webVersion: ${wwebVersion},
webVersionCache: {
type: 'none',
/*
remotePath: https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/${wwebVersion}.html,*/
},

mystic kindle
#

Check your clientID it must be simple

full jasper
#

The client ID is a simple identifier, and allows working with the library without problems. My problem begins when I need the created session to reconnect without having to scan the QR again and delete the auth folder. I don't know if I can explain my mistake, I'm translating my answer.

mystic kindle
#

If you delete auth folder you will need to read the qr again