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

Getting Error After scan QR Error [ReferenceError]: WAPI is not defined #2291

Open
tls-jil opened this issue Jul 26, 2024 · 7 comments
Open
Labels
bug Something isn't working needs triage

Comments

@tls-jil
Copy link

tls-jil commented Jul 26, 2024

Description

when I scan the QR code it shows me the status is: CONNECTED and after that I get WAPI is not defined so what should I do now does any buddy now ?

Environment

  • WPPConnect version(s): X.Y.Z
  • WA-JS version(s): X.Y.Z
  • Browser: Chrome XX / Chromium XX
  • OS: Windows X / OSX X.Y.Z
  • Node version: Node XY
  • WhatsApp version: X.YYYY.ZZ
  • MultiDevice (BETA): yes/no

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Log Output

If relevant, paste all of your Log Output

Your Code

If relevant, paste all of your challenge code in here

Additional context / Screenshot

Add any other context about the problem here. If applicable, add screenshots to help explain.

@tls-jil tls-jil added bug Something isn't working needs triage labels Jul 26, 2024
Copy link

@tls-jil, ⭐3 XP earned, 🏆First Issue Created completed, 💪Level 1 achieved!
Contribute more to raise your XP/Level, complete challenges for extra achievements! [Sign up for personal dashboard]

icon

@icleitoncosta
Copy link
Contributor

Hi, please paste your code with all versions you are using

@Saifallak
Copy link

Sometimes this happens when restarting connected session, and it auto unpaire session and start asking for qrcode, idk if this related,..

Ill try to get logs once it happens again ..

@icleitoncosta
Copy link
Contributor

Sometimes this happens when restarting connected session, and it auto unpaire session and start asking for qrcode, idk if this related,..

Ill try to get logs once it happens again ..

I'm thinking this might be related to the language the browser is using (English), and WhatsApp ends up resetting everything, which could be causing this crash during injection. What is the default language your devices are set to?

@Saifallak
Copy link

Sometimes this happens when restarting connected session, and it auto unpaire session and start asking for qrcode, idk if this related,..
Ill try to get logs once it happens again ..

I'm thinking this might be related to the language the browser is using (English), and WhatsApp ends up resetting everything, which could be causing this crash during injection. What is the default language your devices are set to?

