Google Cloud Storage client does not work on local dev_server

I am running the SDK version 1.8.8 and r127 of the GCS client ...

I have a folder called / localGCS in my home directory ... my application is also in my home directory. From the directory of my application, I call dev_appserver.py with the following:

$ dev_appserver.py app.yaml loadandprocess.yaml downloader.yaml --storage_path=../localGCS 

And my local gcs folder was full:

 ~/localGCS$ ls datastore.db search_indexes [mybucketfolder] logs.db xsrf 

Where the file I'm trying to get is inside [mybucketfolder]. However, I still get the error message:

 NotFoundError: Expect status [200] from Google Storage. But got status 404. 

Any ideas? Thanks...

+6
source share
1 answer

From your description

... / localGCS in my home directory ... my application is also in my home directory ...

I see that your home directory and your application directory are the same. I also see that /localGCS inside the home directory. If so, you should use

--storage_path=./localGCS/[mybucketfolder] .

- storage_path is described here .

0
source

All Articles