You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 typeclient.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#L25The text was updated successfully, but these errors were encountered: