Skip to content

fix: API error handling with user-facing messages and retry#188

Merged
Mosas2000 merged 1 commit intomainfrom
fix/api-error-handling
Feb 26, 2026
Merged

fix: API error handling with user-facing messages and retry#188
Mosas2000 merged 1 commit intomainfrom
fix/api-error-handling

Conversation

@Mosas2000
Copy link
Copy Markdown
Owner

Closes #80

Changes

  • TipHistory: Add error state, show clear error message with retry button when Stacks API fetch fails. Validate API response status before parsing JSON.
  • PlatformStats: Improve error messaging to differentiate network errors (API unreachable) from contract call failures.
  • RecentTips: Improve error messaging with same network/contract error differentiation.

All three data-fetching components now:

  1. Show user-friendly error messages instead of infinite spinners or empty states
  2. Differentiate network errors from API response errors
  3. Provide a retry button for quick recovery
  4. Clear error state before retrying

TipHistory: Add error state with network/contract error differentiation
and retry button. Validate API response status before parsing JSON.

PlatformStats: Improve error message to differentiate network vs
contract errors.

RecentTips: Improve error message to differentiate network errors from
API response errors.

All three components now show clear user-facing error messages with
retry buttons when the Stacks API is unavailable or returns errors.
@Mosas2000 Mosas2000 merged commit f2ee7c8 into main Feb 26, 2026
2 of 4 checks passed
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.

No error handling for Stacks API unavailability in data-fetching components

1 participant