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

Supercoder 1389 Issue Resolved #1425

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

supercoder-dev
Copy link

To handle the 429 status code error, we need to add a try-except block around the search_results(query) call in the _execute method of the SearxSearchTool class. Specifically, we will catch HTTP errors and handle the 429 status code by either retrying the request after a delay or returning an appropriate error message.
To handle the 429 status code error, we need to implement retry logic with exponential backoff in the search method of the SearxSearchTool class. This will involve catching the 429 error, waiting for a specified time before retrying the request, and increasing the wait time exponentially with each retry.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

2 participants