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

Fixing other type of errors #230

Open
xescugc opened this issue Jan 30, 2024 · 0 comments
Open

Fixing other type of errors #230

xescugc opened this issue Jan 30, 2024 · 0 comments

Comments

@xescugc
Copy link
Member

xescugc commented Jan 30, 2024

Following #224 there are other errors which are malformed.

In this case the return from the response from the CLI is unknown error (status 422): {}.

This error is returned directly from swagger client and it's from type runtime.APIError so it's not formatted by the fix I did on #224.

The runtime.AIPError#Response is of type client.response which holds the actual response but the data take from the response is not the message (which is still there).

If I print all the Response I can see the actual error in it, it's basically a path format error, the previous fix was about BE errors formated but this one is about errors directly from swagger validation.

The response if of type https://github.com/go-openapi/runtime/blob/v0.28.0/client_response.go#L25

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