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

"Cannot rewind body after connection loss" error message pops up sporadically. #185

Closed
alvinlin123 opened this issue Jan 25, 2024 · 0 comments

Comments

@alvinlin123
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant