Skip to content
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

Intermittently duplicating message in Whatsapp Channel (Weak connection) #9314

Open
Cauen opened this issue Apr 27, 2024 · 2 comments
Open
Labels
Bug 💬 channel/whatsapp Issues related to WhatsApp channel investigation This issues needs more work before it can be picked up for development

Comments

@Cauen
Copy link
Contributor

Cauen commented Apr 27, 2024

Describe the bug

The agent reported that she had a weak connection, she only sent the message once and it showed twice in the chat

Consulting the logs, the system records 2 calls to Api::V1::Accounts::Conversations::MessagesController#create. Which means it's something in the frontend.

A few messages were duplicated. They were very personalized, which rules out the option of the agent sending them again unintentionally, but that had never happened since January, so it's a very rare case.

Would there be any retry logic that perhaps in some scenarios could make the message be sent twice?

I tried reproducing locally by activating a network throttle. But I could not.

Details: The difference between the messages was 12 seconds. It wasn't a private message. It was from Whatsapp Cloud. Both were sent to the customer because the database records 2 different "source_ids".

Chatwoot version: 3.4.0
Cloud: Hetzner (Not relevant i think)

To Reproduce

Wasnt able to reproduce D:

Expected behavior

No response

Environment

Docker

Cloud Provider

Other [please specify in the description]

Platform

Browser

Operating system

Windows

Browser and version

Chrome

Docker (if applicable)

No response

Additional context

No response

@Cauen Cauen added the Bug label Apr 27, 2024
Copy link

linear bot commented Apr 27, 2024

@vishnu-narayanan vishnu-narayanan added investigation This issues needs more work before it can be picked up for development 💬 channel/whatsapp Issues related to WhatsApp channel labels Apr 30, 2024
@numb7
Copy link

numb7 commented May 3, 2024

Hi
We have a similar problem that messages are being duplicated. The sources are as follows (API, WhatsApp, Telegram)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 💬 channel/whatsapp Issues related to WhatsApp channel investigation This issues needs more work before it can be picked up for development
Projects
None yet
Development

No branches or pull requests

3 participants