[GH-ISSUE #782] [500 error] <some searches cause a 500 error> #494

Closed
opened 2026-02-25 20:35:53 +03:00 by kerem · 0 comments
Owner

Originally created by @blackletum on GitHub (Jun 13, 2022).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/782

Describe the bug
Bug persists when searching certain words, with seemingly no pattern to it.

To Reproduce
Steps to reproduce the behavior:

  1. Search from local whoogle or in search bar [Issue happens regardless of browser]
  2. 500 error comes up

I've noticed some things cause issues but others do not? 'bitcoin' causes the issue but 'facebook' does not, for instance.

Deployment Method

  • Heroku (one-click deploy)
  • [ X] Docker
  • run executable
  • pip/pipx
  • Other: [describe setup]

Version of Whoogle Search

  • [ X] Latest build from [source] (i.e. GitHub, Docker Hub, pip, etc)
  • Version [version number]
  • Not sure

Desktop (please complete the following information):

  • OS: [Windows 10]
  • Browser [Chrome]

Additional context
Error log:

ERROR:app:Exception on /search [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/_compat.py", line 39, in reraise
raise value
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/whoogle/app/routes.py", line 94, in decorated
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/whoogle/app/routes.py", line 53, in decorated
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/whoogle/app/routes.py", line 361, in search
conversion = check_currency(str(response))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/whoogle/app/utils/results.py", line 268, in check_currency
while 'class' not in currency_link.attrs or
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'attrs'

Originally created by @blackletum on GitHub (Jun 13, 2022). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/782 **Describe the bug** Bug persists when searching certain words, with seemingly no pattern to it. **To Reproduce** Steps to reproduce the behavior: 1. Search from local whoogle or in search bar [Issue happens regardless of browser] 2. 500 error comes up I've noticed some things cause issues but others do not? 'bitcoin' causes the issue but 'facebook' does not, for instance. **Deployment Method** - [ ] Heroku (one-click deploy) - [ X] Docker - [ ] `run` executable - [ ] pip/pipx - [ ] Other: [describe setup] **Version of Whoogle Search** - [ X] Latest build from [source] (i.e. GitHub, Docker Hub, pip, etc) - [ ] Version [version number] - [ ] Not sure **Desktop (please complete the following information):** - OS: [Windows 10] - Browser [Chrome] **Additional context** Error log: ERROR:app:Exception on /search [GET] Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 2446, in wsgi_app response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1951, in full_dispatch_request rv = self.handle_user_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1820, in handle_user_exception reraise(exc_type, exc_value, tb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/flask/_compat.py", line 39, in reraise raise value ^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1949, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1935, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/whoogle/app/routes.py", line 94, in decorated return f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/whoogle/app/routes.py", line 53, in decorated return f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/whoogle/app/routes.py", line 361, in search conversion = check_currency(str(response)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/whoogle/app/utils/results.py", line 268, in check_currency while 'class' not in currency_link.attrs or \ ^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'attrs'
kerem 2026-02-25 20:35:53 +03:00
  • closed this issue
  • added the
    bug
    label
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#494
No description provided.