谷歌v3 Calendar API现在报告IPv6连接错误,但昨天工作

时间:2015-05-06 21:02:43

标签: php google-calendar-api

通过PHP调用Google Calendar v3 API以获取列表中显示的事件时出现错误。

昨天(以及之前的几个月),这没有问题。今天既没有回归事件。打开调试会给我这个错误(使用XXXX混淆的域名):

Fatal error: Uncaught exception 'Google_IOException' with message 'HTTP Error: (0) Failed to connect to 2a00:1450:4009:80a::200d: Network is unreachable' in /home/sites/XXXX.org.uk/public_html/events/google-api/io/Google_CurlIO.php:123
Stack trace:
#0 /home/sites/XXXX.org.uk/public_html/events/google-api/auth/Google_OAuth2.php(270): Google_CurlIO->makeRequest(Object(Google_HttpRequest))
#1 /home/sites/XXXX.org.uk/public_html/events/google-api/auth/Google_OAuth2.php(265): Google_OAuth2->refreshTokenRequest(Array)
#2 /home/sites/XXXX.org.uk/public_html/events/google-api/auth/Google_OAuth2.php(218): Google_OAuth2->refreshTokenWithAssertion()
#3 /home/sites/XXXX.org.uk/public_html/events/google-api/service/Google_ServiceResource.php(167): Google_OAuth2->sign(Object(Google_HttpRequest))
#4 /home/sites/XXXX.org.uk/public_html/events/google-api/contrib/Google_CalendarService.php(529): Google_ServiceResource->__call('list', Array)
#5 /home/sites/XXXX.org.uk/pub in /home/sites/XXXX.org.uk/public_html/events/google-api/io/Google_CurlIO.php on line 123

任何人都可以建议可能造成这种情况的原因吗?

在Google上搜索“无法连接”错误表明主机无法连接到Google(但他们没有报告任何中断),或者主机的IPv6地址需要添加到Google Developer Console(但我无法找到" Connections"选项,它似乎已在旧的和新的控制台中删除。)

如前所述,这种情况昨天起作用,几个月来一直没有问题。 感谢。

0 个答案:

没有答案