Skip to content

bug: Search Messages crashes on 429 from server #974

@Abbas-Askari

Description

@Abbas-Askari

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:

Screencast.from.2025-02-11.00-15-37.webm

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions