getDefaultGcsBucketName响应不包含数据 [英] getDefaultGcsBucketName Response contained no data

查看:100
本文介绍了getDefaultGcsBucketName响应不包含数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试调用AppIdentityService#getDefaultGcsBucketName,但它引发一个异常:响应不包含任何数据。根据文档,默认存储桶应该可以使用了。代码:

  // Field 
私人AppIdentityService服务;

// ctor
this.service = AppIdentityServiceFactory.getAppIdentityService();

//在方法中调用
final String baseUrl = GCS_URL +/+ service.getDefaultGcsBucketName()+/+ fileName;


解决方案

如果您在1.9.0之前创建了应用程序SDK版本,您必须手动设置默认的GCS存储桶。阅读这篇文章了解更多信息(我知道它适用于PHP,但它的适用于所有语言)。

I try to call AppIdentityService#getDefaultGcsBucketName but it throws an exception: Response contained no data. According to the docs, the default bucket should be ready to use. Code:

//Field
private AppIdentityService service;

//in ctor
this.service = AppIdentityServiceFactory.getAppIdentityService();

//call inside a method
final String baseUrl = GCS_URL + "/" + service.getDefaultGcsBucketName() + "/" + fileName;

解决方案

If you created your app prior to the 1.9.0 SDK release, you have to manually setup your default GCS bucket. Read this article for more information (I know its for PHP, but its applicable across all languages).

这篇关于getDefaultGcsBucketName响应不包含数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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