Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tRSSInput results in HTTP 403 error

I am trying to use the tRSSInput component to load details on articles into a database.  I setup the structure and it is working great on several different RSS feeds. 
But now I'm trying to pull the articles from http://states.aarp.org/category/new-york/feed/.  There is something about the RSS feed from this site that doesn't work.  These URLs work through a browser, but each time I run it, even if changing the state to any other US state, I get this error:
org.dom4j.DocumentException: Server returned HTTP response code: 403 for URL: http://states.aarp.org/category/new-york/feed/ Nested exception: Server returned HTTP response code: 403 for URL: http://states.aarp.org/category/new-york/feed/Exception in component tRSSInput_1
java.lang.NullPointerException

I have tried to read into RSS feeds to see if I can pinpoint the problem.  There have been some suggestions that something on their side is seeing that the request did not come from a browser and is denying a response.  We have tried several different RSS readers on this URL and they all work.
Any thoughts, suggestions, or a point in the right direction?
Labels (3)
1 Reply
Anonymous
Not applicable
Author

Hi
HTTP response code: 403  indicates that the server is not allowed to connect from a Java API program. As suggested in this page, it required to add the property user agent when creating the connection. 

Best regards
Shong