本文介绍了Appengine Dev Server上的Google Cloud Storage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近在这里对Stackoverflow做出了类似的回答:



解决方案是将SDK升级至1.8.8或使用GCS的先前版本客户端库没有错误。



我目前使用1.8.8,并尝试下载多个修订版,并且/ _ah / gcs不加载我。在使用了大量的后端实例以试图了解GCS和应用引擎如何协同工作后,如果我可以在本地服务器上测试它,那就太棒了!



当我访问localhost:port / _ah / gcs时,我得到一个404找不到的错误。



并将代码放到我的应用程序文件夹中。我想知道如果也许我跳过了一个设置步骤?我无法在文档中找到答案!



谢谢!!



注意
为了说明这是我第一周使用GCS,所以我第一次尝试使用dev_server来托管它。

解决方案

要访问dev_appserver上的gcs对象,您必须指定bucket&对象名称,即/ _ah / gcs / [bucket] / [object]。

There's a similar question that was recently responded to on Stackoverflow here: Google Cloud Storage Client not working on dev appserver

The solution was to either upgrade the SDK to 1.8.8 or use the previous revision of the GCS client library which didn't have the bug instead.

I'm currently using 1.8.8 and have tried downloading multiple revisions and /_ah/gcs doesn't load for me. After using up a significant number of my backend instances trying to understand how GCS and app engine work together, it'd be great if I could just test it on my local server instead!

When I visit localhost:port/_ah/gcs I get a 404 not found error.

Just a heads up, to install the library all I did was drag and drop the code into my app folder. I'm wondering if maybe I skipped a setup step? I wasn't able to find the answer in the documentation!

thanks!!

NoteTo clarify this is my first week using GCS, so my first time trying to use the dev_server to host it.

解决方案

To access gcs objects on dev_appserver, you must specify the bucket & object name, i.e. /_ah/gcs/[bucket]/[object].

这篇关于Appengine Dev Server上的Google Cloud Storage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 12:21