Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

puppeteer Error on logout api: Requesting main frame too early! #1647

Open
mitnick2012 opened this issue Dec 12, 2023 · 0 comments
Open

puppeteer Error on logout api: Requesting main frame too early! #1647

mitnick2012 opened this issue Dec 12, 2023 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@mitnick2012
Copy link

Environment

  • **Wppconnect-server version(s):**2.3.0
  • Browser: [e.g. Chrome 87, Chromium 85]
  • OS: Ubuntu
  • Node version: Node 20

Steps to Reproduce

  1. call generate token
  2. get qr code
  3. and logout api

Log Output

Error: Requesting main frame too early!
    at assert (/home/whatsuser/Desktop/WhatsAppApi-2.3.0/node_modules/puppeteer-core/lib/cjs/puppeteer/util/assert.js:28:15)
    at FrameManager.mainFrame (/home/whatsuser/Desktop/WhatsAppApi-2.3.0/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FrameManager.js:223:32)
    at CdpPage.mainFrame (/home/whatsuser/Desktop/WhatsAppApi-2.3.0/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.js:415:35)
    at CdpPage.addScriptTag (/home/whatsuser/Desktop/WhatsAppApi-2.3.0/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:510:31)
    at /home/whatsuser/Desktop/WhatsAppApi-2.3.0/node_modules/@wppconnect-team/wppconnect/dist/controllers/browser.js:307:47
    at step (/home/whatsuser/Desktop/WhatsAppApi-2.3.0/node_modules/@wppconnect-team/wppconnect/dist/controllers/browser.js:83:23)
    at Object.next (/home/whatsuser/Desktop/WhatsAppApi-2.3.0/node_modules/@wppconnect-team/wppconnect/dist/controllers/browser.js:64:53)
    at fulfilled (/home/whatsuser/Desktop/WhatsAppApi-2.3.0/node_modules/@wppconnect-team/wppconnect/dist/controllers/browser.js:55:58)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at process.processTimers (node:internal/timers:509:9)
verbose:  [Session1:client] wapi.js failed

@mitnick2012 mitnick2012 added bug Something isn't working needs triage labels Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant