whatsapp-web-incognito icon indicating copy to clipboard operation
whatsapp-web-incognito copied to clipboard

Error when sending messages

Open eduardokabello opened this issue 1 year ago • 39 comments

It's been a week since my whatsapp web started showing an error when sending a message.

When I open WhatsApp Web, it works normally for the first few messages (between 1 and 5 messages), after that it gives an error, as shown in the image.

waincognito

The message shown in the image is in Portuguese, and the translation is "An error has occurred. Click to learn more."

If I reload the page it works for the first few messages again, but the error returns again.

When I disable the plugin, WhatsApp Web works normally, without errors.

I installed the plugin on another computer, with a clean install of Chrome, without any other plugins, and the error also happens.

The version of WhatsApp Web I'm using is 2.2319.9

Has anyone had this error?

eduardokabello avatar May 10 '23 15:05 eduardokabello

Hi, Thank you for opening an issue for this.

I would guess that this error could be related to the message interception functionality of the extension, but I'll need some red javascript errors to be sure. Can you provide these?

The last time I tried I had no problem sending tens of messages.

tomer8007 avatar May 11 '23 06:05 tomer8007

interception

injected

eduardokabello avatar May 11 '23 13:05 eduardokabello

Anything that appears before the MD send failure?

tomer8007 avatar May 11 '23 19:05 tomer8007

Here it's the sequence of console messages.

https://pastebin.com/sGQ01mE5

eduardokabello avatar May 15 '23 12:05 eduardokabello

@eduardokabello I don't see MD send failure in these logs. Are you sure these logs are written when you try to send a message without success?

tomer8007 avatar May 15 '23 17:05 tomer8007

@tomer8007 I certainly forgot to copy this part. I made the sequence again:

https://pastebin.com/xN8CACwF

eduardokabello avatar May 15 '23 21:05 eduardokabello

According to the error interception.js:677 [WhatsApp][3] -- sendMsgRecord: MD send failure It looks like something was messed up in the message interception flow. Can you please

  1. Tell me what version of WhatsApp Web are you using? I'm using 2.2321.6.
  2. Try to type into the console
WAdebugMode = true;
WAPassthroughWithDebug = true;

and look at the logs again?

tomer8007 avatar May 20 '23 09:05 tomer8007

I'm also using WhatsApp Web version v2.23.21.6 and Google Chrome v113.0.5672.127

After looping error, I typed WAdebugMode = true; and WAPassthroughWithDebug = true; and the result was:

https://pastebin.com/Y18JYDR1

And the looping error continues.

By the way, I installed WAIncognito 2.0.5 in the Edge browser v113.0.1774.50 and got the same error from Google Chrome

eduardokabello avatar May 23 '23 17:05 eduardokabello

I don't see any indication to the message send failure in your logs. I need you to WAdebugMode = true; WAPassthroughWithDebug = true; and then trigger the error by trying to send a message without success. Also in debug mode I expect to see more messages.

tomer8007 avatar May 23 '23 17:05 tomer8007

Coincidence or not, after I enabled WAdebugMode = true; WAPassthroughWithDebug = true; before start send any message, I'm using WhatsApp at least for 1 hour without error. Anyway, I'll keep an eye

eduardokabello avatar May 23 '23 19:05 eduardokabello

I think it's not a coincidence because WAPassthroughWithDebug disables some part of the interception. So if you could only WAdebugMode = true and restore the error, this would be good.

tomer8007 avatar May 23 '23 19:05 tomer8007

I started WhatsApp, put only WAdebugMode = true and the error come back

https://pastebin.com/crENP5KQ

eduardokabello avatar May 23 '23 20:05 eduardokabello

Uhh It's hard for me to debug it this way. I would expect more [Out] debug information before the MD send failure line. Perhaps there is something that you do that triggers this error that I don't. Can you describe exactly how to reproduce this or try it on another WhatsApp account?

tomer8007 avatar May 23 '23 20:05 tomer8007

Step by step action:

I installed a clean Edge browser and installed WAIncognito.

I opened a WhatsApp Web tab and I connected with a new WhatsApp account

I opened a console and put WAdebugMode = true;

I navigated in some messages and send some messages and leave browser opened and checking sometimes console messages.

In one moment, the looping error started without send any messages, and then, I tried to send a message and error happening again.

https://pastebin.com/05iq21c4

eduardokabello avatar May 24 '23 23:05 eduardokabello

Can you send at least one message successfully? I would expect to see something like [Out] Sending binary with tag '' (152 bytes, decrypted): interception.js:534 <message id=​"3EB02714E3239A94137127" to=​"[email protected]" phash=​"2:​..." type=​"text">​…​</message>​ but I don't see it in your logs.

I think that for some reason the sockets are getting closed in your end because something was screwed in the interception previously, but at my end it looks fine. Thanks again for reporting the issue though.

tomer8007 avatar May 29 '23 18:05 tomer8007

Yes, I can send some messages successfully before error

Something like this?

idmessage

See complete console capture: https://pastebin.com/W6kj8mDT

eduardokabello avatar May 30 '23 06:05 eduardokabello

According to the error

vendor.js?v=4.8.7.5:1 Uncaught TypeError: Promise resolver undefined is not a function
    at new Promise (<anonymous>)
    at Pe.window.<computed>.ChatState.sendChatStateComposing (vendor.js?v=4.8.7.5:1:122989)

from your logs, it looks like the version that's running on my end is different than yours (it doesn't use new Promise):

image Can you tell me again what version are you using or try to use Chrome instead of Edge?

tomer8007 avatar May 30 '23 17:05 tomer8007

Chrome v114.0.5735.91 Edge v113.0.1774.57 WhatsApp Web v2.2322.15

eduardokabello avatar Jun 01 '23 04:06 eduardokabello

Now I'm using WhatsApp version 2.2323.4. But do you have the same problem in Chrome or only Edge?

tomer8007 avatar Jun 02 '23 08:06 tomer8007

The same error in both browser, Chrome and Edge

eduardokabello avatar Jun 05 '23 01:06 eduardokabello

Still trying to reproduce this without success. EDIT: Is there a chance this problem happens only for groups?

tomer8007 avatar Jun 06 '23 19:06 tomer8007

Still trying to reproduce this without success. EDIT: Is there a chance this problem happens only for groups?

No, the problem happens with person to person messages

eduardokabello avatar Jun 14 '23 00:06 eduardokabello

Is there any solution about this issue? Because I'm experiencing the same problem, unable to send messages after some times and need to reload the page to resend them

ss.jpg

ranggasan avatar Jul 03 '23 02:07 ranggasan

I was able to reproduce this on my side only when sending messages to a group with a large number of participants. I suspect that this is caused by the same underlying reason as #127. Hopefully I could solve this one by solving #127 the next time I encounter it.

tomer8007 avatar Jul 03 '23 05:07 tomer8007

I was able to reproduce this on my side only when sending messages to a group with a large number of participants. I suspect that this is caused by the same underlying reason as #127. Hopefully I could solve this one by solving #127 the next time I encounter it.

For your additional information, it also happens in personal chat, like in the screenshot I attach above

ranggasan avatar Jul 03 '23 06:07 ranggasan

@ranggasan @eduardokabello Can you please tell me if version 2.0.6 seems to change anything?

tomer8007 avatar Jul 09 '23 17:07 tomer8007

@ranggasan @eduardokabello Can you please tell me if version 2.0.6 seems to change anything?

Unfortunately, the problem still persist

wa.jpg

ranggasan avatar Jul 10 '23 02:07 ranggasan

I'm enabling wa web plus side by side with wa incognito, I think it's the cause of the issue. When I disable wa web plus, I found no issue.

I'm using wa web plus because I need its feature like blur messages and lock the screen. It would be nice if wa incognito has this features as well

ranggasan avatar Jul 11 '23 03:07 ranggasan

@ranggasan All I can see is that when I send messages to groups with a large number of participants, it initially shows the message as pending, and when I refresh the page, it shows the red warning sign like in your screenshot (even though the message was sent). So I suspect either this does not relate to WA Web Plus, or it is related and the problem I'm seeing is a different one.

Interesting finding though, I will test with WA Web Plus. @eduardokabello Are you using WA Web Plus?

tomer8007 avatar Jul 11 '23 10:07 tomer8007

Unfortunately, the problem still persists here also.

Yes, I use WA Web Plus here too. I thought the issue was the WA Web Plus extension, but when I made a test with clean installation on Edge, the only extension installed was WAIncognito and the same error occurred.

eduardokabello avatar Jul 11 '23 12:07 eduardokabello