EmbeddedChat icon indicating copy to clipboard operation
EmbeddedChat copied to clipboard

bug: Search Messages crashes on 429 from server

Open Abbas-Askari opened this issue 11 months ago • 0 comments

Description:

TypeError: Cannot read properties of undefined (reading 'length') appears when too many search requests are sent back to back in Search Messages Sidebar

Steps to reproduce:

  1. Goto https://rocketchat.github.io/EmbeddedChat/?path=/story/embeddedchat-simple--simple
  2. Open Search Messages sidebar
  3. Search repeatedly until the server returns 429.
  4. Observer the TypeError: Cannot read properties of undefined (reading 'length')

Expected behavior:

No error should appear.

Actual behavior:

Network tab on the right side is showing requests:

https://github.com/user-attachments/assets/15fb6766-ca64-4b2d-bd2b-8f5dee867afb

Abbas-Askari avatar Feb 10 '25 19:02 Abbas-Askari