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

When the client cannot unmarshal an error response, the response is lost #428

Open
taylor-sutton opened this issue May 2, 2022 · 0 comments
Labels
bug go-client relating to the generated Go client
Milestone

Comments

@taylor-sutton
Copy link
Contributor

Example generated code:

var output models.BadRequest
if err := json.NewDecoder(resp.Body).Decode(&output); err != nil {
return nil, "", err
}

This is is perhaps a bit tricky to handle better if we want to continue with allowing the response body to be streamed?

@taylor-sutton taylor-sutton added bug go-client relating to the generated Go client labels May 2, 2022
@taylor-sutton taylor-sutton added this to the v9.0 milestone May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug go-client relating to the generated Go client
Projects
None yet
Development

No branches or pull requests

1 participant