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

on start 'WAPI is not defined' #558

Closed
antirek opened this issue Oct 5, 2021 · 4 comments
Closed

on start 'WAPI is not defined' #558

antirek opened this issue Oct 5, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@antirek
Copy link
Contributor

antirek commented Oct 5, 2021

Description

[whatsappsession:browser] Initializing browser...
[whatsappsession:client] Initializing...
Status Session:  isLogged
Session name:  whatsappsession
Status Session:  inChat
Session name:  whatsappsession
error on create ReferenceError: WAPI is not defined
    at __puppeteer_evaluation_script__:44:47
    at __puppeteer_evaluation_script__:44:78
    at j (https://web.whatsapp.com/bootstrap_qr.d3ab17b51a79359ce87d.js:2:379576)
    at new g (https://web.whatsapp.com/bootstrap_qr.d3ab17b51a79359ce87d.js:2:370471)
    at anonymous (__puppeteer_evaluation_script__:42:14)
[whatsappsession:client] WhatsApp WEB version: 2.2138.13
get instance-state

Environment

  • Wppconnect version(s): [1.9.1]
  • Browser: [e.g. Chrome]
  • OS: [ubuntu 20.04]
  • Node version: [Node 14]
  • WhatsApp version: [2.2138.13]
  • MultiDevice (BETA): no
@antirek antirek added the bug Something isn't working label Oct 5, 2021
@antirek
Copy link
Contributor Author

antirek commented Oct 5, 2021

oh, I check again

And if I set whatsappVersion in config - it's fail, otherwise if I not set whatsappVersion and wppconnect use latest value 2.2138.13 - instance loaded well

@antirek
Copy link
Contributor Author

antirek commented Oct 5, 2021

No. Sometimes all is good with 2.2138.13, sometimes fail with this error.

Maybe increase timeout for evaluate injected code?

@edgardmessias
Copy link
Contributor

I think there are some action that is not waiting for JS injection, because the print of whatsapp version occurs after successful injection.

@antirek
Copy link
Contributor Author

antirek commented Oct 11, 2021

I don't know what it was. For next days I start my wppconnect instance and all was ok. So strange...

@antirek antirek closed this as completed Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants