mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 12:15:50 +03:00
[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
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#566
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@Moist-Cat commented on GitHub (Dec 22, 2022):
I managed to reproduce it with the last commit (
7041b43db9)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.
@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.