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
Messages sent but never delivered to the contact #2654
Comments
I am facing the same issue. Reconnect sometimes solved the issue but there is no indication when it has the issue |
I am facing the same issue. When i reconnect it works for some time.... |
There is no issues with sendMessage method in your context. |
I've been using the lib for 3 years now, and only recently these kinds of problems started. I'ts most likely a bug in whatsapp itself, and the annoying part is that it happens randomly after using the lib normally for some time. And yes, I'm using the lib very frequently to send messages - with multiple numbers - therefore it's not a problem of keeping the client active. In fact, the more messages are sent, the bigger the probability of this problem occuring. |
Same here... |
And it's very strange because these messages even show up in the whatsapp app in the mobile phone... but they stay forever with one gray tick, never delivered. That's why it seems like a bug in whatsapp itself. |
I am trying to update the chromium / puppeteer versions, because I saw the version used by the lib is more than 1 year old... and that might be the problem. Will have to try and see if it works. |
Yes. It has become more serious lately (more frequent). |
Hi, someone solved the problem? |
Same problem for me, try doing a LOOP to restart the application every 1 hour. Always reconnecting the session like this, because apparently Whatsapp is putting the session in the span list USING: client.resetState(); |
@devluinix when reseting the state like this, the qr code must be read again? |
@stefanfuchs no need read again. My Client
Recomended too:
CODE
To simulate a human |
@stefanfuchs, @daveckw, @JoseFortunato Is this helpful? |
@alechkos it seems to be helping, I tested your solution for one day so far. I'm using resetState() when at least 10 messages aren't delivered, without reseting the client. But when 15 messages are pending, I reset the whole app. resetState seems to be helping with the delivery of the messages. Also, I'm using your code of sending the presence available/unavailable. |
Dear all, thank you for all the suggestions. I found out what the issue was on my side. My whatsapp web js is running on Google Cloud Server VM. The storage of the disk was utilised up till 90% most of the time and the issues above started happening. I upgraded the storage to 30GB (was 10GB before) and everything is working smoothly now. There are no more disconnection or unsent messages. |
@daveckw interesting... I'm using amazon ECS here. I'll try to increase the disk space in the tasks, see if it helps. |
Dear all, the same here. The storage of the disk was utilised up till 99% on aws EC2, i increased disk size and everything is working smoothly now. |
@daveckw Does this apply when working locally? |
interestingly, the solution has been found, |
Yes. You can. However bear in mind if large number of people report Spam, your number can be banned by whatsapp. |
Okay, I see, thanks for your answer. can you share your LinkedIn or Twitter (X) username, Is it possible? |
var client = new Client({ |
QR is not working properly in ubuntu platform. Is there anyone who can help |
Is there an existing issue for this?
Describe the bug
I'm having a weird issue: when the whatsapp-web.js client is online for some time, some messages that are sent are never actually delivered to the contact. They stay with one gray "tick" forever.
The most weird thing about this bug is that these messages appear on the mobile app with 1 gray tick as well, but never get delivered.
Sometimes clearing the whatsapp session works, but only for some time. It has to be done again and again.
This issue is happening consistently across multiple numbers, and i've been scratching my head a lot trying to figure out what's happening.
Expected behavior
The messages that are sent should be delivered to the contacts after some time.
Steps to Reproduce the Bug or Issue
sendMessage
method.Relevant Code
No response
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
OS: Docker + Alpine 3.15
Phone OS: Android
whatsapp-web.js version: 1.23.1
WhatsApp Web version [run await client.getWWebVersion()]: 2.2350.52
Node.js Version: 16.20.2-r0
Additional context
Related issues, which might ou might not be the same problem:
#2603
#2554
The text was updated successfully, but these errors were encountered: