getDefaultGcsBucketName不包含任何数据

时间:2014-08-14 02:53:03

标签: java google-app-engine google-cloud-storage

我正在使用app engine 1.9.7 sdk并尝试按照Google云端存储客户端访问的文档进行操作。我试图找到默认的存储桶名称(所以我可以用免费配额测试一下)。但是有2个问题:

1)每当我尝试使用

AppIdentityService appIdentity = AppIdentityServiceFactory.getAppIdentityService();
String bucketName = appIdentity.getDefaultGcsBucketName();

resp.getWriter().println("no write " + bucketName);

我得到了这个例外:

  

来自servlet com.google.appengine.api.appidentity.AppIdentityServiceFailureException的未捕获异常:   getDefaultGcsBucketNameResponse不包含任何数据   com.google.appengine.api.appidentity.AppIdentityServiceImpl.getDefaultGcsBucketName(AppIdentityServiceImpl.java:163)

为什么它不包含数据?

2)我意外地激活并创建了一个新的存储桶(并为其写了一个非常小的文件)。怎么收费没有出现在我的每月估算费用上?

我和这个家伙有同样的问题:" getDefaultGcsBucketName Response contained no data"但问题是我使用的是更高版本的app引擎

1 个答案:

答案 0 :(得分:6)

我在1.9.7应用程序中遇到了同样的问题。转到appengine.google.com,转到管理 - >应用程序设置。滚动到页面底部,云集成并启用它。

过了一段时间,您应该会在" Basics"中看到Google Cloud Storage Bucket。同一页面中的字段。

相关问题