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

RuntimeError: Set changed size during iteration in webutils.py #3474

Closed
Snuffy2 opened this issue May 9, 2024 · 0 comments · Fixed by #3496
Closed

RuntimeError: Set changed size during iteration in webutils.py #3474

Snuffy2 opened this issue May 9, 2024 · 0 comments · Fixed by #3496
Labels
bug Something isn't working

Comments

@Snuffy2
Copy link

Snuffy2 commented May 9, 2024

Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG
searxng-docker: 2024.5.7+58320222e
Not forked

How did you install SearXNG?
searxng-docker
image: searxng/searxng:latest

What happened?
When search engines timeout, I'm seeing the error below in the logs.

How To Reproduce
Search with several engines timing out.

Screenshots & Logs

searxng  | 2024-05-09 12:00:02,806 ERROR:searx.engines.brave: engine timeout
searxng  | 2024-05-09 12:00:02,853 ERROR:searx.webapp: Exception on /search [POST]
searxng  | Traceback (most recent call last):
searxng  |   File "/usr/lib/python3.11/site-packages/flask/app.py", line 1473, in wsgi_app
searxng  |     response = self.full_dispatch_request()
searxng  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
searxng  |   File "/usr/lib/python3.11/site-packages/flask/app.py", line 882, in full_dispatch_request
searxng  |     rv = self.handle_user_exception(e)
searxng  |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
searxng  |   File "/usr/lib/python3.11/site-packages/flask/app.py", line 880, in full_dispatch_request
searxng  |     rv = self.dispatch_request()
searxng  |          ^^^^^^^^^^^^^^^^^^^^^^^
searxng  |   File "/usr/lib/python3.11/site-packages/flask/app.py", line 865, in dispatch_request
searxng  |     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
searxng  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
searxng  |   File "/usr/local/searxng/searx/webapp.py", line 782, in search
searxng  |     unresponsive_engines = webutils.get_translated_errors(
searxng  |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
searxng  |   File "/usr/local/searxng/searx/webutils.py", line 73, in get_translated_errors
searxng  |     for unresponsive_engine in unresponsive_engines:
searxng  | RuntimeError: Set changed size during iteration

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant