subgrounds icon indicating copy to clipboard operation
subgrounds copied to clipboard

Handle graph errors with grace

Open 0xMochan opened this issue 1 year ago • 0 comments

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 avatar May 26 '23 19:05 0xMochan