Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SOAPException

30 views
Skip to first unread message

Robbie

unread,
Mar 10, 2006, 1:35:07 PM3/10/06
to
Below is the full error i am receiving. I have recieved this error at
random intervals throughout my use of the Google API. Today it stopped
being at random intervals, and instead every time a search was
conducted.

Previously i have been able to work around the error by simply
restarting my web server (Apache Tomcat) but this is no longer possible
as the application is returning no results.

What baffels me further is that i have no changed any code for weeks
and the app has been running fine, and then today out of no where this
happens.

Any help would be severely appreciated as i am quickly running out of
ideas and time.

Thank you,

Robbie

---------------------------------------------------------------------------------------------------------------------

The call to the Google Web APIs
failed:com.google.soap.search.GoogleSearchFault: [SOAPException:
faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type
"text/html", must be: "text/xml". Response was:


<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>502 Server Error</title>
<style><!--
body {font-family: arial,sans-serif}
div.nav {margin-top: 1ex}
div.nav A {font-size: 10pt; font-family: arial,sans-serif}
span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight:
bold}
div.nav A,span.big {font-size: 12pt; color: #0000cc}
div.nav A {font-size: 10pt; color: black}
A.l:link {color: #6f6f6f}
A.u:link {color: green}
//--></style>

</head>
<body text=#000000 bgcolor=#ffffff>
<table border=0 cellpadding=2 cellspacing=0 width=100%><tr><td
rowspan=3 width=1% nowrap>
<b><font face=times color=#0039b6 size=10>G</font><font face=times
color=#c41200 size=10>o</font><font face=times color=#f3c518
size=10>o</font><font face=times color=#0039b6 size=10>g</font><font
face=times color=#30a72f size=10>l</font><font face=times color=#c41200
size=10>e</font>&nbsp;&nbsp;</b>
<td>&nbsp;</td></tr>
<tr><td bgcolor=#3366cc><font face=arial,sans-serif
color=#ffffff><b>Error</b></td></tr>
<tr><td>&nbsp;</td></tr></table>
<blockquote>
<H1>Server Error</H1>
The server encountered a temporary error and could not complete your
request.<p>Please try again in 30 seconds.

<p>
</blockquote>
<table width=100% cellpadding=0 cellspacing=0><tr><td
bgcolor=#3366cc><img alt="" width=1 height=4></td></tr></table>
</body></html>
]

Mark

unread,
Mar 10, 2006, 1:53:32 PM3/10/06
to
Hey, I'm in the same boat.

In my case, I'm running a loop 10 times that grabs 10 google web search
results each time. Occsionally, the loop will fail on the last 1, 2, or
3 times. But this seems to happen intermittently. Today, all of the
sudden, it won't loop a single time without giving me that error. I'm
using ASP.NET and it looks like this:

System.Net.WebException: The request failed with HTTP status 502: Bad
Gateway. at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall) at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters) at
WebReference.GoogleSearchService.doGoogleSearch(String key, String q,
Int32 start, Int32 maxResults, Boolean filter, String restrict, Boolean
safeSearch, String lr, String ie, String oe) in C:\IR\Web
References\WebReference\Reference.vb:line 79 at
_Default2.StoreResults(String SearchTerm) in C:\IR\Default.aspx.vb:line
155

If anyone has some ideas, i would also appreciate the help.

thanks in advance,

Mark

ahixo...@gmail.com

unread,
Mar 10, 2006, 1:58:09 PM3/10/06
to
Well, even thought I'm affected too, I'm glad it isn't just me. I was
beginning to think something was wrong with my code. I'm using the
ColdFusion tag CFX_GOOGLE. I wonder if Google has changed something in
their web service code?

Mark

unread,
Mar 10, 2006, 2:23:15 PM3/10/06
to
I just got this from an auto-reply from google API email support:

IF YOU SAW A SERVER ERROR:

Occasionally, the Google Web APIs servers are taken down temporarily
for maintenance purposes. If you see a server error, please wait a few
hours and try your query or your license key request again.

I'm not sure if that has something to do with it.

Mark

Robbie

unread,
Mar 10, 2006, 2:41:28 PM3/10/06
to
well i've waited a few hours and still nothing...

i managed to make one successful call to the APIs today but after that
everything else has failed

friggle...@gmail.com

unread,
Mar 10, 2006, 2:53:37 PM3/10/06
to
i'm fairly new to using the api but wondered if this is the longest
it's ever been down or does this happen regularly? it's been down for
the past several hours for me. just wondered if the api is something
that can be relied on or not?

jeff

http://www.FriggleFraggle.net

Robbie

unread,
Mar 11, 2006, 9:48:35 AM3/11/06
to
anyone got any further today?

i'm still suffering with the exact same problems

Robbie

unread,
Mar 11, 2006, 1:03:28 PM3/11/06
to
catch (GoogleSearchFault f) {
System.err.println("The call to the Google Web APIs failed:"
+ f.toString());
//System.exit(1);
}

I commented out the System.exit line of code and my application appears
to be working again...

Not sure if that's even what has fixed it... But i'm not putting it
back in and risking anything.

Mark

unread,
Mar 12, 2006, 6:16:48 PM3/12/06
to
Sorry, I've been away for a couple of days. My page seems to be working
again. I guess their servers are back up and running.

Hope thats the end of it.

Mark

cda...@gmail.com

unread,
Mar 13, 2006, 12:25:33 PM3/13/06
to
There have been serious performance issues with the API for the last
month or so now. The API team is aware of it, but the situation hasn't
been resolved yet. I've been making heavy usage of the API for a
couple of years now, and this is by far the worst performance issues
I've seen yet. Normally, the API servers are quite stable.

Makes me wonder if some changes are in the works.

paul....@gmail.com

unread,
Mar 14, 2006, 7:18:13 AM3/14/06
to
Are people still getting this kind of problem?

I have a script that loops through about 50 queries and returns the
number of hits; and it just crashes with a SOAP error randomly,
sometimes on the first query, sometimes the 20th.

kyle...@gmail.com

unread,
Mar 15, 2006, 3:57:12 PM3/15/06
to
I'm still having the same problem. Nothing but failures. I'm grasping
at straws here, as this really puts a kink in my project.

csza...@yahoo.com

unread,
Mar 15, 2006, 4:00:06 PM3/15/06
to
Hi.
I'm also having the same problems. What I did as a short-term
workaround was to catch the Google error and retry the search. If,
after 5 attempts, it continues to fail I give up. So far, I've noticed
that it fails between 2-3 times before I get through, it's never failed
5 times in a row. Hopefully this problem is temporary.
Cheers,
Carlos

Robbie

unread,
Mar 16, 2006, 9:03:36 AM3/16/06
to
The problem seems to have arisen again, i wonder if it's due to server
load and the time of day, eg the servers are going to be far busier
when the Europeans and the Americans are all pounding the servers at
the same time.

Has anyone else noticed any behaviour to support this theory?

Mark

unread,
Mar 17, 2006, 3:51:55 PM3/17/06
to
Carlos,

Thanks for the good idea. I'm doing the same thing now and it seems to
work fine although the search takes a little longer - as expected.

It usually one fails 1-3 times for me as well except for a small
handful of times (recently) where it doesn't work at all.

Mark

0 new messages