Return retryable event response when Gitea request fails #67

Closed
opened 2026-08-06 03:16:42 +00:00 by rockachopa · 0 comments
Member

Evidence: src/main.py:event_stream catches TimeoutError only. A connection failure or upstream HTTP error from activity_events() escapes the route, producing FastAPI's generic 500 instead of the event API's structured retryable response. Add a behavioral regression test and return a 503 with retry guidance while preserving the existing timeout behavior.

Evidence: `src/main.py:event_stream` catches `TimeoutError` only. A connection failure or upstream HTTP error from `activity_events()` escapes the route, producing FastAPI's generic 500 instead of the event API's structured retryable response. Add a behavioral regression test and return a 503 with retry guidance while preserving the existing timeout behavior.
timmy was assigned by rockachopa 2026-08-06 03:16:42 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#67