cURL 错误 6:无法解析 GAE + Pubsub 上的主机 'www.googleapis.com'

cURL error 6: Couldn't resolve host 'www.googleapis.com' on GAE + Pubsub

各位程序员,大家好,

我在 Google App Engine 上通过 google-api-php-client 使用 PubSub 时遇到问题。

过去一切正常,但从今天早上开始我在 www.googleapis.com 主机上出现 curl 错误。

您知道如何解决这个问题吗?

非常感谢您的宝贵时间!

Type: GuzzleHttp\Exception\ConnectException

Message: cURL error 6: Couldn't resolve host 'www.googleapis.com' (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Filename: /base/data/home/apps/{my_app}/2.396148512822725307/application/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php

从您的 php.ini

中删除扩展名=curl.so

这不是一个好看的修复,但它会让 pub/sub 再次工作。