Skip to content

fix(finalizer): Fix Helios 404 detection broken by axios removal#3171

Merged
nicholaspai merged 3 commits intomasterfrom
fix/helios-404-detection
Apr 7, 2026
Merged

fix(finalizer): Fix Helios 404 detection broken by axios removal#3171
nicholaspai merged 3 commits intomasterfrom
fix/helios-404-detection

Conversation

@nicholaspai
Copy link
Copy Markdown
Member

Summary

  • The SDK's fetchWithTimeout uses the JSON body's error field as the error message when present. A 404 from the ZK API surfaces as e.g. "Proof request <id> not found" rather than "HTTP 404", so the includes("HTTP 404") check introduced in chore(deps): Remove axios, use SDK FetchUtils #3142 never matches.
  • This causes the finalizer to throw a hard error instead of gracefully requesting a new proof, breaking Helios L1→L2 finalization.
  • Fix: match on "not found" which covers the actual API error message.

Test plan

  • Deploy to staging and verify Helios finalizer correctly handles 404s from ZK proof API
  • Confirm no false positives from other error messages containing "not found"

🤖 Generated with Claude Code

The SDK's fetchWithTimeout uses the JSON body's `error` field as the
error message when present, so a 404 from the ZK API surfaces as
e.g. "Proof request <id> not found" rather than "HTTP 404". Match on
"not found" to restore correct behavior.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a8c2e29479

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@nicholaspai
Copy link
Copy Markdown
Member Author

@codex

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@nicholaspai nicholaspai merged commit 50c36f8 into master Apr 7, 2026
4 checks passed
@nicholaspai nicholaspai deleted the fix/helios-404-detection branch April 7, 2026 17:59
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