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

How to read error message? #263

Open
sebit-dogancoruh opened this issue Jun 24, 2021 · 1 comment
Open

How to read error message? #263

sebit-dogancoruh opened this issue Jun 24, 2021 · 1 comment

Comments

@sebit-dogancoruh
Copy link

I am trying to read error message but all client functions return blob object type for errors.
There is an asynchronous way to read it by error.text().then((message) => { bla bla... } but i want to read it directly because there is no chance to write error handling code in another async function for awaiting it in my project. Is there a property that i don't know or a simple way to read it synchronously?

@luisfpg
Copy link
Collaborator

luisfpg commented Jul 16, 2021

It depends on your source swagger definition. Posting it can help...

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

2 participants