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
{{ message }}
Repository navigation
Collapse payInvoice raw-fetch seam now that ibex-client 3.3.0 ApiError carries the body #478
payInvoice in src/services/ibex/client.ts calls the generated SDK through Ibex.authentication.withAuth(() => Ibex.ibex.payInvoiceV2(...)) instead of the standard Ibex.payInvoiceV2(...) wrapper. That seam existed because [email protected]'s ApiError discarded the response body (lnflash/ibex-client#6), which made "insufficient balance" 400s unclassifiable through the standard path.
As of [email protected] (bumped in #477), ApiError extracts httpCode / ibexResponse / ibexMessage itself, and #477's integration tests prove errorHandler classifies a body-carrying ApiError through the standard path. The seam is now redundant and retained only as belt-and-braces.
and remove the httpErrorHandler catch from this path (keeping httpErrorHandler itself as defense-in-depth for any remaining raw-fetch callers, or removing it if none remain). Collapsing a payment path deserves its own PR with its own test scrutiny — that's why it was not folded into the #477 deps bump.
Insufficient-balance 400s still classify as InsufficientIbexBalance (existing unit tests in test/flash/unit/services/ibex/errors.spec.ts must keep passing; add a payInvoice-level test if feasible)
Unrecognized IBEX 400s still log the IBEX body detail exactly once
Activity
fix(ibex): dedupe error detail carry, refresh stale 3.2.0 comments
chore(deps): bump ibex-client to ^3.3.0 for structured error details (#…
fix(ibex): never invent a failed send either; parse LNURL settle date…
fix(payments): read every IBEX status field; never invent a settled s…