Skip to content

Keep IPFS refs proxy failures out of stderr#1030

Draft
MicrowaveDev wants to merge 1 commit into
masterfrom
codex/quiet-ipfs-refs-proxy-failures
Draft

Keep IPFS refs proxy failures out of stderr#1030
MicrowaveDev wants to merge 1 commit into
masterfrom
codex/quiet-ipfs-refs-proxy-failures

Conversation

@MicrowaveDev

Copy link
Copy Markdown
Member

Summary

  • Add a shared storage-route error helper that preserves 502 responses while logging details only through lazy debug logging.
  • Use it for /v1/api/v0/refs* local IPFS refs proxy failures so expected upstream connection failures do not write to stderr.
  • Add regression coverage for the failed proxy route using a patched http.get.

Validation

  • GROUP_DERIVED_STATE_ASYNC=0 node --import tsx --experimental-global-customevent ./node_modules/.bin/mocha --require ./test/setupQuietLogs.cjs test/storageRouteErrors.test.ts --exit -t 10000
  • npm run security:route-inventory
  • npm run test:docker (207 passing, 11 pending)

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