I have an adwords web application which works fine when I run it on my 
localhost.
I'm using a refresh token.

However, when I copy the exact same code to my website running on Microsoft 
Azure I'm getting
"Failed to connect to 2a00:1450:400c:c00::54: Address family not supported"

2a00:1450:400c:c00::54:  is a Google IPv6 address. It's being called when 
it tries to make the request out to Google ( see code below)

I presume there's some setting in Azure which is forcing these calls to use 
ipv6 rather than ipv4 - but has anyone else had to deal with this on their 
host

 * @param array $params the parameters to include in the POST body101    * 
@return OAuthToken the returned token102    */103   protected function 
MakeRequest($url, $params) {104     $ch = 
$this->curlUtils->CreateSession($url);105     $this->curlUtils->SetOpt($ch, 
CURLOPT_POSTFIELDS, $params);106     $response = 
$this->curlUtils->Exec($ch);107     $error = $this->curlUtils->Error($ch);108   
  $httpCode = $this->curlUtils->GetInfo($ch, CURLINFO_HTTP_CODE);109     
$this->curlUtils->Close($ch);110 111     if (!empty($error)) {112       throw 
new OAuth2Exception($error, $httpCode);113     }114     if ($httpCode != 200) 
{115       throw new OAuth2Exception($response, $httpCode);116     }117     
return json_decode($response, TRUE);118   }119 }

Thanks 
Dylan

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to