guptahanu / google-ajax-apis

Automatically exported from code.google.com/p/google-ajax-apis
0 stars 1 forks source link

AJAX Feed Search API Returns Error 404 Frequently #531

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
> What steps will reproduce the problem?
1. Invoke URL (using curl or simply in a browser):

http://ajax.googleapis.com/ajax/services/feed/find?v=1.0&q=Official%20Google%20B
logs

2. Refresh or change the Search query if problem is not reproduced immediately:

http://ajax.googleapis.com/ajax/services/feed/find?v=1.0&q=CNN

3. Keep changing query or refreshing the same one until you get an error 
response

> What is the expected output? 

{"responseData": 
{"query":"CNN","entries":[{"url":"http://rss.cnn.com/rss/cnn_topstories.rss","ti
tle":"\u003cb\u003eCNN\u003c/b\u003e.com - Breaking News, U.S., World, Weather, 
Entertainment 
\u003cb\u003e...\u003c/b\u003e","contentSnippet":"\u003cb\u003eCNN\u003c/b\u003e
.com delivers the latest breaking news and information on the latest top 
\u003cbr\u003e  stories, weather, business, entertainment, politics, and 
more.","link":"http://www.cnn.com/"},{"url":"http://rss.cnn.com/rss/edition.rss"
,"title":"\u003cb\u003eCNN\u003c/b\u003e.com International - Breaking, World, 
Business, Sports 
\u003cb\u003e...\u003c/b\u003e","contentSnippet":"\u003cb\u003eCNN\u003c/b\u003e
.com International delivers breaking news from across the globe and 
\u003cbr\u003e  information on the latest top stories, business, sports and 
entertainment \u003cbr\u003e  
headlines.","link":"http://edition.cnn.com/"},{"url":"http://rss.cnn.com/rss/mon
ey_topstories.rss","title":"\u003cb\u003eCNN\u003c/b\u003e/Money","contentSnippe
t":"\u003cb\u003eCNN\u003c/b\u003e, FORTUNE, MONEY, BUSINESS 2.0 and Fortune 
Small Business magazines offer \u003cbr\u003e  business news and financial 
market coverage updated throughout the day, 
\u003cb\u003e...\u003c/b\u003e","link":"http://money.cnn.com/"},{"url":"http://r
ss.cnn.com/rss/cnn_freevideo.rss","title":"Video - Breaking News Videos from 
\u003cb\u003eCNN\u003c/b\u003e.com","contentSnippet":"Watch the latest breaking 
news, politics, entertainment and offbeat videos \u003cbr\u003e  everyone is 
talking about at \u003cb\u003eCNN\u003c/b\u003e.com. Get informed 
now!","link":"http://www.cnn.com/video/"},{"url":"http://rss.cnn.com/rss/cnn_wor
ld.rss","title":"World News - International Headlines, Stories and Video from 
\u003cb\u003eCNN\u003c/b\u003e.com","contentSnippet":"\u003cb\u003eCNN\u003c/b\u
003e brings you headlines, video and news stories from Europe, Asia, Africa, 
the \u003cbr\u003e  Middle East, and the 
Americas.","link":"http://www.cnn.com/WORLD/"},{"url":"http://politicalticker.bl
ogs.cnn.com/feed/","title":"\u003cb\u003eCNN\u003c/b\u003e Political Ticker - 
\u003cb\u003eCNN\u003c/b\u003e.com 
Blogs","contentSnippet":"(\u003cb\u003eCNN\u003c/b\u003e) – Sen. Lisa 
Murkowski, the Alaska Republican who lost her primary \u003cbr\u003e  challenge 
and is now running as a write-in candidate, is up with a new ad \u003cbr\u003e  
featuring 
\u003cb\u003e...\u003c/b\u003e","link":"http://politicalticker.blogs.cnn.com/"},
{"url":"http://rss.cnn.com/rss/cnn_health.rss","title":"\u003cb\u003eCNN\u003c/b
\u003e - Health","contentSnippet":"Discover the latest news and video about 
health at \u003cb\u003eCNN\u003c/b\u003e. \u003cb\u003eCNN\u003c/b\u003e covers 
diet, fitness\u003cbr\u003e  , parenting, conditions and more, including expert 
insights from Dr. Sanjay 
\u003cb\u003e...\u003c/b\u003e","link":"http://www.cnn.com/HEALTH/"},{"url":"htt
p://rss.cnn.com/rss/cnn_allpolitics.rss","title":"Political News, Analysis and 
Opinion from \u003cb\u003eCNN\u003c/b\u003e.com","contentSnippet":"Politics at 
\u003cb\u003eCNN\u003c/b\u003e has news, opinion and analysis of American and 
global politics. \u003cbr\u003e  Find news and video about the elections, Iraq, 
North Korea, the White House, 
\u003cb\u003e...\u003c/b\u003e","link":"http://www.cnn.com/POLITICS/"},{"url":"h
ttp://rss.cnn.com/rss/cnn_us.rss","title":"U.S. News - Headlines, Stories and 
Video from 
\u003cb\u003eCNN\u003c/b\u003e.com","contentSnippet":"\u003cb\u003eCNN\u003c/b\u
003e brings you headlines, video and news stories from around the 
US.","link":"http://www.cnn.com/US/"},{"url":"http://twitter.com/statuses/user_t
imeline/759251.rss","title":"\u003cb\u003eCNN\u003c/b\u003e 
(\u003cb\u003eCNN\u003c/b\u003e) on Twitter","contentSnippet":"Breaking News, 
US, World, Weather, Entertainment \u0026amp; Video 
News.","link":"http://twitter.com/cnn"}]}, "responseDetails": null, 
"responseStatus": 200}

> What do you see instead?

{"responseData": null, "responseDetails": "invalid result data", 
"responseStatus": 404}

> What version of the product are you using? 

v=1.0

> On what operating system?

Affects all of them -- problem is on the Google's server side.

> Please provide any additional information below.

This problem has been recently introduced. This API has worked for years 
without this problem.

Original issue reported on code.google.com by feedr....@gmail.com on 15 Oct 2010 at 4:47

GoogleCodeExporter commented 8 years ago
Same thing for me.. needs a couple of refreshes on the same query before I can 
get the actual response...

caching problem?

Original comment by team.ust...@gmail.com on 18 Oct 2010 at 7:16

GoogleCodeExporter commented 8 years ago
See Jeremy Geerdes' reply in this thread in the AJAX APIs forum:

http://groups.google.com/group/google-ajax-search-api/browse_thread/thread/6a9a3
b22e22666ff

Original comment by omr99...@yahoo.com on 19 Oct 2010 at 9:30

GoogleCodeExporter commented 8 years ago
Just to reiterate what I said on the link omr posted, according to 
conversations with the dev team, this behavior is a design feature of the Feeds 
API. Essentially, if the feed is slow or fails to load, or the crawler takes 
too long to parse and cache it, the Feeds API will essentially time out and 
return the response indicated above. This way, the client doesn't keep sitting 
there waiting for a request that may or may not ever finish loading.

The good news is that, once the feed is cached, you shouldn't receive the 404 
response very often at all.

Original comment by jrgeer...@gmail.com on 19 Oct 2010 at 5:13

GoogleCodeExporter commented 8 years ago
Sorry for the delay, but I think we've gotten this fixed.  Please report back 
here if you're still seeing the problem.

Original comment by adam.fel...@gtempaccount.com on 20 Nov 2010 at 12:01

GoogleCodeExporter commented 8 years ago
I think this bug is still there. I followed exactly the same instruction in the 
Feeds API page and randomly get the 404 response. Please open this again.

Original comment by pnho...@gmail.com on 15 Feb 2011 at 5:44

GoogleCodeExporter commented 8 years ago
I have the same problem with Google Books API. 404 response returned randomly, 
same query may work few seconds later.

URL example:

https://ajax.googleapis.com/ajax/services/search/books?v=1.0&q=ajax&key=MY_KEY&u
serip=MY_API

Please let me know if I should open new issue for Google Books API. Thanks.

Original comment by m...@janmach.cz on 8 Mar 2011 at 1:59

GoogleCodeExporter commented 8 years ago
I am getting the same in patents all of the sudden

http://ajax.googleapis.com/ajax/services/search/patent?v=1.0&q=dogs

Original comment by StevePod...@gmail.com on 9 Mar 2011 at 10:35

GoogleCodeExporter commented 8 years ago
books, patents, and images are all failing the same way.
It does not seem to be a cache issue, since my search

http://ajax.googleapis.com/ajax/services/search/books?v=1.0&q=cats

succeeded once, two days ago, then failed the next hour.
It would be surprising if it were a timeout issue, since it fails in less than 
a second.

Original comment by StevePod...@gmail.com on 11 Mar 2011 at 8:51

GoogleCodeExporter commented 8 years ago
Hello, thanks for pointing out the issues around the Books and Patent Search 
APIs.  As noted, this is unrelated to the former Feed API issue, and wasn't 
timeout related.  Sorry for the delay in fixing it, but it should be good now.  
Please let us know if you continue to have issues (be sure to include the query 
that results in the problem).

Thanks!
Adam

Original comment by afeld...@google.com on 12 Mar 2011 at 9:54