Closed gnadelwartz closed 2 years ago
@smashah suddenly wa-automate wanted to re authenticate with qQR code and afterwards sendImage was working again
issue can be closed. after reading ;-)
OK, one more update.
once a while it takes a while until sendImage Messages arrive on other clients. Sometimes its helps restart App or reload WA Web on other Client side. Sometimes missing images apeasrs suddely when sending a new image. I think this may happen when sending multiple images in a short timeframe.
This happend with MD before the "not sending at all" issue also.
@gnadelwartz so reproduction steps is to send multiple images in quick succession to the same group chat?
onAnyMessage fires if a message object was added to the msg models array. It will emit even if the message is never actually sent. If you want to check the sent status of a message, listen to onAck (ack
).
0 = not sent (clock) 1 = sent (1 tick) 2 = received by the recipient (2 ticks) 3 = seen by recipient (2 blue ticks) - depends on recipient privacy settings.
The original issue with not sending images at all was gone after re-authentication. What remains is the problem when sending many images in short timeframe. Unfortunately I did not found a trigger amount, currently it seems random. As its a virtual server in a shared hosting environment it may related to timing, server or network activity.
Thanks for the onAnyMessage topic, this explains why image is not sent but event fired.
@gnadelwartz so reproduction steps is to send multiple images in quick succession to the same group chat?
In two different group chats, containing ~ 300 Users each
@gnadelwartz I think the massive group size has something to do with this.
MD sessions need to fan out messages to all those contacts and all those contacts' MD sessions. So I'm not surprised it will take a while for all those messages to get sent.
Can you try to brute force this issue with 2 groups with only 2 members each please so we can isolate the root cause.
For now I have set image send rate limit to 1 with p-queue, lets see ...
@gnadelwartz I think the massive group size has something to do with this.
@smashah sorry it was my fault/typo I mean 30 Users not 300. Nevertheless i'll try with a test account it I find some time.
no more issues when queing (sorry for not reverting/testing without queue), may related to new issue #2718 when sending picture after reconnect...
Keep using the queue to maintain stability. Assume they're using some sort of leaky bucket method of sending messages
Are you using the latest version of the library?
What type of session are you experiencing this issue on?
Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag
What type of host account are you experiencing this issue on?
Personal account (normal)
Mode
My own code
Current Behavior
IF I send an image with caption nothing happend, no exception is raised script continues but image dos not appear in WA Group, BUT onAnyMessage event is fired...
sending text messages works as usual.
Problem starts without any script changes, no WA@automate uodates or script restart on April 26 around midnight.
Expected Behavior
Image should be received by all WA Clients in group
Steps To Reproduce
run my code
create() code OR full CLI command + CONFIG
DEBUG INFO
Environment
Screenshots/Logs
Anything else?
No response