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

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

问题描述

我正在构建一个将数据存储在 Google Cloud Storage 中的 AppEngine 应用程序.我按照建议使用 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 应该在没有任何特定配置等的情况下模拟云存储功能.我在日志文件中看到开发服务器正在/_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.

这里有什么我遗漏的东西吗,例如dev-appserver 的特殊配置?

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天全站免登陆