Skip to content

Comments

better error message on invalid alchemy key#1496

Merged
naps62 merged 2 commits intomainfrom
better-error-msgs
Nov 8, 2025
Merged

better error message on invalid alchemy key#1496
naps62 merged 2 commits intomainfrom
better-error-msgs

Conversation

@naps62
Copy link
Member

@naps62 naps62 commented Nov 7, 2025

We require alchemy api keys to support at least eth mainnet
when that doesn't happen, the key is deemed invalid, but the settings UI was not being clear about this reason

The new approach propagates certain http errors from the test function back to the UI

Copilot AI review requested due to automatic review settings November 7, 2025 17:34
@naps62 naps62 added the B-bugfix Something is working again label Nov 7, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves error handling in the settings crate by providing more detailed error messages from API validation and standardizing error handling patterns.

  • Enhanced Alchemy API key validation to extract and display specific error messages from HTTP responses
  • Standardized error handling in actor message passing to provide clearer error context

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
crates/settings/src/utils.rs Added detailed error extraction from Alchemy API responses, parsing JSON error messages to provide better user feedback
crates/settings/src/actor.rs Replaced wrap_err_with with explicit match-based error handling for actor message passing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@naps62 naps62 merged commit 466f217 into main Nov 8, 2025
7 checks passed
@naps62 naps62 deleted the better-error-msgs branch November 8, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

B-bugfix Something is working again

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant