Skip to content

Handle RPC request failures gracefully - Accounts #56

@iankressin

Description

@iankressin

Describe the solution you'd like
In the current implementation, if a single RPC call fails, the whole query fails. RPC request errors should be handled gracefully, returning None for the fields which the value couldn't be fetched in that query.

In the case of accounts, if one of the calls made inside the get_account method fails, should return None, instead of throwing an error.

Additional context
You can attest the current behavior in the link below, where one of the RPCs is failing to respond the request and the whole query fails.
https://eql.sh/?query=GET+*+FROM+account+vitalik.eth+ON+*

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions