You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying the project, I made an http request with a large payload with post and got an error like {"error":{"code":400,"message":"error reading body params '*': proto: syntax error (line 2:12): invalid character '\\x00' in string","details":null,"Body":"","Header":null,"Errors":null}}%
TeeReader returns a Reader that writes to w what it reads from r. All reads from r performed through it are matched with corresponding writes to w. There is no internal buffering - the write must complete before the read completes. Any error encountered while writing is reported as a read error.
While trying the project, I made an http request with a large payload with post and got an error like
{"error":{"code":400,"message":"error reading body params '*': proto: syntax error (line 2:12): invalid character '\\x00' in string","details":null,"Body":"","Header":null,"Errors":null}}%
this line needs all bytes to unmarshall
gapic-showcase/util/genrest/goviewcreator.go
Line 128 in 8186605
after some debugging and reproducing bug on simple go server i've found out this, giving r.body directly to teereader wont be able to read all data.
gapic-showcase/util/genrest/goviewcreator.go
Line 121 in 8186605
red dots are null bytes \x00
https://cs.opensource.google/go/go/+/go1.20.5:src/io/io.go;l=603
The text was updated successfully, but these errors were encountered: