[GH-ISSUE #914] [QUESTION / FEATURE] Log rate limiting #569

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

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

Not sure if this is already possible, but it would be nice to be able to set Whoogle to report rate limiting to the console or a log.

This would be useful for those with access to dynamic IPs to automatically request a new IP or to automatically redirect search queries to a different app.

Originally created by @gitterspec on GitHub (Dec 25, 2022). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/914 Not sure if this is already possible, but it would be nice to be able to set Whoogle to report rate limiting to the console or a log. This would be useful for those with access to dynamic IPs to automatically request a new IP or to automatically redirect search queries to a different app.
kerem 2026-02-25 20:36:03 +03:00
Author
Owner

@benbusby commented on GitHub (Dec 29, 2022):

Currently Whoogle returns a 503 error code if an instance gets rate limited (and only in that scenario), which should be loggable depending on how you're running your instance. Does that suit your needs or do you need something more? I don't mind adding something extra, just let me know what exactly would work best for you.

<!-- gh-comment-id:1367632700 --> @benbusby commented on GitHub (Dec 29, 2022): Currently Whoogle returns a `503` error code if an instance gets rate limited (and only in that scenario), which should be loggable depending on how you're running your instance. Does that suit your needs or do you need something more? I don't mind adding something extra, just let me know what exactly would work best for you.
Author
Owner

@gitterspec commented on GitHub (Dec 30, 2022):

The 503 would work if it could be reported by Whoogle, as opposed to requiring a proxy sitting outside that. Are you saying this is is already implemented? I checked the console running Whoogle the last time I was rate limited and don't recall seeing a message. Thanks.

<!-- gh-comment-id:1367645960 --> @gitterspec commented on GitHub (Dec 30, 2022): The 503 would work if it could be reported by Whoogle, as opposed to requiring a proxy sitting outside that. Are you saying this is is already implemented? I checked the console running Whoogle the last time I was rate limited and don't recall seeing a message. Thanks.
Author
Owner

@benbusby commented on GitHub (Dec 30, 2022):

Yes, the response code for the rate limiting page is a 503. I'm not able to manually force any of my personal instances into getting rate limited at the moment, and don't want to force any public ones to get rate limited to prove it, but the 503 response is in the code here:

github.com/benbusby/whoogle-search@253ea62f8f/app/routes.py (L328-L338)

I'll close this for now, but reopen if you encounter the rate limiting issue and aren't actually getting the right error code.

<!-- gh-comment-id:1368056105 --> @benbusby commented on GitHub (Dec 30, 2022): Yes, the response code for the rate limiting page is a 503. I'm not able to manually force any of my personal instances into getting rate limited at the moment, and don't want to force any public ones to get rate limited to prove it, but the 503 response is in the code here: https://github.com/benbusby/whoogle-search/blob/253ea62f8f2acc9a47dbbe327d0eadc6da1c19c9/app/routes.py#L328-L338 I'll close this for now, but reopen if you encounter the rate limiting issue and aren't actually getting the right error code.
Author
Owner

@gitterspec commented on GitHub (Jan 1, 2023):

I just tested and the server did not log rate limiting in the console. Indeed, the client gets a 503, but this feature request is about the server, since it would be the server that would change IPs automatically.

Can you please re-open?

<!-- gh-comment-id:1368526684 --> @gitterspec commented on GitHub (Jan 1, 2023): I just tested and the server did not log rate limiting in the console. Indeed, the client gets a 503, but this feature request is about the server, since it would be the server that would change IPs automatically. Can you please re-open?
Author
Owner

@benbusby commented on GitHub (Jan 4, 2023):

OK, rate limiting errors are now reported to the console. The reported error will look something like ERROR:app:503 (CAPTCHA).

<!-- gh-comment-id:1371208404 --> @benbusby commented on GitHub (Jan 4, 2023): OK, rate limiting errors are now reported to the console. The reported error will look something like `ERROR:app:503 (CAPTCHA)`.
Author
Owner

@gitterspec commented on GitHub (Jan 4, 2023):

Thanks!

<!-- gh-comment-id:1371209104 --> @gitterspec commented on GitHub (Jan 4, 2023): Thanks!
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#569
No description provided.