Hi,

I have a function to read and display an RSS feed which is working as
expected in my local Apache. However I'm getting a HTTP 502 error when
I access the same on Webfaction. Below is a snippet from my code and
the error is originating from the last step involving parsing.

Like i mentioned the below code works locally with the same feed and
this also works on the python shell on Webfaction. However is is
failing while accessing through my browser. Any help will be
appreciated. Thanks

    feed_url = 'http://blog.ionlab.in/feed/'
    file_request = urllib2.Request(feed_url)
    file_opener = urllib2.build_opener()
    file_feed = file_opener.open(file_request).read()
    file_xml = minidom.parseString(file_feed)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to