Intermittently duplicating message in Whatsapp Channel (Weak connection) #9314
Labels
Bug
💬 channel/whatsapp
Issues related to WhatsApp channel
investigation
This issues needs more work before it can be picked up for development
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
The text was updated successfully, but these errors were encountered: