应用程序引擎更新破坏了dev-php-env中的CloudStorage


App engine update breaks CloudStorage in dev php env

在GoogleAppEngineLauncher今天的更新(版本:"1.9.18".)之后,CloudStorageTool现在抛出了一个以前没有的异常。这是抛出的异常:

google'appengine'runtime'RPCFailedError: Remote implementation for app_identity_service.GetAccessToken failed.

轨迹如下:

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上,并在本地进行测试。

其他人经历过这种情况吗?有人有工作吗?

正如在GAE本地devserver中使用GCS的评论中所说,1.9.18存在问题。他们建议使用此链接将降级至1.9.17

更新:截至2105年3月5日,这在1.9.18的公开版本中得到了修复,这可能是一种更简单的修复方法。