Google Drive - HTTP response code 400 with body: Invalid multipart request with 0 mime parts

What is the problem you are having with rclone?

After initial configuration, few files went through in a copy without issues. After that, any attempt to copy files result in:

2020/09/26 11:51:36 ERROR : test.txt: Failed to copy: googleapi: got HTTP response code 400 with body: Invalid multipart request with 0 mime parts.
2020/09/26 11:51:36 ERROR : Attempt 1/3 failed with 1 errors and: googleapi: got HTTP response code 400 with body: Invalid multipart request with 0 mime parts.

I reconfigure few times the drive but it did not work.

What is your rclone version (output from rclone version)

rclone v1.53.1

  • os/arch: windows/amd64
  • go version: go1.15

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows 10, 64 bit

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

./rclone copy .\test.txt remote:

The rclone config contents with secrets removed.

Paste config here

A log from the command with the -vv flag

PS C:\Users\ortij\My Documents\Temp\rclone> ./rclone copy .\test.txt remote: -vv
2020/09/26 12:03:45 DEBUG : rclone: Version "v1.53.1" starting with parameters ["C:\\Users\\ortij\\My Documents\\Temp\\rclone\\rclone.exe" "copy" ".\\test.txt" "remote:" "-vv"]
2020/09/26 12:03:45 DEBUG : Creating backend with remote ".\\test.txt"
2020/09/26 12:03:45 DEBUG : Using config file from "C:\\Users\\ortij\\.config\\rclone\\rclone.conf"
2020/09/26 12:03:45 DEBUG : fs cache: adding new entry for parent of ".\\test.txt", "//?/C:/Users/ortij/My Documents/Temp/rclone"
2020/09/26 12:03:45 DEBUG : Creating backend with remote "remote:"
2020/09/26 12:03:45 DEBUG : Google drive root '': root_folder_id = "0ADtXzM1ARRL4Uk9PVA" - save this in the config to speed up startup
2020/09/26 12:03:45 DEBUG : test.txt: Need to transfer - File not found at Destination
2020/09/26 12:03:46 ERROR : test.txt: Failed to copy: googleapi: got HTTP response code 400 with body: Invalid multipart request with 0 mime parts.
2020/09/26 12:03:46 ERROR : Attempt 1/3 failed with 1 errors and: googleapi: got HTTP response code 400 with body: Invalid multipart request with 0 mime parts.
2020/09/26 12:03:46 DEBUG : test.txt: Need to transfer - File not found at Destination
2020/09/26 12:03:46 ERROR : test.txt: Failed to copy: googleapi: got HTTP response code 400 with body: Invalid multipart request with 0 mime parts.
2020/09/26 12:03:46 ERROR : Attempt 2/3 failed with 1 errors and: googleapi: got HTTP response code 400 with body: Invalid multipart request with 0 mime parts.
2020/09/26 12:03:47 DEBUG : test.txt: Need to transfer - File not found at Destination
2020/09/26 12:03:47 ERROR : test.txt: Failed to copy: googleapi: got HTTP response code 400 with body: Invalid multipart request with 0 mime parts.
2020/09/26 12:03:47 ERROR : Attempt 3/3 failed with 1 errors and: googleapi: got HTTP response code 400 with body: Invalid multipart request with 0 mime parts.
2020/09/26 12:03:47 INFO  :
Transferred:            12 / 12 Bytes, 100%, 13 Bytes/s, ETA 0s
Errors:                 1 (retrying may help)
Elapsed time:         4.7s

2020/09/26 12:03:47 DEBUG : 4 go routines active
2020/09/26 12:03:47 Failed to copy: googleapi: got HTTP response code 400 with body: Invalid multipart request with 0 mime parts.

Can you share that please.

It seems the problem is gone. I tried from a different laptop and it is working smoothly now. It was probably something related to some of the security software installed in my corporate laptop.

That makes sense! I guess it was intercepting the https requests and mangling them somehow. I've never seen the above error before.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.