Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when running with unimplemented light client APIs #199

Open
robzajac opened this issue Feb 22, 2023 · 1 comment
Open

Crash when running with unimplemented light client APIs #199

robzajac opened this issue Feb 22, 2023 · 1 comment

Comments

@robzajac
Copy link

I ran against a consensus node that does not have the light client APIs implemented and saw a crash of:

$ helios --execution-rpc https://eth-mainnet.g.alchemy.com/v2/xxxxx --consensus-rpc http://localhost:8551
[2023-02-22T17:49:00Z INFO  client::rpc] rpc server started at 127.0.0.1:8545
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/runner/work/helios/helios/client/src/client.rs:223:80
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

It might be a good place for a more informative error message (pointing the user towards choosing a node with the APIs enabled).

@ncitron
Copy link
Collaborator

ncitron commented Feb 22, 2023

This is a great idea. Thanks for opening this issue.

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

No branches or pull requests

2 participants