Open
Description
When the request ends with timeout or network error, I get just a generic SdkExecutionError
with the root cause buried in the message, for example: Request ended with network error: timeout
.
This makes representing the error to the end user harder, for example in OneService we want to format the error into a GraphQL-compliant structure and expose the root cause to the client, so they can react accordingly.
I think what would help here is to either keep the original failure
packed in the returned error, or at least pass its kind
.
Relevant code:
one-sdk-js/src/core/events/failure/policy.ts
Lines 119 to 148 in fbf5e4c