We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently in the onSuccess handler, there is a catch function for reading the JSON response, that tries to read the stream again (via .text()) here.
This causes any possible parsing error to be masked by a TypeError: body stream already read since we are trying to read a stream twice.
TypeError: body stream already read
The catch function should be refactored to guard against the body already being streamed !response.bodyUsed.
!response.bodyUsed.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently in the onSuccess handler, there is a catch function for reading the JSON response, that tries to read the stream again (via .text()) here.
This causes any possible parsing error to be masked by a
TypeError: body stream already read
since we are trying to read a stream twice.The catch function should be refactored to guard against the body already being streamed
!response.bodyUsed.
The text was updated successfully, but these errors were encountered: