-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Ready event is broken #3181
Comments
I tried again and received: Criando conexão WhatsApp... Error: Execution context was destroyed, most likely because of a navigation. Node.js v18.13.0 |
I'm having the same issue |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
1 similar comment
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
Has anyone managed to solve the ready event? |
solved with this |
this worked for me, thank you very much! |
Not working yet |
is not working, it works if I do the authentication intially but if I want to restore a session (remote) ready event is not triggered and 'authentication' event is being triggered twice, I was using |
To assist the community and library developers, I managed to get it running. I tried to capture the error but was unsuccessful. I am running in a Kubernetes environment, and when attempting to run the bot with 1vCPU and 2048MB of RAM, the bot encountered the reported error. However, when limiting the resources to 0.5vCPU and 1024MB of RAM, the bot no longer encountered errors during startup and ran smoothly. I was able to replicate the error using LocalAuth instead of RemoteAuth. Another important point I noticed was that if the process doesn't use cache, the error does not occur. In other words, if I start a new session, the entire process runs naturally, but this is inconvenient as it's susceptible to restarts of my machine. |
For me, whenever I log out from the phone (or remove device - same thing), it fires the |
Is there an existing issue for this?
Describe the bug
After the authenticated event is successfully triggered, the code encounters an error and does not reach the ready event. The reported error is:
I'm using the version "whatsapp-web.js": "github:pedroslopez/whatsapp-web.js#webpack-exodus".
When the authenticated event happens on my phone, it appears active, but the ready event never occurs.
Expected behavior
I expected the 'ready' event to be triggered, but this did not happen.
Steps to Reproduce the Bug or Issue
Try to instantiate the class and run createClientConnection
Relevant Code
No response
Browser Type
Chromium
WhatsApp Account Type
WhatsApp Business
Does your WhatsApp account have multidevice enabled?
No, I am not using Multi Device
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: