getDefaultGcsBucketName Response contained no data

两盒软妹~` 提交于 2020-01-15 12:15:21

问题


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;

回答1:


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).



来源:https://stackoverflow.com/questions/24912216/getdefaultgcsbucketname-response-contained-no-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!