Skip to content

exception_handler: surface disabled swap creation as a swap outage - #657

Merged
erdemyerebasmaz merged 2 commits into
mainfrom
boltz-swap-creation-disabled
Aug 3, 2026
Merged

exception_handler: surface disabled swap creation as a swap outage#657
erdemyerebasmaz merged 2 commits into
mainfrom
boltz-swap-creation-disabled

Conversation

@erdemyerebasmaz

Copy link
Copy Markdown
Collaborator

This PR replaces the raw Boltz error shown on Receive > Bitcoin Address, and bumps the version to 0.3.1.

Boltz disabled swap creation while keeping its pairs endpoint live, that's why prepare_receive_payment succeeds and the refusal only surfaces on receive_payment as an untyped Generic error. PairsNotFound, handled in #655, never fires.

Changelist:

  • exception_handler: surface disabled swap creation as a swap outage 4772fac
  • bump version to 0.3.1 ad09ebd

erdemyerebasmaz and others added 2 commits August 4, 2026 02:02
Verified against device logs: Boltz keeps its pairs endpoint live while
refusing to create swaps, so prepare_receive_payment succeeds with real
fees and limits, and the refusal only lands on receive_payment as
Generic { err: "Boltz API returned error status 400 Bad Request:
{\"error\":\"swap creation is disabled\"}" }.

Users on Receive > Bitcoin Address saw that raw JSON. PairsNotFound, which
#655 assumed was the error hit during this outage, never fires. Route both
to the same message and reuse it via a shared constant.

Matching on the error text is fragile, but the SDK flattens the Boltz 400
body into an untyped Generic error, so there is nothing else to match on.
The adjacent non-final / rpc error -26 check sets the precedent.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@erdemyerebasmaz
erdemyerebasmaz merged commit 9d7feb7 into main Aug 3, 2026
1 check 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.

1 participant