-
-
Notifications
You must be signed in to change notification settings - Fork 447
Open
Labels
Description
Description
I am trying to create a simple client of wppconnect and make the caches and qr-code logging persist when restarting the app. But it does not work, I tried several combinations of arguments for the create function and in every one of them it gives me a session unpaired even though I already had scanned the qr-code in the previous run.
Environment
- WPPConnect version(s): 1.37.3
- Browser: Chromium (via Puppeteer)
- OS: Ubuntu
- Node version: 18.19.1
Steps to reproduce
I am using this package.json
:
{
"name": "test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"@wppconnect-team/wppconnect": "^1.37.3",
"puppeteer": "^24.16.0"
}
}
And this index.js
:
const wppconnect = require('@wppconnect-team/wppconnect');
wppconnect.create({
session: 'session',
puppeteerOptions: {
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-dev-shm-usage'
],
userDataDir: './tokens/datadirs'
}
});