google-client

Failed to connect to www.googleapis.com port 443: Network unreachable

白昼怎懂夜的黑 提交于 2019-11-28 01:42:00
问题 I'm trying to implement google sign-in in my website that is written in Symfony2 using Google Client API. I followed the instructions here, but when I call $client->authenticate($code); command an exception is thrown telling that: Failed to connect to www.googleapis.com port 443: Network unreachable What is the problem? 回答1: Solution 2 (from update). it seems to be some bug with ipv6 interfaces and curl with php, so another solution is to set the appropiate option in curl function to connect