whoogle-search: [BUG] Image search returns Internal Server Error
Searching for something and selecting Images
returns Internal Server Error
To Reproduce Steps to reproduce the behavior:
- Go to main search page of your instance
- Search for
kuih galang
(… to make you hungry — or anything else) - Select
Images
- See error
- In logs, find:
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.045950359Z ERROR:app:Exception on /search [GET]
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046002295Z Traceback (most recent call last):
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046014193Z File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2446, in wsgi_app
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046042223Z response = self.full_dispatch_request()
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046051749Z File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1951, in full_dispatch_request
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046060337Z rv = self.handle_user_exception(e)
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046069087Z File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1820, in handle_user_exception
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046077918Z reraise(exc_type, exc_value, tb)
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046085891Z File "/usr/local/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046094794Z raise value
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046103605Z File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1949, in full_dispatch_request
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046112096Z rv = self.dispatch_request()
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046119909Z File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1935, in dispatch_request
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046128128Z return self.view_functions[rule.endpoint](**req.view_args)
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046136189Z File "/whoogle/app/routes.py", line 98, in decorated
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046144420Z return f(*args, **kwargs)
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046152511Z File "/whoogle/app/routes.py", line 57, in decorated
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046160548Z return f(*args, **kwargs)
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046168279Z File "/whoogle/app/routes.py", line 315, in search
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046176201Z response = search_util.generate_response()
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046184269Z File "/whoogle/app/utils/search.py", line 138, in generate_response
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046192554Z html_soup = content_filter.view_image(html_soup)
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046217564Z File "/whoogle/app/filter.py", line 367, in view_image
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046227182Z results_div = soup.find_all('div', attrs={'class': "nQvrDb"})[0]
whoogle_1_1413963bc3e5 | 2022-02-05T19:09:42.046236642Z IndexError: list index out of range
Deployment Method
- Docker-Compose (
Version of Whoogle Search
- Latest build from Docker Hub (
benbusby/whoogle-search:0.7.1
)
Desktop:
- OS: Debian GNU/Linux Testing
- Browser: Firefox 96.0.3
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (8 by maintainers)
This happens to me too. But only if I mark words in a normal webpage, rightclick and whoogles for them, and then choose the image-tab in Whoogle. I does not happen if I search directly in Whoogle.
The text in the search box also changes from normal words to something like: gAAAAABiAPPicUJqGDA9iyBo86azFusQBoh-heYaHmHt9TMGaApuXOu6gi4YZYECvj-YLS72aU8ow3lz6-h7c-JVe8vVGFP4nZrBI30PipYU8GPLVO5dYiE=
I am attaching 2 images. I first image, I have rightclicked Lynx in a webpage and searched Whoogle for it.
In second image I pressed Image-search (Norwegian localization=Bilder) in Lynx1-image.