whatsapp-web.js icon indicating copy to clipboard operation
whatsapp-web.js copied to clipboard

missing the first message from the customer

Open enhessam opened this issue 2 years ago • 9 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Is your feature request related to a problem? Please describe.

when the customer send a first message i don't get it and when i check the browser it self i found it hidden and a message from whats app telling (waiting for this message please wait ) and this message never previewed and never come

Describe the solution you'd like.

i want to get this message

Describe an alternate solution.

or get notified of it at least to check the phone

Additional context

No response

enhessam avatar Mar 15 '22 23:03 enhessam

Are you using MD/Beta? The "waiting for this message, please wait" occurs when the sender is not on the same WhatsApp version than yours, or one above or one below.

And to add, with me, without the "wait message", sometimes the first message that someone send to me simply doesn't fire the "on message" event. I was not able to fin the reason.

It's happen in less than 5% of the cases, the if the person send a second message it works.

sergiooak avatar Mar 18 '22 04:03 sergiooak

Are you using MD/Beta? The "waiting for this message, please wait" occurs when the sender is not on the same WhatsApp version than yours, or one above or one below.

And to add, with me, without the "wait message", sometimes the first message that someone send to me simply doesn't fire the "on message" event. I was not able to fin the reason.

It's happen in less than 5% of the cases, the if the person send a second message it works.

Same issue here.

luiseduardo avatar Apr 13 '22 12:04 luiseduardo

This sounds like a bug, and not an enhancement

shanike avatar Apr 14 '22 11:04 shanike

Just for reference, people on Reddit seem to be complaining about this issue (and others) as well. Hopefully the whatsapp devs will pay attention and fix them:

https://www.reddit.com/r/whatsapp/comments/u2pzyp/does_waiting_for_this_message_ever_resolve_itself/ https://www.reddit.com/r/whatsapp/comments/u2uqbz/the_new_windows_update_is_the_worst/ https://www.reddit.com/r/whatsapp/comments/u227gm/updated_whatsapp_desktop_and_now_cant_view_any/ https://www.reddit.com/r/whatsapp/comments/u1wj6d/whatsapp_web_updated_for_me_todayand_two_new_bugs/

stefanfuchs avatar Apr 15 '22 00:04 stefanfuchs

I have same problem, but is more than 5% of the cases.

mkraulich avatar Apr 20 '22 20:04 mkraulich

Same issue ):

lucasdsb1 avatar Apr 25 '22 12:04 lucasdsb1

My instance is missing receiving a lot of messages, when I enabled headless, I noticed the missed messages are all like "Waiting for this message"..... If anyone has any clue please let me know!

image

bernardoely avatar Jul 23 '22 19:07 bernardoely

Reminds me of #1045

purpshell avatar Aug 04 '22 00:08 purpshell

Alguém conseguiu resolver?

zGuilhermeFT avatar May 04 '23 11:05 zGuilhermeFT

Still have same problem

ChezzyDerp avatar Jun 20 '23 16:06 ChezzyDerp

Found this explanation: https://github.com/tulir/whatsmeow/issues/161 ##issuecomment-1488890894

I'll try something like this maybe:

const chat = await msg.getChat();
if (!msg.body) {
  await new Promise((resolve) => setTimeout(resolve, 5000));
  const fetchedMessages = await chat.fetchMessages({
    limit: 1,
    fromMe: false,
  });
  if (fetchedMessages.length > 0) {
    msg = fetchedMessages[0];
  } else {
    return;
  }
}

#1716

RodrigoCamposD avatar Jul 20 '23 02:07 RodrigoCamposD