[question] about panic with error marshaling response: ... context canceled
.
#632
Labels
bug
Something isn't working
error marshaling response: ... context canceled
.
#632
Hi there,
I have a question about the panic that happens here.
We've been facing such panic in our logs for some time, and the
err
iscontext canceled
.We use
humaecho
adapter that usesecho.Context.Response
under the hood.Sometimes, we get
context canceled
err onapi.Marshal(ctx.BodyWriter(), ct, tval)
, which forces Huma to panic.How to reproduce?
I took
humamux
adapter and addedmockBodyWriter
that returnscontext.Canceled
mock_adapter.go
main.go
cURL request
Server output
Questions
Overall, I want to understand the reasons behind this logic before doing anything else.
Thank you.
The text was updated successfully, but these errors were encountered: