Google AppEngine - 未捕获的异常'Google_IO_Exception'无法连接

时间:2015-05-29 16:11:06

标签: google-app-engine google-cloud-datastore

我经常在日志中收到以下错误。它似乎发生在以下操作中:commitlookuprunQuery

这是每个错误的开始:

PHP Fatal error:  Uncaught exception 'Google_IO_Exception' with message 'HTTP Error: Unable to connect: 'fopen(https://www.googleapis.com/datastore/v1beta2/datasets/{APPENGINE_ID}/commit): failed to open stream: Unsupported SSL context options are set. The following options are present, but have been ignored: cafile

PHP Fatal error:  Uncaught exception 'Google_IO_Exception' with message 'HTTP Error: Unable to connect: 'fopen(https://www.googleapis.com/datastore/v1beta2/datasets/{APPENGINE_ID}/lookup): failed to open stream: Unsupported SSL context options are set. The following options are present, but have been ignored: cafile

PHP Fatal error:  Uncaught exception 'Google_IO_Exception' with message 'HTTP Error: Unable to connect: 'fopen(https://www.googleapis.com/datastore/v1beta2/datasets/{APPENGINE_ID}/runQuery): failed to open stream: Unsupported SSL context options are set. The following options are present, but have been ignored: cafile

这是上述每个错误下面的确切文字:

Fetch error'' in /base/data/home/apps/{APPENGINE_ID}/{NUMBERS}/vendor/google/apiclient/src/Google/IO/Stream.php:141
Stack trace:
#0 /base/data/home/apps/{APPENGINE_ID}/{NUMBERS}/vendor/google/apiclient/src/Google/IO/Abstract.php(136): Google_IO_Stream->executeRequest(Object(Google_Http_Request))
#1 /base/data/home/apps/{APPENGINE_ID}/{NUMBERS}/vendor/google/apiclient/src/Google/Http/REST.php(60): Google_IO_Abstract->makeRequest(Object(Google_Http_Request))
#2 [internal function]: Google_Http_REST::doExecute(Object(Google_Client), Object(Google_Http_Request))
#3 /base/data/home/apps/{APPENGINE_ID}/{NUMBERS}/vendor/google/apiclient/src/Google/Task/Runne in /base/data/home/apps/{APPENGINE_ID}/{NUMBERS}/vendor/google/apiclient/src/Google/IO/Stream.php on line 141

有谁知道为什么会这样?这不会一直发生,所以我非常怀疑它有什么可以做我的代码。

Bug Report Link

1 个答案:

答案 0 :(得分:1)

我面临同样的问题,我们并不孤单。我把它们放在Storage中,而你在Datastore中我也看过其他功能的报告。看这里: https://github.com/google/google-api-php-client/issues/570 和这里 Uncaught exception 'Google_IO_Exception' with message 'HTTP Error: Unable to connect

到目前为止,遗憾的是,我无法找到解决方案。