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->authent
Had the same issue - problem was with dns resolution, like mentioned in le0diaz's answer.
On ubuntu 16.04, we were able to solve it by chaning /etc/gai.conf, changing the presedance for IPv6, uncommenting the following line:
precedence ::ffff:0:0/96 100