Thanks Evgeniy

I didn't have to use your suggestion because I  fixed by copying exact same 
files into a new folder, deleting the git and making a complete new website 
on azure. I am not sure how my problem was solved.
But if I have the problem again, I will try the solution which you have 
suggested.
Thank you very much
Dylan Gretsky



On Wednesday, September 18, 2013 12:59:51 PM UTC+1, Evgeniy Bogdanov wrote:
>
> Hi.
>
> I was helped with this error before.
> Solution for old library described here - 
> https://groups.google.com/d/msg/adwords-api/D1zTq4ZtnTs/PfatuLV_aOYJ
>
> Ideas is to force usage of IPv4 or edit URL to set IP address and Host 
> header.
>
>
>
> 2013/9/18 <dylan....@xmlretail.com <javascript:>>
>
>> 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 adwor...@googlegroups.com<javascript:>
>> To unsubscribe from this group, send email to
>> adwords-api...@googlegroups.com <javascript:>
>> 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...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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