"Cannot rewind body after connection loss" error message pops up sporadically.
alvinlin123 opened this issue · 0 comments
alvinlin123 commented
Some user report seeing this error message. I suspect it's caused by this line of code because req.Body
is not "rewindable ". According to documented in Go’s NewRequestWithContext function doc, for the request to be rewindable it should be type of *bytes.Buffer
, *bytes.Reader
, or *strings.Reader
(Rewindable means GetBody
function is defined for the request object.