SurfSense/surfsense_backend/app
google-labs-jules[bot] 807c83b2f6 Fix: Handle Slack API rate limiting for conversations.list
The `get_all_channels` method in `slack_history.py` was making paginated
requests to `conversations.list` without any delay, leading to HTTP 429
errors when fetching channels from large Slack workspaces.

This commit introduces the following changes:
- Adds a 3-second delay between paginated calls to `conversations.list`
  to comply with Slack's Tier 2 rate limits (approx. 20 requests/minute).
- Implements handling for the `Retry-After` header when a 429 error is
  received. The system will wait for the specified duration before
  retrying. If the header is missing or invalid, a default of 60 seconds
  is used.
- Adds comprehensive unit tests to verify the new delay and retry logic,
  covering scenarios with and without the `Retry-After` header, as well
  as other API errors.
2025-05-27 12:56:26 +00:00
..
agents refactor: Improved prompt for personalization. 2025-05-19 20:49:47 -07:00
config feat: Removed Hard Dependecy on Google Auth 2025-05-21 20:56:23 -07:00
connectors Fix: Handle Slack API rate limiting for conversations.list 2025-05-27 12:56:26 +00:00
prompts feat: SurfSense v0.0.6 init 2025-03-14 18:53:14 -07:00
retriver feat: Introduce the RAPTOR Search. 2025-05-11 23:05:56 -07:00
routes feat: Added Speech to Text support. 2025-05-13 21:13:53 -07:00
schemas feat: Added chat_history to researcher agent 2025-05-10 20:06:19 -07:00
tasks feat: Code Block Syntax Highlighting & Copy Func 2025-05-19 23:19:20 -07:00
utils feat: Basic Streaming 2025-05-16 01:51:55 -07:00
__init__.py feat: SurfSense v0.0.6 init 2025-03-14 18:53:14 -07:00
app.py feat: Removed Hard Dependecy on Google Auth 2025-05-21 20:56:23 -07:00
db.py feat: Removed Hard Dependecy on Google Auth 2025-05-21 20:56:23 -07:00
users.py feat: Removed Hard Dependecy on Google Auth 2025-05-21 20:56:23 -07:00