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

fix: Search Messages crashes on 429 from server #974 #975

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Abbas-Askari
Copy link

@Abbas-Askari Abbas-Askari commented Feb 10, 2025

Fixes #974 by introducing a timeout (20s) on a 429 by the server and then trying again. In this period (timeouts and fetches) a Throbber (loading component) is rendered.

Video/Screenshots

Screencast.from.2025-02-11.00-04-16.webm

PR Test Details

Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-975 after approval. Contributors are requested to replace <pr_number> with the actual PR number.

@Abbas-Askari
Copy link
Author

There is one possible way of knowing the exact time to wait, But that is very messy and RC main dosen't use it as well. It will require the modification of EmbeddedChatApi. Instead of sending to chat.search we would send to rocketchatSearch.search which gives the exact milliseconds to wait. But its usage is completely different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Search Messages crashes on 429 from server
1 participant