danielgtaylor / huma

Huma REST/HTTP API Framework for Golang with OpenAPI 3.1
https://huma.rocks/
MIT License
1.95k stars 144 forks source link

Panic on write with very large response body bricks server for some time as response body is logged to standard output #478

Closed austincollinpena closed 3 months ago

austincollinpena commented 3 months ago
    panic(fmt.Sprintf("error marshaling response %+v for %s %s %d: %s\n", tval, ctx.Operation().Method, ctx.Operation().Path, status, merr.Error()))

For very big response bodies this is an issue

austincollinpena commented 3 months ago

PR: https://github.com/danielgtaylor/huma/pull/479