Mostly English, but have some devices using Arabic,
But i can restart that Arabic session a problem. (If you're sure, i can test that on sunday)
Don't think it's related.

@Saifallak
Copy link

Maybe we can just re-try to inject wa-js again after some Seconds?, instead of full unpair and reset?

@Saifallak
Copy link

Saifallak commented Aug 31, 2024

this happened sooner than what I though, this on latest version I did git pull and yarn upgrade, yarn build before that crash happens.


9bd700ce-90f6-47e0-bee9-040ce28be41a

ProtocolError: Protocol error (DOM.resolveNode): Node with given id does not belong to the document

Errors

ProtocolError: Protocol error (DOM.resolveNode): Node with given id does not belong to the document
Error: WAPI is not defined

info:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:browser] Using browser folder './userDataDir/9bd700ce-90f6-47e0-bee9-040ce28be41a'
info:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:browser] Initializing browser...
http:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:browser] checking headless...
http:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:browser] headless option is active, browser hidden
info:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Initializing...
verbose:  [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Setting WhatsApp WEB version to 2.3000.10156x
verbose:  [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Loading WhatsApp WEB
verbose:  [9bd700ce-90f6-47e0-bee9-040ce28be41a:page] Page loaded
verbose:  [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Injecting wapi.js
verbose:  [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] WhatsApp WEB loaded
http:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Waiting page load
verbose:  [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] wapi.js injected
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Exposing onMessage function
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Exposing onAnyMessage function
info:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] WhatsApp WEB version: 2.3000.1015690181
info:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] WA-JS version: 3.9.0
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Exposing onAck function
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Exposing onNotificationMessage function
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Exposing onParticipantsChanged function
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Exposing onStateChange function
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Exposing onStreamChange function
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Exposing onIncomingCall function
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Exposing onInterfaceChange function
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Exposing onPresenceChanged function
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Exposing onLiveLocation function
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Exposing onAddedToGroup function
http:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Checking is logged...
info:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Auto close configured to 60s
http:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Authenticated
info: 2024-08-31T15:22:59.527Z isLogged


debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Exposing onRevokedMessage function
info: 2024-08-31T15:22:59.543Z [9bd700ce-90f6-47e0-bee9-040ce28be41a] 0% - WhatsApp
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Exposing onReactionMessage function
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Exposing onPollResponse function
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Exposing onUpdateLabel function
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Exposing onOrderStatusUpdate function
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Emitting onInterfaceChange event (1 registered)
http:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Current state: SYNCING (CONNECTING)
info:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Auto close configured to 180s
http:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Checking phone is connected...
verbose:  [9bd700ce-90f6-47e0-bee9-040ce28be41a:page] Page loaded
verbose:  [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Injecting wapi.js
ProtocolError: Protocol error (DOM.resolveNode): Node with given id does not belong to the document
  at <instance_members_initializer> (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:93:14)
  at new Callback (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:97:16)
  at CallbackRegistry.create (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:22:26)
  at Connection._rawSend (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:89:26)
  at CdpCDPSession.send (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js:66:33)
  at IsolatedWorld.adoptBackendNode (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js:109:46)
  at IsolatedWorld.transferHandle (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js:139:39)
  at async CdpFrame.addScriptTag (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js:645:20)
  at async CdpPage.addScriptTag (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:554:20)
verbose:  [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] wapi.js failed
error:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] ProtocolError: Protocol error (DOM.resolveNode): Node with given id does not belong to the document
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Registering onStateChange event
verbose:  [9bd700ce-90f6-47e0-bee9-040ce28be41a:page] Page loaded
verbose:  [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Injecting wapi.js
error: 2024-08-31T15:23:01.210Z WAPI is not defined - Error: WAPI is not defined
  at /code/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:107:31
  at step (/code/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:49:23)
  at Object.next (/code/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:30:53)
  at fulfilled (/code/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:21:58)
JS Stack: ReferenceError: WAPI is not defined
  at pptr:evaluate;%2Fcode%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:47
  at pptr:evaluate;%2Fcode%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:77
  at new Promise (<anonymous>)
  at anonymous (pptr:evaluate;%2Fcode%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:54:14)
Function: function () { return WAPI.isConnected(); }
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Registering onStateChange event
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Registering onMessage event
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Registering onAnyMessage event
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Registering onIncomingCall event
debug:    [9cd39c76-2db1-491c-b7a6-5302fb759e71:client] Emitting onMessage event (1 registered)
debug:    [9cd39c76-2db1-491c-b7a6-5302fb759e71:client] Emitting onAnyMessage event (1 registered)
verbose:  [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] wapi.js injected
info:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Waiting for QRCode Scan (Attempt 1)...:
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █▄▀█ █▄▄ █▀█▄█▄▄▄▄▀█ ▀▄▄ █ ▀▄█▄██▀▄▄   ▄ ██ ▄▄▄▄▄ █
█ █▄▄▄█ █ █▄▀▄▄   ▀█▄▀▄ █▀ ▄█▀█▀▄▀▀ █▀█▄▀█▄▄ █ █ ▄  ▀▀▀██▀█
█▄▄▄▄▄▄▄█▄▄▄▄▄▄█▄█▄█▄█▄▄▄███▄████▄████▄▄▄▄▄▄██▄▄████▄██▄███
{"code":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
info:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] WhatsApp WEB version: 2.3000.1016135666
info:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] WA-JS version: 3.9.0
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Emitting onStateChange event (2 registered)
info: 2024-08-31T15:23:05.194Z State Change UNPAIRED: 9bd700ce-90f6-47e0-bee9-040ce28be41a
debug:    [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Emitting onInterfaceChange event (1 registered)
http:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Current state: QR (CONNECTING)
http:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Waiting page load
http:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Checking is logged...
info:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Auto close configured to 60s
http:     [9bd700ce-90f6-47e0-bee9-040ce28be41a:client] Waiting for QRCode Scan...
info: 2024-08-31T15:23:07.204Z notLogged

9a333fb7-fa52-41e9-aa9d-13e001acf8d3

Protocol error (DOM.resolveNode): Node with given id does not belong to the document

Errors

Protocol error (DOM.resolveNode): Node with given id does not belong to the document
Error: WAPI is not defined

info:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:browser] Using browser folder './userDataDir/9a333fb7-fa52-41e9-aa9d-13e001acf8d3'
info:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:browser] Initializing browser...
http:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:browser] checking headless...
http:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:browser] headless option is active, browser hidden
info:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Initializing...
verbose:  [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Setting WhatsApp WEB version to 2.3000.10156x
verbose:  [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Loading WhatsApp WEB
verbose:  [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:page] Page loaded
verbose:  [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Injecting wapi.js
verbose:  [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] WhatsApp WEB loaded
http:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Waiting page load
verbose:  [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] wapi.js injected
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Exposing onMessage function
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Exposing onAnyMessage function
info:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] WhatsApp WEB version: 2.3000.1015690181
info:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] WA-JS version: 3.9.0
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Exposing onAck function
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Exposing onNotificationMessage function
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Exposing onParticipantsChanged function
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Exposing onStateChange function
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Exposing onStreamChange function
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Exposing onIncomingCall function
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Exposing onInterfaceChange function
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Exposing onPresenceChanged function
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Exposing onLiveLocation function
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Exposing onAddedToGroup function
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Exposing onRevokedMessage function
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Exposing onReactionMessage function
http:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Checking is logged...
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Exposing onPollResponse function
info:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Auto close configured to 60s
http:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Authenticated
info: 2024-08-31T15:20:39.253Z isLogged


debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Exposing onUpdateLabel function
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Exposing onOrderStatusUpdate function
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Emitting onInterfaceChange event (1 registered)
http:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Current state: SYNCING (CONNECTING)
info:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Auto close configured to 180s
http:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Checking phone is connected...
verbose:  [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:page] Page loaded
verbose:  [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Injecting wapi.js
ProtocolError: Protocol error (DOM.resolveNode): Node with given id does not belong to the document
  at <instance_members_initializer> (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:93:14)
  at new Callback (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:97:16)
  at CallbackRegistry.create (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:22:26)
  at Connection._rawSend (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:89:26)
  at CdpCDPSession.send (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js:66:33)
  at IsolatedWorld.adoptBackendNode (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js:109:46)
  at IsolatedWorld.transferHandle (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js:139:39)
  at async CdpFrame.addScriptTag (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js:645:20)
  at async CdpPage.addScriptTag (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:554:20)
verbose:  [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] wapi.js failed
error:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] ProtocolError: Protocol error (DOM.resolveNode): Node with given id does not belong to the document
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Registering onStateChange event
error: 2024-08-31T15:20:40.751Z WAPI is not defined - Error: WAPI is not defined
  at /code/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:107:31
  at step (/code/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:49:23)
  at Object.next (/code/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:30:53)
  at fulfilled (/code/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:21:58)
JS Stack: ReferenceError: WAPI is not defined
  at pptr:evaluate;%2Fcode%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:47
  at pptr:evaluate;%2Fcode%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:77
  at new Promise (<anonymous>)
  at anonymous (pptr:evaluate;%2Fcode%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:54:14)
Function: function () { return WAPI.isConnected(); }
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Registering onStateChange event
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Registering onMessage event
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Registering onAnyMessage event
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Registering onIncomingCall event
verbose:  [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:page] Page loaded
verbose:  [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Injecting wapi.js
verbose:  [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] wapi.js injected
info:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Waiting for QRCode Scan (Attempt 1)...:
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▄█  ▄ ▄ ▄  █     ███▀  ▄▄▀▄▄  ▄ ▄▄▀▀▀█ ▄▀██▀▄▀█▀   ▄▄ ▀ ██
█ ██▄█▀▄ ▀███  ▄▄█▄ ▀▄▀▀▀▀▄  ▄▀ ▄█▀█  ▀██▀  ▄▀▄▄▀  ▀▀▄▄▄▀ █
█ █▄▄▄█ █  ▀█ ▀▀▄   ▄███▀█ ▀▀▀▀█▄█▄   ▀█ █▀  █▄▄▄▄ ▄▀█▄▀███
█▄▄▄▄▄▄▄█▄▄████▄█▄█▄▄▄▄█▄█▄████▄▄▄▄▄▄▄▄███▄▄▄█▄███████▄█▄██
{"code":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
info:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] WhatsApp WEB version: 2.3000.1016135666
info:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] WA-JS version: 3.9.0
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Emitting onStateChange event (2 registered)
info: 2024-08-31T15:20:44.312Z State Change UNPAIRED: 9a333fb7-fa52-41e9-aa9d-13e001acf8d3
debug:    [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Emitting onInterfaceChange event (1 registered)
http:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Current state: QR (CONNECTING)
http:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Waiting page load
http:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Checking is logged...
info:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Auto close configured to 60s
http:     [9a333fb7-fa52-41e9-aa9d-13e001acf8d3:client] Waiting for QRCode Scan...
info: 2024-08-31T15:20:46.325Z notLogged

9bec7169-e34d-4fe2-a1ba-9a5dca924855

ProtocolError: Protocol error (DOM.describeNode): Cannot find context with specified id

Errors

ProtocolError: Protocol error (DOM.describeNode): Cannot find context with specified id
Error: WAPI is not defined

info:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:browser] Using browser folder './userDataDir/9bec7169-e34d-4fe2-a1ba-9a5dca924855'
info:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:browser] Initializing browser...
http:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:browser] checking headless...
http:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:browser] headless option is active, browser hidden
info:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Initializing...
verbose:  [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Setting WhatsApp WEB version to 2.3000.10156x
verbose:  [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Loading WhatsApp WEB
verbose:  [9bec7169-e34d-4fe2-a1ba-9a5dca924855:page] Page loaded
verbose:  [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Injecting wapi.js
verbose:  [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] WhatsApp WEB loaded
http:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Waiting page load
verbose:  [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] wapi.js injected
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Exposing onMessage function
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Exposing onAnyMessage function
info:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] WhatsApp WEB version: 2.3000.1015690181
info:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] WA-JS version: 3.9.0
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Exposing onAck function
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Exposing onNotificationMessage function
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Exposing onParticipantsChanged function
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Exposing onStateChange function
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Exposing onStreamChange function
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Exposing onIncomingCall function
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Exposing onInterfaceChange function
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Exposing onPresenceChanged function
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Exposing onLiveLocation function
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Exposing onAddedToGroup function
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Exposing onRevokedMessage function
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Exposing onReactionMessage function
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Exposing onPollResponse function
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Exposing onUpdateLabel function
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Exposing onOrderStatusUpdate function
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Emitting onInterfaceChange event (1 registered)
http:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Current state: SYNCING (CONNECTING)
verbose:  [9bec7169-e34d-4fe2-a1ba-9a5dca924855:page] Page loaded
verbose:  [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Injecting wapi.js
ProtocolError: Protocol error (DOM.describeNode): Cannot find context with specified id
  at <instance_members_initializer> (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:93:14)
  at new Callback (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:97:16)
  at CallbackRegistry.create (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:22:26)
  at Connection._rawSend (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:89:26)
  at CdpCDPSession.send (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js:66:33)
  at IsolatedWorld.transferHandle (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js:136:40)
  at CdpFrame.addScriptTag (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js:645:43)
  at async CdpPage.addScriptTag (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:554:20)
verbose:  [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] wapi.js failed
error:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] ProtocolError: Protocol error (DOM.describeNode): Cannot find context with specified id
verbose:  [9bec7169-e34d-4fe2-a1ba-9a5dca924855:page] Page loaded
verbose:  [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Injecting wapi.js
info:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:session] Session Unpaired
http:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Checking is logged...
verbose:  [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] wapi.js injected
info:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Auto close configured to 60s
http:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Waiting for QRCode Scan...
info: 2024-08-31T15:19:46.694Z notLogged


http:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Checking QRCode status...
info:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Waiting for QRCode Scan (Attempt 1)...:
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █▄ █▄▀▀███▄▀█▀█▄█  ██▄▄▄█ █▀█▄ ▀▄▄  █  ▄ ██ ▄▄▄▄▄ █
█ █   █ █ ▀ █ ▀█▄█ ▀▄██▄ ▀ █▄▄▀▀ ▄▀▀▀  ▀██ ▀▀█▀▄ ██ █   █ █
█ █▄▄▄█ 
█ ▄▄▄▄▄ ██▀ ▀█▄█▀█▄▄██  ▄██ █▄█ ▄▄▀▄ ▀▀██▄▀▄▀▀▀▀█ █▄█  ▀███
█ █ ▀ ▄▄ █▀██▄▄█▀█
█▄▄▄▄▄▄▄█▄▄▄▄██▄▄█▄█▄█▄▄█▄██▄▄███▄██▄█▄▄▄▄▄▄████▄▄█▄▄▄█████
{"code":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
info:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] WhatsApp WEB version: 2.3000.1016135666
info:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] WA-JS version: 3.9.0
debug:    [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Emitting onInterfaceChange event (1 registered)
http:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Current state: QR (CONNECTING)
warn:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Login Fail
info: 2024-08-31T15:19:46.899Z qrReadFail


info:     [9bec7169-e34d-4fe2-a1ba-9a5dca924855:client] Closing the page
error: 2024-08-31T15:19:46.900Z Failed to read the QRCode
verbose:  [9bec7169-e34d-4fe2-a1ba-9a5dca924855:page] Page Closed
info: 2024-08-31T15:19:46.934Z browserClose

9b48a595-46a2-453b-a217-7a477398a113

ProtocolError: Protocol error (DOM.describeNode): Cannot find context with specified id

Errors

ProtocolError: Protocol error (DOM.describeNode): Cannot find context with specified id
Error: WAPI is not defined

info:     [9b48a595-46a2-453b-a217-7a477398a113:browser] Using browser folder './userDataDir/9b48a595-46a2-453b-a217-7a477398a113'
info:     [9b48a595-46a2-453b-a217-7a477398a113:browser] Initializing browser...
http:     [9b48a595-46a2-453b-a217-7a477398a113:browser] checking headless...
http:     [9b48a595-46a2-453b-a217-7a477398a113:browser] headless option is active, browser hidden
info:     [9b48a595-46a2-453b-a217-7a477398a113:client] Initializing...
verbose:  [9b48a595-46a2-453b-a217-7a477398a113:client] Setting WhatsApp WEB version to 2.3000.10156x
verbose:  [9b48a595-46a2-453b-a217-7a477398a113:client] Loading WhatsApp WEB
verbose:  [9b48a595-46a2-453b-a217-7a477398a113:page] Page loaded
verbose:  [9b48a595-46a2-453b-a217-7a477398a113:client] Injecting wapi.js
verbose:  [9b48a595-46a2-453b-a217-7a477398a113:client] WhatsApp WEB loaded
http:     [9b48a595-46a2-453b-a217-7a477398a113:client] Waiting page load
verbose:  [9b48a595-46a2-453b-a217-7a477398a113:client] wapi.js injected
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Exposing onMessage function
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Exposing onAnyMessage function
info:     [9b48a595-46a2-453b-a217-7a477398a113:client] WhatsApp WEB version: 2.3000.1015690181
info:     [9b48a595-46a2-453b-a217-7a477398a113:client] WA-JS version: 3.9.0
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Exposing onAck function
http:     [9b48a595-46a2-453b-a217-7a477398a113:client] Checking is logged...
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Exposing onNotificationMessage function
info:     [9b48a595-46a2-453b-a217-7a477398a113:client] Auto close configured to 60s
http:     [9b48a595-46a2-453b-a217-7a477398a113:client] Authenticated
info: 2024-08-31T15:16:05.291Z isLogged


debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Exposing onParticipantsChanged function
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Exposing onStateChange function
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Exposing onStreamChange function
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Exposing onIncomingCall function
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Exposing onInterfaceChange function
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Exposing onPresenceChanged function
info: 2024-08-31T15:16:05.345Z [9b48a595-46a2-453b-a217-7a477398a113] 0% - WhatsApp
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Exposing onLiveLocation function
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Exposing onAddedToGroup function
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Exposing onRevokedMessage function
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Exposing onReactionMessage function
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Exposing onPollResponse function
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Exposing onUpdateLabel function
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Exposing onOrderStatusUpdate function
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Emitting onInterfaceChange event (1 registered)
http:     [9b48a595-46a2-453b-a217-7a477398a113:client] Current state: SYNCING (CONNECTING)
info:     [9b48a595-46a2-453b-a217-7a477398a113:client] Auto close configured to 180s
http:     [9b48a595-46a2-453b-a217-7a477398a113:client] Checking phone is connected...
verbose:  [9b48a595-46a2-453b-a217-7a477398a113:page] Page loaded
verbose:  [9b48a595-46a2-453b-a217-7a477398a113:client] Injecting wapi.js
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Registering onStateChange event
ProtocolError: Protocol error (DOM.describeNode): Cannot find context with specified id
  at <instance_members_initializer> (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:93:14)
  at new Callback (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:97:16)
  at CallbackRegistry.create (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:22:26)
  at Connection._rawSend (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:89:26)
  at CdpCDPSession.send (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js:66:33)
  at IsolatedWorld.transferHandle (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js:136:40)
  at CdpFrame.addScriptTag (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js:645:43)
  at async CdpPage.addScriptTag (/code/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:554:20)
verbose:  [9b48a595-46a2-453b-a217-7a477398a113:client] wapi.js failed
error:    [9b48a595-46a2-453b-a217-7a477398a113:client] ProtocolError: Protocol error (DOM.describeNode): Cannot find context with specified id
error: 2024-08-31T15:16:06.777Z WAPI is not defined - Error: WAPI is not defined
  at /code/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:107:31
  at step (/code/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:49:23)
  at Object.next (/code/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:30:53)
  at fulfilled (/code/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:21:58)
JS Stack: ReferenceError: WAPI is not defined
  at pptr:evaluate;%2Fcode%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:47
  at pptr:evaluate;%2Fcode%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:77
  at new Promise (<anonymous>)
  at anonymous (pptr:evaluate;%2Fcode%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:54:14)
Function: function () { return WAPI.isConnected(); }
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Registering onStateChange event
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Registering onMessage event
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Registering onAnyMessage event
debug:    [9b48a595-46a2-453b-a217-7a477398a113:client] Registering onIncomingCall event
verbose:  [9b48a595-46a2-453b-a217-7a477398a113:page] Page loaded
verbose:  [9b48a595-46a2-453b-a217-7a477398a113:client] Injecting wapi.js
verbose:  [9b48a595-46a2-453b-a217-7a477398a113:client] wapi.js injected
info:     [9b48a595-46a2-453b-a217-7a477398a113:client] Waiting for QRCode Scan (Attempt 1)...:
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █  ██▀ ▀ ▀█▀▀ ▄█▄ █▄▀█ ▄▀ ▄▀  ▀ ▄▀ ▄▄▀▀▄ ██ ▄▄▄▄▄ █
█ █   █ █ ▀ ██ █▄ █████ ▄▄▀█▀▀█▀ ██▄███▀▄ ▀▄ ▄ ▄ ██ █   █ █
█ █▄▄▄█ █▀  ▄▄▄ ▀█ ▄▀█▄▀▀   ▄▄▄ ▀█▄█▀█▀▄ █  ▀ ▄▀▄██ █▄▄▄█ █
{"code":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
http:     [9b48a595-46a2-453b-a217-7a477398a113:client] Auto close remain: 2s
http:     [9b48a595-46a2-453b-a217-7a477398a113:client] Auto close remain: 1s
http:     [9b48a595-46a2-453b-a217-7a477398a113:client] Auto close remain: 0s
info:     [9b48a595-46a2-453b-a217-7a477398a113:client] Closing the page
info: 2024-08-31T15:17:12.742Z autocloseCalled


verbose:  [9b48a595-46a2-453b-a217-7a477398a113:page] Page Closed
info: 2024-08-31T15:17:12.756Z browserClose


http:     [9b48a595-46a2-453b-a217-7a477398a113:client] Checking QRCode status...
warn:     [9b48a595-46a2-453b-a217-7a477398a113:client] Failed to authenticate
info: 2024-08-31T15:17:13.060Z qrReadError


error:    [9b48a595-46a2-453b-a217-7a477398a113:client] Auto Close Called

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

3 participants