Q:

Can't upload file to GCS using gsutil

Copying file://InstreamImpression.csv.gz [Content-Type=application/octet-stream]...
AccessDeniedException: 401 Login Requiredfe13d1e0fb408639_4...:  46.75 MB/46.77 MB
CommandException: 1 files/objects could not be transferred.
Seems like whole object is being transferred but gives 401 error at the end. And it's been happening for a while.
Ran "gcloud auth login" couple times. But still the same error
I am able to upload the files from different machine.
Any idea?

A:

It was a weird case.
The file was on windows server under "D:" drive and I was running gsutil tool from there. 
i.e.
D:>gsutil -m cp xyz.csv gs:\somebucket\
I didn't have enough permission on D: drive
But as soon as I run the same command from "C:" drive it worked fine
i.e
C:>gsutil -m cp "D:\xyz.csv" gs:\somebucket\

