Skip to main content

Problems with RSS reader

6 replies [Last post]
jvence
Offline
Joined: 2006-06-21

I noticed a couple of things with the RSS reader.

I am trying to fetch and display the following feed:
http://news.google.com/news?hl=en&lr=&tab=wn&ie=UTF-8&scoring=d&output=r...

This is my call:

where se.searchEngineURL return the URL above as a string.

The RSS is never displayed:

Two things are happening:
1. The javascript generated is as follows:
jmaki.addWidget({widgetDir:'http://localhost:8080/r/resources/rss',service:'http://localhost:8080/r/http://news.google.com/news?hl=en&lr=&tab=wn&ie=UTF-8&scoring=d&output=rss&q=java+or+london',baseDir:'http://localhost:8080/r/resources/rss',script:'http://localhost:8080/r/resources/rss/component.js',uuid:'rss0',name:'rss'});

it somehow prepends the server URL to the service URL

2. And secondly, the rssprovider seems to fail when called as follows:

http://localhost:8080/r/rssprovider?format=json&itemIndex=4&url=http%3A%...

Is this a bug?

Jean

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jvence
Offline
Joined: 2006-06-21

When will this be available for us to play around with? You mentioned something about perhaps this being part of .51. Is that coming out anytime soon?
Thanks

gmurray71
Offline
Joined: 2003-07-31

I've filed an issue on it at:

https://ajax.dev.java.net/issues/show_bug.cgi?id=13

I'll fix the widget in the CVS now and you'll be able t o see it in jMaki version .5.1.

gmurray71
Offline
Joined: 2003-07-31

So I've fixed the underlying problem with jMaki but now the problem seems to be google doesn't allow stand alone clients to access it's services. I tried using curl to access the URL and got the following:

Forbidden


Your client does not have permission to get URL /news?hl=en&lr=&tab=wn&ie=UTF-8&scoring=d&output=rss&q=java+or+london from this server.

Any ideas on what google is looking for? Maybe a user-agent setting?

gmurray71
Offline
Joined: 2003-07-31

It was a user agent issue. The jMaki XmlHttpClient now sets the user agent to mimic IE 6 and it works fine.

Note I've changed the API as a service really refers to something on the local domain. You can user the service to over-ride the XMLHttpProxy which is set by default to "rssprovier" (you don't need to do anything if your using the jMaki app as a template).

jvence
Offline
Joined: 2006-06-21

That's great. Thanks for addressing this issue so rapidly.

gmurray71
Offline
Joined: 2003-07-31

This is a bug. Could you report this so we can track it?

https://ajax.dev.java.net/issues/enter_bug.cgi

Thank you and we will try to get it fixed in version .5.1 which I hope to push out this week.