Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Whoogle returns a broken Page on search #253

Closed
2 of 8 tasks
bitfl0wer opened this issue Apr 1, 2021 · 2 comments
Closed
2 of 8 tasks

[BUG] Whoogle returns a broken Page on search #253

bitfl0wer opened this issue Apr 1, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@bitfl0wer
Copy link

Describe the bug
Recently, whoogle searches started returning more and more "broken" Pages on search. After waking up today, i found that my hosted whoogle-instance doesn't return ANY non-broken Pages anymore.

To Reproduce
I don't know if these steps create the problem specifically, but:

  1. Set up whoogle on a VPS
  2. Set whoogle as your default search engine
  3. Search with whoogle every day
  4. (Maybe) Encounter the problem

Deployment Method

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

Version of Whoogle Search

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

Desktop (please complete the following information):

  • OS: [macOS 11 on MacBook Pro 2021 (M1)]
  • Browser [Firefox, Brave]
  • Version [Firefox 87, Brave 1.22.70]

Additional context
This is what I had in the console of my VPS after waking up:
WARNING:waitress.queue:Task queue depth is 1 WARNING:waitress.queue:Task queue depth is 2 WARNING:waitress.queue:Task queue depth is 1 WARNING:waitress.queue:Task queue depth is 2 WARNING:waitress.queue:Task queue depth is 1 WARNING:waitress.queue:Task queue depth is 1 WARNING:waitress.queue:Task queue depth is 2 WARNING:waitress.queue:Task queue depth is 1 WARNING:waitress.queue:Task queue depth is 2 ERROR:app:Exception on / [GET] Traceback (most recent call last): File "/root/.local/pipx/venvs/whoogle-search/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app response = self.full_dispatch_request() File "/root/.local/pipx/venvs/whoogle-search/lib/python3.6/site-packages/flask/app.py", line 1951, in full_dispatch_request rv = self.handle_user_exception(e) File "/root/.local/pipx/venvs/whoogle-search/lib/python3.6/site-packages/flask/app.py", line 1820, in handle_user_exception reraise(exc_type, exc_value, tb) File "/root/.local/pipx/venvs/whoogle-search/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise raise value File "/root/.local/pipx/venvs/whoogle-search/lib/python3.6/site-packages/flask/app.py", line 1947, in full_dispatch_request rv = self.preprocess_request() File "/root/.local/pipx/venvs/whoogle-search/lib/python3.6/site-packages/flask/app.py", line 2241, in preprocess_request rv = func() File "/root/.local/pipx/venvs/whoogle-search/lib/python3.6/site-packages/app/routes.py", line 85, in before_request_func config=g.user_config) File "/root/.local/pipx/venvs/whoogle-search/lib/python3.6/site-packages/app/request.py", line 147, in __init__ self.mobile = 'Android' in normal_ua or 'iPhone' in normal_ua TypeError: argument of type 'NoneType' is not iterable WARNING:waitress.queue:Task queue depth is 1

Even after restarting, it still seems to return broken search results that look like this:

grafik

@bitfl0wer bitfl0wer added the bug Something isn't working label Apr 1, 2021
@trumad
Copy link

trumad commented Apr 1, 2021

I believe you are suffering from #243

@benbusby
Copy link
Owner

benbusby commented Apr 1, 2021

Yes, this is a duplicate of that issue. There's a fix available now on develop if you want to run it manually, otherwise you can also use the beta or buildx-experimental Docker images. If you want to stick with pip, the fix will be available in the next update (hopefully this week or next).

@benbusby benbusby closed this as completed Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants