我经常在日志中收到以下错误。它似乎是在以下操作期间发生的:commit
,lookup
,runQuery
这是每个错误的开始:
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
最佳答案
我面临着同样的问题,我们并不孤单。我将它们存储在存储中,而您将其存储在数据存储中,我也看到了其他功能中的报告。看这里:
https://github.com/google/google-api-php-client/issues/570
和这里
Uncaught exception 'Google_IO_Exception' with message 'HTTP Error: Unable to connect
不幸的是,到目前为止,我还没有找到解决方案。
关于google-app-engine - Google AppEngine-未捕获的异常“Google_IO_Exception”无法连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30534252/