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

Client exception should serialize errors #34

Open
Rast1234 opened this issue Apr 1, 2021 · 0 comments
Open

Client exception should serialize errors #34

Rast1234 opened this issue Apr 1, 2021 · 0 comments
Labels

Comments

@Rast1234
Copy link
Member

Rast1234 commented Apr 1, 2021

  • add serialized error to context
  • limit size to about 5kb

Pass serializer here:

context.WithError(untypedErrorResponse.Error);

Do something like ErrorInfo = JToken.FromObject(data, serializer.Serializer); and limit its length

Use this in ToString instead of Error property

@Rast1234 Rast1234 added the client label Apr 1, 2021
Rast1234 pushed a commit that referenced this issue May 12, 2021
fix(client): better error handling, #34 #36 

* add setting error in context
* fix client tests

Authored-by: Dmitriy Belokobylskiy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant