Skip to content

fix: stop reporting expected swap and on-ramp outcomes as notifiable Bugsnag warnings#1055

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/expected-swap-onramp-errors-not-notifiable
Jul 10, 2026
Merged

fix: stop reporting expected swap and on-ramp outcomes as notifiable Bugsnag warnings#1055
bmc08gt merged 1 commit into
code/cashfrom
fix/expected-swap-onramp-errors-not-notifiable

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Two production Bugsnag "warning" issues were expected outcomes, not app defects:

  • Swap poll timeouts and backend-driven terminal states (FAILED/CANCELLED) threw a bare SwapError.Other() (a NotifiableError). Add dedicated SwapError.Timeout and SwapError.Terminal(state) subtypes that are not NotifiableError, and throw them from SwapPoller. Genuinely unexpected cases (UNKNOWN state, getSwap failures) still throw SwapError.Other.

  • Solana transaction simulation / on-chain program rejections (e.g. "custom program error: 0x1") were reported via ErrorUtils.handleError. Add RpcException.isSimulationError and skip the Bugsnag report for those in PhantomWalletController, while still surfacing the typed failure to the user.

…Bugsnag warnings

Two production Bugsnag "warning" issues were expected outcomes, not app defects:

- Swap poll timeouts and backend-driven terminal states (FAILED/CANCELLED)
  threw a bare SwapError.Other() (a NotifiableError). Add dedicated
  SwapError.Timeout and SwapError.Terminal(state) subtypes that are not
  NotifiableError, and throw them from SwapPoller. Genuinely unexpected cases
  (UNKNOWN state, getSwap failures) still throw SwapError.Other.

- Solana transaction simulation / on-chain program rejections (e.g. "custom
  program error: 0x1") were reported via ErrorUtils.handleError. Add
  RpcException.isSimulationError and skip the Bugsnag report for those in
  PhantomWalletController, while still surfacing the typed failure to the user.
@bmc08gt bmc08gt self-assigned this Jul 10, 2026
@github-actions github-actions Bot added area: crypto Solana, keys, encryption, signing type: fix Bug fix area: network gRPC, connectivity, API, exchange rates area: onramp Deposit, purchase, Coinbase, fiat on-ramp area: deeplinks Deep link handling, URL routing, and link parsing labels Jul 10, 2026
@bmc08gt bmc08gt merged commit e861ba6 into code/cash Jul 10, 2026
3 checks passed
@bmc08gt bmc08gt deleted the fix/expected-swap-onramp-errors-not-notifiable branch July 10, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: crypto Solana, keys, encryption, signing area: deeplinks Deep link handling, URL routing, and link parsing area: network gRPC, connectivity, API, exchange rates area: onramp Deposit, purchase, Coinbase, fiat on-ramp type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant