[英]Google Cloud Storage Client not working on local dev_server
I'm running SDK version 1.8.8 and r127 of the GCS client... 我正在运行SDK版本1.8.8和GCS客户端的r127 ......
I have a folder called /localGCS in my Home directory... my app is also in my Home directory. 我的主目录中有一个名为/ localGCS的文件夹...我的应用程序也在我的主目录中。 From my app's directory, I call dev_appserver.py with the following:
从我的应用程序目录中,我使用以下命令调用dev_appserver.py:
$ dev_appserver.py app.yaml loadandprocess.yaml downloader.yaml --storage_path=../localGCS
And my localGCS folder was populated by: 我的localGCS文件夹填充了:
~/localGCS$ ls
datastore.db search_indexes
[mybucketfolder] logs.db xsrf
Where the file I'm trying to get is inside [mybucketfolder]. 我想要获取的文件在[mybucketfolder]中。 However, I'm still getting an error:
但是,我仍然收到一个错误:
NotFoundError: Expect status [200] from Google Storage. But got status 404.
Any ideas? 有任何想法吗? Thanks...
谢谢...
From your description 从你的描述
.../localGCS in my Home directory... my app is also in my Home directory...
... /我的主目录中的localGCS ...我的应用程序也在我的主目录中...
I see that your home directory and your app's directory are the same. 我看到您的主目录和您的应用程序目录是相同的。 I also see that
/localGCS
in inside home directory. 我也在主目录中看到
/localGCS
。 If that is the case, you should use 如果是这种情况,您应该使用
--storage_path=./localGCS/[mybucketfolder]
. --storage_path=./localGCS/[mybucketfolder]
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.