Skip to content

fix(#235): retry on 5xx errors and make fountain refresh resilient - #246

Open
dennismdejong wants to merge 2 commits into
jjjonesjr33:devfrom
dennismdejong:fix/upstream-235
Open

fix(#235): retry on 5xx errors and make fountain refresh resilient#246
dennismdejong wants to merge 2 commits into
jjjonesjr33:devfrom
dennismdejong:fix/upstream-235

Conversation

@dennismdejong

Copy link
Copy Markdown

Fixes #235

Changes:

  • PetLibroSession.request() now retries up to 2 additional times on HTTP 5xx responses with a 2-second delay between retries
  • DockstreamSmartFountain.refresh() wraps each individual API call in its own try/except so a single endpoint failure doesn't lose data from other successful calls
  • Retry logic runs before JSON parsing to handle non-JSON error pages

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Error refreshing data for DockstreamSmartFountain

1 participant