You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Wrap the transport fetch and the JSON parse in try/catch so
network failures (DNS/socket) and parse errors now retry with
backoff, not just HTTP statuses. HTTP-error throws (402 with
context, generic non-OK) stay outside the try so they propagate
immediately (Copilot).
- Separate 402 retry budget from the 429/network retry budget. 429
needs a larger budget (real rate-limit backoff); 402 is usually a
genuine premium gate so should retry at most once. maxAttempts=3,
max402Retries=1 (Copilot).
- Drop the `delete filters[k]` loop in `toggl_search_time_entries`;
JSON.stringify already omits undefined-valued properties, so the
loop was dead weight and its comment was also inaccurate (Copilot).
0 commit comments