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

Handle graph errors with grace #22

Open
4 tasks
0xMochan opened this issue May 26, 2023 · 0 comments
Open
4 tasks

Handle graph errors with grace #22

0xMochan opened this issue May 26, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@0xMochan
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
When the Graph returns with an error model, I'd like Subgrounds to present those errors better so I can handle them in my project

Describe the solution you'd like
I'd like Graph Node / GraphQL Errors to be properly modeled (based on the "errors") field.

Potentially, I'd like special behavior such as retry policies and query tweaking to fix those errors automagically.

Describe alternatives you've considered
Not handling errors.

Additional context
We can leverage the exact error models from the graph_node. Helpful Links:

Implementation checklist

  • Reimplement Graph error models in pydantic
    • Maybe generate protobuf or even import rust enums into python thru ✨ magic ✨
  • Package errors when using client methods
    • Integrate with PaginationStrategy
@0xMochan 0xMochan added the enhancement New feature or request label May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant