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> </b>
<td> </td></tr>
<tr><td bgcolor=#3366cc><font face=arial,sans-serif
color=#ffffff><b>Error</b></td></tr>
<tr><td> </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>
]
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
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
i managed to make one successful call to the APIs today but after that
everything else has failed
jeff
i'm still suffering with the exact same problems
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.
Hope thats the end of it.
Mark
Makes me wonder if some changes are in the works.
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.
Has anyone else noticed any behaviour to support this theory?
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