Skip to content

fix: preserve HTTP status in streak API error for rate-limit detectio…#2419

Open
Rudrasamadhiya wants to merge 1 commit into
Umbrella-io:mainfrom
Rudrasamadhiya:fix/issue-2409-streak-api-error-status
Open

fix: preserve HTTP status in streak API error for rate-limit detectio…#2419
Rudrasamadhiya wants to merge 1 commit into
Umbrella-io:mainfrom
Rudrasamadhiya:fix/issue-2409-streak-api-error-status

Conversation

@Rudrasamadhiya

Copy link
Copy Markdown

Summary

Fixes streak API silently returning 502 for all GitHub error statuses. The thrown error now carries the HTTP status code so the caller can return 429 for rate limits vs 502 for other errors.

Closes #2409

Type of Change

  • Bug fix

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:bug GSSoC type bonus: bug fix type:feature GSSoC type bonus: new feature type:performance GSSoC type bonus: performance (+15 pts) and removed gssoc26 GSSoC 2026 contribution labels Jun 13, 2026
@github-actions

Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Umbrella-io — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug GSSoC type bonus: bug fix type:feature GSSoC type bonus: new feature type:performance GSSoC type bonus: performance (+15 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Streak API throws generic "GitHub API error" for all non-2xx responses, losing HTTP status context (rate limit vs bad request)

1 participant