Google Cloud Storage客户端无法在开发应用服务器上运行 [英] Google Cloud Storage Client not working on dev appserver

查看:158
本文介绍了Google Cloud Storage客户端无法在开发应用服务器上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个AppEngine应用程序,该程序将数据存储在Google Cloud Storage中.我按照建议使用Google Cloud Storage Client(GCS)库.

I 'm building an AppEngine application that stores data in Google Cloud Storage. I use the Google Cloud Storage Client (GCS) library as suggested.

我的应用程序部署在AppEngine(读取/写入/列出对象)上时可以运行,但是我无法使其在开发服务器上运行.开发服务器不断返回错误404,GCS引发NotFoundError. dev-appserver应该在没有任何特定配置等情况下模拟云存储功能.我在日志文件中看到dev服务器正在"/_ah/gcs"接受请求,但似乎没有用于该URL的处理程序.我尝试使用1.8.5和1.8.6版本.除了我的应用程序外,甚至连Google提供的演示应用程序都无法使用.

My app is working when deployed on AppEngine (reading/writing/listing objects) but I cannot make it work on the development server. The development server keeps returning error 404 and GCS raises NotFoundError. The dev-appserver is supposed to emulate the cloud storage functionality without any specific configurations etc. I see in the log files that the dev server is accepting requests at "/_ah/gcs" yet it seems that there is no handler for that url. I 've tried with version 1.8.5 and 1.8.6. Apart from my app, not even the demo app provided by Google works.

我在这里是否缺少某些东西,例如开发应用服务器的特殊配置?

Is there something that I 'm missing here, e.g. a special configuration for the dev-appserver?

推荐答案

很抱歉,以下更改被误为时过早推出.它仅适用于1.8.8 SDK.我们正在简化gcs客户端的发布过程,以使其与SDK保持一致.抱歉

Sorry the following change was pushed out too early by mistake. It only works with 1.8.8 SDK. We are streamlining the release process of gcs client to align with SDK. Sorry

https://code.google.com/p/appengine-gcs -client/source/detail?r = 125 无需更改,它就可以在1.8.7 SDK上运行.

https://code.google.com/p/appengine-gcs-client/source/detail?r=125 Without this change, it works on 1.8.7 SDK.

这篇关于Google Cloud Storage客户端无法在开发应用服务器上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