[GH-ISSUE #910] [BUG] Firefox: WARNING:app:404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. #566

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

Originally created by @un99known99 on GitHub (Dec 22, 2022).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/910

Hi,

while using FF getting often error below (brave seems to be ok), I am switching back and fwd using options pics, video - time and quality filters - and so on, in between getting

ERROR:app:Exception on /search [GET]
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.9/site-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/home/pi/.local/lib/python3.9/site-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/pi/.local/lib/python3.9/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/home/pi/.local/lib/python3.9/site-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/home/pi/.local/lib/python3.9/site-packages/app/routes.py", line 112, in decorated
return f(*args, **kwargs)
File "/home/pi/.local/lib/python3.9/site-packages/app/routes.py", line 59, in decorated
return f(*args, **kwargs)
File "/home/pi/.local/lib/python3.9/site-packages/app/routes.py", line 304, in search
response = search_util.generate_response()
File "/home/pi/.local/lib/python3.9/site-packages/app/utils/search.py", line 149, in generate_response
html_soup = content_filter.view_image(html_soup)
File "/home/pi/.local/lib/python3.9/site-packages/app/filter.py", line 617, in view_image
results_div = soup.find_all('div', attrs={'class': "nQvrDb"})[0]
IndexError: list index out of range
WARNING:app:404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

WARNING:app:404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

Regards,
Mike

Originally created by @un99known99 on GitHub (Dec 22, 2022). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/910 Hi, while using FF getting often error below (brave seems to be ok), I am switching back and fwd using options pics, video - time and quality filters - and so on, in between getting ERROR:app:Exception on /search [GET] Traceback (most recent call last): File "/home/pi/.local/lib/python3.9/site-packages/flask/app.py", line 2525, in wsgi_app response = self.full_dispatch_request() File "/home/pi/.local/lib/python3.9/site-packages/flask/app.py", line 1822, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/pi/.local/lib/python3.9/site-packages/flask/app.py", line 1820, in full_dispatch_request rv = self.dispatch_request() File "/home/pi/.local/lib/python3.9/site-packages/flask/app.py", line 1796, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/home/pi/.local/lib/python3.9/site-packages/app/routes.py", line 112, in decorated return f(*args, **kwargs) File "/home/pi/.local/lib/python3.9/site-packages/app/routes.py", line 59, in decorated return f(*args, **kwargs) File "/home/pi/.local/lib/python3.9/site-packages/app/routes.py", line 304, in search response = search_util.generate_response() File "/home/pi/.local/lib/python3.9/site-packages/app/utils/search.py", line 149, in generate_response html_soup = content_filter.view_image(html_soup) File "/home/pi/.local/lib/python3.9/site-packages/app/filter.py", line 617, in view_image results_div = soup.find_all('div', attrs={'class': "nQvrDb"})[0] IndexError: list index out of range WARNING:app:404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. WARNING:app:404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. Regards, Mike
kerem 2026-02-25 20:36:03 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Moist-Cat commented on GitHub (Dec 22, 2022):

I managed to reproduce it with the last commit ( 7041b43db9 )

  • Configurations:
    • Time period: last hour (as small as possible)
    • Full Size Image Search: True

It seems it breaks when there are no images to display.
This could be fixed by adding some error handling to https://github.com/benbusby/whoogle-search/blob/main/app/filter.py#L600

In the meantime. Either disable Full Size image Search or increase the Time Period. I don't think this is related to the browser at all.

<!-- gh-comment-id:1362966877 --> @Moist-Cat commented on GitHub (Dec 22, 2022): I managed to reproduce it with the last commit ( 7041b43db96142015df8d2b0170f0f2318c57c31 ) - Configurations: - Time period: last hour (as small as possible) - Full Size Image Search: True It seems it breaks when there are no images to display. This could be fixed by adding some error handling to https://github.com/benbusby/whoogle-search/blob/main/app/filter.py#L600 In the meantime. Either disable Full Size image Search or increase the Time Period. I don't think this is related to the browser at all.
Author
Owner

@un99known99 commented on GitHub (Dec 22, 2022):

Thanks for the reply, I checked in FF and in Brave, whereas Brave seems to be more “stable”, seems I couldn't reproduce the error within Brave - that's why my best guess was to be browser related ...

Will double-check with hint you gave in terms of the full size image and come back ...

Also, when you search, klick on the result then use browser arrow left to step back - log entry showing up:

WARNING:app:404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. ... normal?


some more, not sure if related to same topic (image size already changed)
"500 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:app:Exception on /search [GET]
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.9/site-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/home/pi/.local/lib/python3.9/site-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/pi/.local/lib/python3.9/site-packages/flask/app.py", line 1818, in full_dispatch_request
rv = self.preprocess_request()
File "/home/pi/.local/lib/python3.9/site-packages/flask/app.py", line 2309, in preprocess_request
rv = self.ensure_sync(before_func)()
File "/home/pi/.local/lib/python3.9/site-packages/app/routes.py", line 147, in before_request_func
g.user_config = g.user_config.from_params(g.request_params)
File "/home/pi/.local/lib/python3.9/site-packages/app/models/config.py", line 141, in from_params
params_new = self._decode_preferences(params['preferences'])
File "/home/pi/.local/lib/python3.9/site-packages/app/models/config.py", line 212, in _decode_preferences
brotli.decompress(urlsafe_b64decode(preferences.encode()))
File "/usr/lib/python3.9/base64.py", line 133, in urlsafe_b64decode
return b64decode(s)
File "/usr/lib/python3.9/base64.py", line 87, in b64decode
return binascii.a2b_base64(s)
binascii.Error: Incorrect padding
WARNING:app:404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

<!-- gh-comment-id:1363404113 --> @un99known99 commented on GitHub (Dec 22, 2022): Thanks for the reply, I checked in FF and in Brave, whereas Brave seems to be more “stable”, seems I couldn't reproduce the error within Brave - that's why my best guess was to be browser related ... Will double-check with hint you gave in terms of the full size image and come back ... Also, when you search, klick on the result then use browser arrow left to step back - log entry showing up: _WARNING:app:404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again_. ... normal? _____ some more, not sure if related to same topic (image size already changed) **"500 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:app:Exception on /search [GET] Traceback (most recent call last): File "/home/pi/.local/lib/python3.9/site-packages/flask/app.py", line 2525, in wsgi_app response = self.full_dispatch_request() File "/home/pi/.local/lib/python3.9/site-packages/flask/app.py", line 1822, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/pi/.local/lib/python3.9/site-packages/flask/app.py", line 1818, in full_dispatch_request rv = self.preprocess_request() File "/home/pi/.local/lib/python3.9/site-packages/flask/app.py", line 2309, in preprocess_request rv = self.ensure_sync(before_func)() File "/home/pi/.local/lib/python3.9/site-packages/app/routes.py", line 147, in before_request_func g.user_config = g.user_config.from_params(g.request_params) File "/home/pi/.local/lib/python3.9/site-packages/app/models/config.py", line 141, in from_params params_new = self._decode_preferences(params['preferences']) File "/home/pi/.local/lib/python3.9/site-packages/app/models/config.py", line 212, in _decode_preferences brotli.decompress(urlsafe_b64decode(preferences.encode())) File "/usr/lib/python3.9/base64.py", line 133, in urlsafe_b64decode return b64decode(s) File "/usr/lib/python3.9/base64.py", line 87, in b64decode return binascii.a2b_base64(s) binascii.Error: Incorrect padding WARNING:app:404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
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#566
No description provided.