Skip to content

session unpaired when it should have been logged #2543

@MateusCleto

Description

@MateusCleto

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'
    }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions