[faultstring] => Could not connect to host

747 views
Skip to first unread message

gonmede

unread,
May 3, 2010, 11:32:22 AM5/3/10
to AdWords API Forum
Dear all,
I have a script running on my server enveryday (a cronjob). This
script updates the information from adwords to my server and my
clientes have access to some statistics.

Until April 30th the script worked fine, but since May 1st I haven't
been able to execute the script. I usually takes about 6 or 7 minutes
to complete the execution, but now I keep getting this error:

SoapFault Object
(
[message:protected] => Could not connect to host
[string:private] =>
[code:protected] => 0
[file:protected] => (path to apility v200')/src/Google/Api/Ads/
Common/Lib/AdsSoapClient.php
[line:protected] => 159
[trace:private] => Array (.....)
[faultstring] => Could not connect to host
[faultcode] => HTTP
)

I've tried to manually execute the script (not by the cron-job)
several times and always got the same error, it sometimes runs OK for
2 minutes, and sometimes runs for 20-30 seconds. But in the end, it
crashes. It works fine for some time (which is not always the same)
and then crashes.

I haven't changed anything on the script, and was working fine until
friday, do you have any idea what can be going on? Has anything
changed?

Thanks in advance, best regards,
Gonzalo Medeiros.

--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Joshua J. Kugler

unread,
May 3, 2010, 1:53:57 PM5/3/10
to adwor...@googlegroups.com, gon...@gmail.com
On Monday 03 May 2010, gonmede elucidated thus:
> Dear all,
> I have a script running on my server enveryday (a cronjob). This
> script updates the information from adwords to my server and my
> clientes have access to some statistics.
>
> Until April 30th the script worked fine, but since May 1st I haven't
> been able to execute the script. I usually takes about 6 or 7 minutes
> to complete the execution, but now I keep getting this error:
>
> SoapFault Object
> (
> [message:protected] => Could not connect to host
> [string:private] =>
> [code:protected] => 0
> [file:protected] => (path to apility v200')/src/Google/Api/Ads/
> Common/Lib/AdsSoapClient.php
> [line:protected] => 159
> [trace:private] => Array (.....)
> [faultstring] => Could not connect to host
> [faultcode] => HTTP
> )

Did anything change in your local network settings? Did you network
admins change any of the firewall settings? Any new outoing
restrictions? If it connects sometimes, and not others, it sounds like
a local network problem. Of course, if other people start complaining
about the same thing, then I suppose I'm way off base. :)

j

--
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0x73B13B6A

gonmede

unread,
May 3, 2010, 2:07:48 PM5/3/10
to AdWords API Forum
Thanks Joshua for your help. I think you are headed on the right
direction.

The application is hosted on a dedicated server, and that's why I
supposed anything had changed, but a couple of minutes ago I found out
that if I run the script from my local computer (connecting to my
servers mysql server in order to have the information updated on
production) everything works fine, so I think the problem has to be on
my server (or its network).

I'll contact the administrators and post if I find the solution to
this problem in case it is useful for someone in the future.

GM
> Part-Time System Admin/Programmerhttp://www.eeinternet.com
> PGP Key:http://pgp.mit.edu/ ID 0x73B13B6A
>
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:http://adwordsapi.blogspot.comhttp://groups.google.com/group/adwords-api

Enzo Ezequiel Balmaceda

unread,
Sep 23, 2024, 4:47:09 AM9/23/24
to Google Ads API and AdWords API Forum
Debes agregarle el   'stream_context' al SoaP, algo asi, es un ejemplo con otro codigo:


$opts = array( 'ssl' => array('verify_peer' => false, 'verify_peer_name' => false) );

if (!isset($this->soap_client)) 
{ $this->soap_client = new SoapClient($this->WSDL, array( 'soap_version' => $this->soap_version, 'location' => $this->URL, 'trace' => 1, 'exceptions' => 0, 'stream_context' => stream_context_create($opts) ));

Google Ads API Forum Advisor

unread,
Sep 23, 2024, 9:56:34 AM9/23/24
to ebalm...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

It seems you're encountering the error "Could not connect to the host" when making SOAP API calls. This issue can arise due to several reasons, such as:
  • Web server processes crashing or failing.
  • Changes in network configuration.
Could you confirm if you're using Google Ads API endpoints and experiencing this error? Additionally, please provide more details about the issue so that we can assist you better. If you're using the Google Ads API, could you clarify why you're opting for SOAP calls instead of REST API calls? Also, please share the script you're executing that results in this error.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGV7Z:ref" (ADR-00269140)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages