App引擎更新在dev php env中打破了CloudStorage [英] App engine update breaks CloudStorage in dev php env
本文介绍了App引擎更新在dev php env中打破了CloudStorage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是抛出的异常:
google\appengine\runtime\RPCFailedError:app_identity_service的远程实现。 GetAccessToken失败。
跟踪如下所示:
google_appengine / php / sdk / google /appengine/api/app_identity/AppIdentityService.php@182
google_appengine / php / sdk / google / appengine / ext / cloud_storage_streams / CloudStorageClient.php @ 329
google_appengine/php/sdk/google/appengine/ext/cloud_storage_streams/CloudStorageUrlStatClient.php@132
google_appengine/php/sdk/google/appengine/ext/cloud_storage_streams/CloudStorageUrlStatClient.php@63
google_appengine/php/sdk/google/appengine/ext/cloud_storage_streams/CloudStorageStreamWrapper.php@358
复制代码:
$ filename ='test.txt';
$ bucket_name = google\appengine\api\cloud_storage\CloudStorageTools :: getDefaultGoogleStorageBucketName();
file_exists('gs://'.$bucket_name.'/'.$filename);
我正在运行GoogleAppEngineLauncher,PHP运行时。在Mac OSX 10.10.2上进行本地测试。
其他人是否经历过这种情况?有没有人有workround?
解决方案
正如评论在GAE本地文件服务器中使用GCS 1.9.18版本存在问题。他们建议使用此链接降级到1.9.17 >
After todays update (release: "1.9.18".) of GoogleAppEngineLauncher, CloudStorageTool now throws an exception it didn't before. This is the exception thrown:
google\appengine\runtime\RPCFailedError: Remote implementation for app_identity_service.GetAccessToken failed.
The trace looks like this:
google_appengine/php/sdk/google/appengine/api/app_identity/AppIdentityService.php@182
google_appengine/php/sdk/google/appengine/ext/cloud_storage_streams/CloudStorageClient.php@329
google_appengine/php/sdk/google/appengine/ext/cloud_storage_streams/CloudStorageUrlStatClient.php@132
google_appengine/php/sdk/google/appengine/ext/cloud_storage_streams/CloudStorageUrlStatClient.php@63
google_appengine/php/sdk/google/appengine/ext/cloud_storage_streams/CloudStorageStreamWrapper.php@358
Reproducing code:
$filename = 'test.txt';
$bucket_name = google\appengine\api\cloud_storage\CloudStorageTools::getDefaultGoogleStorageBucketName();
file_exists( 'gs://'.$bucket_name.'/'.$filename );
I'm running the GoogleAppEngineLauncher, PHP runtime. On mac OSX 10.10.2 and testing locally.
Has anybody else experienced this? Does anyone have a workround?
解决方案
As said in the comment Using GCS in GAE Local devserver there is an issue with 1.9.18. They advise to downgrade to 1.9.17 with this link
这篇关于App引擎更新在dev php env中打破了CloudStorage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文