This write terminates the part headers with a single \r\n where a double \r\n\r\n is required. Consequentially every simple object insert call fails with status 400 and response body Malformed multipart body..
The reader also incorrectly adds an \r\n at the beginning and omits the one at the end of the last line, but this doesn't seem to bother the Google server.
In an unrelated issue: the error gets consumed from the response stream but does not get parsed since it is not JSON. A client::Error::Failure(response) is returned, but the response.body can no longer be read and the original server error message is lost.
https://github.com/Byron/google-apis-rs/blob/main/gen/storage1/src/client.rs#L452
This write terminates the part headers with a single
\r\n
where a double\r\n\r\n
is required. Consequentially every simple object insert call fails with status 400 and response bodyMalformed multipart body.
.The reader also incorrectly adds an
\r\n
at the beginning and omits the one at the end of the last line, but this doesn't seem to bother the Google server.In an unrelated issue: the error gets consumed from the response stream but does not get parsed since it is not JSON. A
client::Error::Failure(response)
is returned, but theresponse.body
can no longer be read and the original server error message is lost.