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

WAPI is not defined #761

Closed
antirek opened this issue Dec 27, 2021 · 5 comments
Closed

WAPI is not defined #761

antirek opened this issue Dec 27, 2021 · 5 comments
Labels
bug Something isn't working question Further information is requested

Comments

@antirek
Copy link
Contributor

antirek commented Dec 27, 2021

Description

It's again. @edgardmessias I remember that you add additional timer for fix it. Or no?

Environment

  • Wppconnect version(s): [1.11.1]
  • Browser: [Chrome 87]
  • OS: [Ubuntu 20.04]
  • Node version: [Node 14]
  • WhatsApp version: [2.2138.13]
  • MultiDevice (BETA): no

Log Output

 Status Session:  isLogged
 Session name:  whatsappsession
 Status Session:  inChat
 Session name:  whatsappsession
 error on create ReferenceError: WAPI is not defined
     at __puppeteer_evaluation_script__:56:47
     at __puppeteer_evaluation_script__:56: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__:54:14)
 .[32minfo.[39m:     [whatsappsession:client] WhatsApp WEB version: 2.2138.13

@antirek antirek added the bug Something isn't working label Dec 27, 2021
@edgardmessias
Copy link
Contributor

Hello @antirek , this error was caused probably by a timeout page load.

It's keep ocurring every time or randonly?

@antirek
Copy link
Contributor Author

antirek commented Dec 31, 2021

Hi @edgardmessias
It was randomly (I thought), but when I decrease memory for wppconnect instance and chrome loading slowly - all right )))

@wenioferraz
Copy link

Boa tarde, acontece comigo sempre que foi solicitar funções como isConnected, restart, getHost e por ai vai...

@wenioferraz
Copy link

NOTA: RESOLVI ATUALIZANDO O NODE PARA v14.18.2

@edgardmessias edgardmessias added the question Further information is requested label Jan 10, 2022
@dudanogueira
Copy link

Guys I have faced this issue. Seems that when this happens, you also cannot login from whatsapp web from browser, it get's stucked on loading the chats.

https://www.reddit.com/r/whatsapp/comments/k4ezk4/whatsapp_web_stuck_on_loading_screen_after/

Still investigating, but looks like the message on mobile gets corrupt, and doesn't load properly anywhere. Solutions points to loosing all messages from mobile, clearing the cache, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants