Not sure if this is exactly the same as NotFoundError: Expect status [200] from Google Storage. But got status 404 while reading a file but I have the same problem and I couldn't find a resolution there. I used the Browser to upload a file players2018 to my storage bucket. it's there and I can see it fine in the storage cloud browser. I'm definitely resolving with the right bucket name, which is just the name of my app and it is the same name that appears when I get a link to the file from the Cloud browser. So here's the relevant code:
def bucket_name():
os.environ.get('BUCKET_NAME', app_identity.get_default_gcs_bucket_name())
return app_identity.get_default_gcs_bucket_name()
def read_file(filename):
fn = "/" + bucket_name() + "/" + filename
logging.debug("Reading" + fn)
with cloudstorage.open(fn) as cloudstorage_file:
return cloudstorage_file.readlines()
And I get back:
NotFoundError: Expect status [200] from Google Storage. But got status 404.
Path: '/[Actual Bucket Name]/players2018'.
Request headers: None.
Response headers: {'connection': 'close', 'date': 'Thu, 08 Mar 2018 02:25:32 GMT', 'server': 'Development/2.0'}.
Body: ''.
Extra info: None.
I changed the bucket name to protect the clueless, namely me.

app_identity.get_default_gcs_bucket_name(). Did you update your code? - A.Queue