[GH-ISSUE #1080] [BUG] <cannot see IMAGES anymore> #656

Closed
opened 2026-02-25 20:36:14 +03:00 by kerem · 10 comments
Owner

Originally created by @imTHAI on GitHub (Oct 11, 2023).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/1080

Describe the bug
I'm using whoogle since 2 years. (I started with running my instance on Heroku until they stopped the free subscription. Now it's running on my unRAID server at home).
I discovered that when I click to go in the IMAGES "tab" of Whoogle after searching something, I get an error message. I cannot tell when it started exactly but it must be recent because I use it almost every day, since whoogle is configured as my main search engine.

To Reproduce
Steps to reproduce the behavior:

  1. Search for someone (Let's say Rose Leslie)
  2. Click on 'IMAGES'
  3. See error

Version of Whoogle Search
v0.8.3

Desktop (please complete the following information):

  • Im using Safari but I also tried with Brave.

Error message display in the browser:

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Error in the logs of the container:

ERROR:app:Exception on /search [GET]
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 2190, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1486, in full_dispatch_request
    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/whoogle/app/routes.py", line 124, in decorated
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
  File "/whoogle/app/routes.py", line 59, in decorated
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
  File "/whoogle/app/routes.py", line 316, in search
    response = search_util.generate_response()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/whoogle/app/utils/search.py", line 167, in generate_response
    formatted_results = content_filter.clean(html_soup)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/whoogle/app/filter.py", line 164, in clean
    for div in self.main_divs:
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable

Originally created by @imTHAI on GitHub (Oct 11, 2023). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/1080 **Describe the bug** I'm using whoogle since 2 years. (I started with running my instance on Heroku until they stopped the free subscription. Now it's running on my unRAID server at home). I discovered that when I click to go in the IMAGES "tab" of Whoogle after searching something, I get an error message. I cannot tell when it started exactly but it must be recent because I use it almost every day, since whoogle is configured as my main search engine. **To Reproduce** Steps to reproduce the behavior: 1. Search for someone (Let's say Rose Leslie) 2. Click on 'IMAGES' 3. See error **Version of Whoogle Search** v0.8.3 **Desktop (please complete the following information):** - Im using Safari but I also tried with Brave. Error message display in the browser: ``` Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application. ``` Error in the logs of the container: ``` ERROR:app:Exception on /search [GET] Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 2190, in wsgi_app response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1486, in full_dispatch_request rv = self.handle_user_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1484, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1469, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/whoogle/app/routes.py", line 124, in decorated return f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/whoogle/app/routes.py", line 59, in decorated return f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/whoogle/app/routes.py", line 316, in search response = search_util.generate_response() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/whoogle/app/utils/search.py", line 167, in generate_response formatted_results = content_filter.clean(html_soup) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/whoogle/app/filter.py", line 164, in clean for div in self.main_divs: ^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not iterable ```
kerem 2026-02-25 20:36:14 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Afaren57 commented on GitHub (Oct 11, 2023):

Same problem here

<!-- gh-comment-id:1757317856 --> @Afaren57 commented on GitHub (Oct 11, 2023): Same problem here
Author
Owner

@IslandApps commented on GitHub (Oct 11, 2023):

Same problem here as well.

<!-- gh-comment-id:1757810416 --> @IslandApps commented on GitHub (Oct 11, 2023): Same problem here as well.
Author
Owner

@benbusby commented on GitHub (Oct 11, 2023):

Sorry about that! Just pushed a fix.

<!-- gh-comment-id:1758132130 --> @benbusby commented on GitHub (Oct 11, 2023): Sorry about that! Just pushed a fix.
Author
Owner

@IslandApps commented on GitHub (Oct 11, 2023):

Sorry about that! Just pushed a fix.

Still not working for me.

<!-- gh-comment-id:1758140499 --> @IslandApps commented on GitHub (Oct 11, 2023): > Sorry about that! Just pushed a fix. Still not working for me.
Author
Owner

@benbusby commented on GitHub (Oct 11, 2023):

@techcow2 how are you running Whoogle? If it's anything docker related, the images take about 20 minutes to build and deploy to docker hub.

<!-- gh-comment-id:1758143912 --> @benbusby commented on GitHub (Oct 11, 2023): @techcow2 how are you running Whoogle? If it's anything docker related, the images take about 20 minutes to build and deploy to docker hub.
Author
Owner

@IslandApps commented on GitHub (Oct 11, 2023):

@techcow2 how are you running Whoogle? If it's anything docker related, the images take about 20 minutes to build and deploy to docker hub.

I didn't realize it would take so long. I'm currently using Docker, and I mistakenly assumed that a rebuild of the image would result in an immediate update. My apologies for being impatient!

<!-- gh-comment-id:1758147220 --> @IslandApps commented on GitHub (Oct 11, 2023): > @techcow2 how are you running Whoogle? If it's anything docker related, the images take about 20 minutes to build and deploy to docker hub. I didn't realize it would take so long. I'm currently using Docker, and I mistakenly assumed that a rebuild of the image would result in an immediate update. My apologies for being impatient!
Author
Owner

@farline99 commented on GitHub (Oct 11, 2023):

Sorry about that! Just pushed a fix.

I updated to the latest version from Docker Hub that includes fix and the problem is still there.

<!-- gh-comment-id:1758174791 --> @farline99 commented on GitHub (Oct 11, 2023): > Sorry about that! Just pushed a fix. I updated to the latest version from Docker Hub that includes fix and the problem is still there.
Author
Owner

@imTHAI commented on GitHub (Oct 11, 2023):

@benbusby
Update done (unRAID has detected there were a new version available), so I thought I had the fix applied.
But actually I don't get the fix. So I edited the filter.py and applied your change and it works. Thank you.

@farline99 check the filter.py file, you probably still have the python script without the fix, that's why. Change it manually or wait for the fix to be propagated on the docker hub.

<!-- gh-comment-id:1758248353 --> @imTHAI commented on GitHub (Oct 11, 2023): @benbusby Update done (unRAID has detected there were a new version available), so I thought I had the fix applied. But actually I don't get the fix. So I edited the filter.py and applied your change and it works. Thank you. @farline99 check the filter.py file, you probably still have the python script without the fix, that's why. Change it manually or wait for the fix to be propagated on the docker hub.
Author
Owner

@farline99 commented on GitHub (Oct 12, 2023):

yup, it works now 🙂❤️

<!-- gh-comment-id:1759671168 --> @farline99 commented on GitHub (Oct 12, 2023): yup, it works now 🙂❤️
Author
Owner

@IslandApps commented on GitHub (Oct 13, 2023):

Thank you.
From: farline99 @.>
Sent: Thursday, October 12, 2023 10:01 AM
To: benbusby/whoogle-search @.
>
Cc: techcow2 @.>; Mention @.>
Subject: Re: [benbusby/whoogle-search] [BUG] (Issue #1080)

yup, it works now 🙂❤️


Reply to this email directly, view it on GitHubhttps://github.com/benbusby/whoogle-search/issues/1080#issuecomment-1759671168, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZ237IPMQ25HQW62BOF65XDX67Z3HANCNFSM6AAAAAA53SFBNE.
You are receiving this because you were mentioned.Message ID: @.@.>>

<!-- gh-comment-id:1761387765 --> @IslandApps commented on GitHub (Oct 13, 2023): Thank you. From: farline99 ***@***.***> Sent: Thursday, October 12, 2023 10:01 AM To: benbusby/whoogle-search ***@***.***> Cc: techcow2 ***@***.***>; Mention ***@***.***> Subject: Re: [benbusby/whoogle-search] [BUG] <cannot see IMAGES anymore> (Issue #1080) yup, it works now 🙂❤️ — Reply to this email directly, view it on GitHub<https://github.com/benbusby/whoogle-search/issues/1080#issuecomment-1759671168>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AZ237IPMQ25HQW62BOF65XDX67Z3HANCNFSM6AAAAAA53SFBNE>. You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#656
No description provided.