diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-23 11:44:41 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-23 11:44:41 +0200 |
| commit | d0875a51b2f07766b339b34a580d4e6e9fab348d (patch) | |
| tree | 2e03e2714afdbf81c05662edc511b0b8b04c7919 /package.json | |
| parent | f7264b8f594859c1430bd13e765db03002842d38 (diff) | |
Handle Strava rate limiting with abort, retry time and daily usage display
Strava sync for 167 rides exceeds the 100/15-min read limit (2 calls per ride).
Previously a 429 was treated as a skipped ride, so every remaining ride also
failed silently. Now GetJSON returns a typed RateLimitError with RetryAfter
computed from Retry-After/Date and X-RateLimit headers (15-min window resets
at :00/:15/:30/:45, daily at midnight UTC) and tracks Read/Overall usage.
syncRides aborts on 429 with partial progress instead of skipping, and
handleSync emits an SSE error with retry time, daily usage vs limit and
structured rateLimit snapshot; progress and complete events also carry the
snapshot for the UI to display. Frontend shows Read daily/15-min usage in
progress details and on completion.
Diffstat (limited to 'package.json')
0 files changed, 0 insertions, 0 deletions
