Direct messages are not visible to the receiver
When a direct message is received, it is not displayed in the message window for the receiver. Sometimes it appears after reloading the page.
Steps to reproduce:
- User A send Direct Message to User B
- User B sees new message notification and clicks on Direct Message with User A
Result: User A's message is not displayed to User B. After User B reloads the page, message is displayed.
Is this 100% reproducible? If yes, we need more information:
What platform are you testing on: OS: Browser:
Your own instance, or demo instance?
If own instance, what are the details of your installation.
Thanks for your feedback.
@marceloschmidt happens often, but we haven't found a set of steps that reproduces this 100% of the time.
Platforms vary from Linux (Ubuntu/Arch), to OSX(Mavericks and Yosemite). Firefox, Chrome (all varients).
We have our own instance, updated from your master fairly often. Running on AWS (t2.medium), Running straight up Node (no Nginx, or Apache). Replicate Set as written in your instructions.
Still happening, this is the biggest pain point in the entire product. Messages just sometimes will not show up.
How about network topology? Are all browsers on the same LAN when this happens?
Are all browsers using DNS resolved hostname to access servers?
Or some based on /etc/hosts ? Or some using IP address?
@Sing-Li
I think I've fixed it, however...
All clients were on the same LAN, the Server was NOT on the same LAN. Browsers using DNS resolved hostname, DNS was not an issue.
I believe it was a websockets issue.
You have routers that block websockets?
If you're using reverse proxy in front like nginx / apache make sure you're upgrading your websockets.
ELB has to be configured to pass TCP through, not just HTTP/HTTPS through.
@geekgonecrazy what do you mean by "upgrading"
@soonahn each websocket starts out as a normal http(s) request. It has a header indicating that it wishes to be upgraded to a websocket.

ELB ... yes! That is a super common gotcha. They never officially supported websocket. Just dealt with it the other day. And lee faus the week before. Make sure you still have round robin!
If you have older browser client .. session affility will also fail (mysteriously) with TCP config :-(
@Sing-Li I think we're okay, but not 100% sure yet. Some people haven't refreshed their browser and are still on polling so I've seen some dropped messages here and there.
I'm getting everyone to refresh their clients, so we should all be on websockets, will let you know the status then.
Is not a websocket issue. People are still getting dropped messages :(
So .. I think we should rule out first ... two browsers on different non-connected networks ... both accessing server via DNS resolved address; because that would be the config for 90+ % of our current users. Can you test that somehow?
Any news on this?
I believe this issue was fixed by @rodrigok when a error on the logic to retrieve messages sent while disconnected. Let us know otherwise.
I've got the same bug in v0.68.3 #11516
I am running Rocketchat .73 version and facing this issue for only one user but permanantly on his system. User is using Windows 10 and have tried on both Chrome and IE browser. Anyone fixed this issue ?
having this same problem in Version 3.12.1. Some users are fine. One user in particular can not receive my DMs. Sends notification and shows snippet in the left hand pane but room fails to retrieve messages when clicked. Also never properly loads if I do a hard refresh - simply continues showing animation icon until I leave the channel and go back in.