简体   繁体   English

Google云端存储客户端无法在本地dev_server上运行

[英]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]

--storage_path is described here . --storage_path 在这里描述。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在开发服务器上使用Google Cloud Storage客户端库显示图像 - Displaying an image with Google Cloud Storage client library on dev server 本地客户端上带有远程 api 的 Google 云存储客户端 - Google cloud storage client with remote api on local client Dev Server上的文件名中使用“&”号时的Google Cloud Storage错误 - Google Cloud Storage Error When Using Ampersand (&) in Filename on Dev Server 如何认证本地POSTGRESQL服务器访问谷歌云存储 - How to authenticate local POSTGRESQL server to access Google Cloud Storage GAE数据存储区在dev_server中正常运行,而不在生产环境中运行 - GAE datastore performs normally in dev_server, not in production 无法在dev_server上运行appengine-admin - cannot run appengine-admin on dev_server 我无法在“ dev_appserver.py”上创建Google Cloud Storage文件。 - I can't create a Google Cloud Storage file working on “dev_appserver.py.” 如何在App Engine开发服务器上获取Google Cloud Storage文件对象的服务URL? - How do I get the serving URL for Google Cloud Storage file objects on App Engine dev server? 适用于Google云端存储和大文件的Python客户端 - Python Client for Google Cloud Storage and large files 如何从App Engine的Python Dev_server解码持久日志文件 - How to decode the persisted log files from App Engine's Python Dev_server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM