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

Better error treatment #3

Open
aferreroc opened this issue Aug 9, 2021 · 0 comments
Open

Better error treatment #3

aferreroc opened this issue Aug 9, 2021 · 0 comments

Comments

@aferreroc
Copy link

aferreroc commented Aug 9, 2021

I am trying to catch errors from the server side, I sent a status "unauthenticated" (code 16) with message "ExpiredSignature"

Received error message from grpc-web-client:
status: Unknown, message: "FetchFailed(JsValue(TypeError: Failed to fetch\nTypeError: Failed to fetch))", details: [], metadata: MetadataMap { headers: {} }

response header:

grpc-status: 16
grpc-message: ExpiredSignature
content-length: 0
date: Mon, 09 Aug 2021 12:06:47 GM

The response header is ok, but the error message needs more treatment, perhaps need to catch response headers and put it into the error message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant