Skip to content

feat(ibex): propagate httpCode from ibex-client 3.2.0 + structural 429 detection (ENG-485)#439

Merged
islandbitcoin merged 1 commit into
mainfrom
jabariennis/eng-485-ibex-httpcode
Jul 7, 2026
Merged

feat(ibex): propagate httpCode from ibex-client 3.2.0 + structural 429 detection (ENG-485)#439
islandbitcoin merged 1 commit into
mainfrom
jabariennis/eng-485-ibex-httpcode

Conversation

@islandbitcoin

Copy link
Copy Markdown
Contributor

Summary

Downstream half of ENG-485, now unblocked: ibex-client#11 (released v3.2.0) makes ApiError carry the wrapped HTTP status as httpCode — previously its constructor was super(e.stack), discarding the status entirely, which is why flash's IbexError.httpCode sat commented out.

  • Bump ibex-client ^3.1.0 → ^3.2.0
  • IbexError.httpCode now populated from ApiError.httpCode
  • Cutover rate-limit detection is structural-first: httpCode === 429 (returned IbexErrors) or .status === 429 (raw thrown FetchErrors), keeping the "too many requests" text match as fallback for anything carrying neither

Test plan

  • New test: structural 429 (status field, no rate-limit text) retries correctly
  • 80 cutover + runtime-services tests green against the real 3.2.0 package; tsc + eslint clean

Refs ENG-485

🤖 Generated with Claude Code

…9 (ENG-485)

ibex-client 3.2.0's ApiError now carries the wrapped HTTP status as
httpCode (previously the constructor discarded the original error, which
is why the IbexError.httpCode line sat commented out — it had nothing to
read). This:

- bumps ibex-client ^3.1.0 -> ^3.2.0
- turns on IbexError.httpCode (from ApiError.httpCode)
- makes the cutover rate-limit detection structural-first:
  httpCode === 429 (returned IbexErrors) or status === 429 (raw thrown
  FetchErrors), with the "too many requests" text match retained as a
  fallback for anything carrying neither.

Refs ENG-485 (upstream half: lnflash/ibex-client#11, released v3.2.0)
@linear

linear Bot commented Jul 7, 2026

Copy link
Copy Markdown

ENG-485

@islandbitcoin islandbitcoin merged commit 339eb5b into main Jul 7, 2026
14 checks passed
@islandbitcoin islandbitcoin deleted the jabariennis/eng-485-ibex-httpcode branch July 7, 2026 12:38
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.

2 participants