google-code-export / feedparser

Automatically exported from code.google.com/p/feedparser
Other
1 stars 0 forks source link

Invalid URL #365

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use a feed url of http://wnolfm.com

Here's what I get. feedpath is equal to http://wnolfm.com in this case.
Traceback (most recent call last):
  File "./642.py", line 108, in <module>
    main()
  File "./642.py", line 70, in main
    d = feedparser.parse(feedpath)
  File "/usr/local/lib/python2.7/dist-packages/feedparser-5.1.2-py2.7.egg/feedparser.py", line 4005, in parse
    saxparser.parse(source)
  File "/usr/lib/python2.7/dist-packages/drv_libxml2.py", line 176, in parse
    SAXException("Read failed (no details available)"))
  File "/usr/local/lib/python2.7/dist-packages/feedparser-5.1.2-py2.7.egg/feedparser.py", line 1873, in fatalError
    raise exc
xml.sax._exceptions.SAXException: Read failed (no details available)

What version of the product are you using? On what operating system?
Python 2.7.3
Feed parser 5.1.2
Ubuntu 12.04

Original issue reported on code.google.com by no...@wnolfm.com on 4 Jul 2012 at 12:53

GoogleCodeExporter commented 9 years ago
http://wnolfm.com isn't a feed url. http://wnolfm.com is the link the the 
website.

If you would like to parse the feed than try 
http://wnolfm.com/?format=feed&type=atom. This seems to be the feed of this 
website

Original comment by schla...@gmail.com on 7 Sep 2012 at 9:15

GoogleCodeExporter commented 9 years ago
You can reproduce this if you
1) go to http://validator.w3.org/appc/#validate_by_uri
2) insert http://wnolfm.com into the address field
3) The url changes to http://wnolfm.com/?format=feed&type=rss because this is 
the feed address of this website

Original comment by schla...@gmail.com on 7 Sep 2012 at 9:20

GoogleCodeExporter commented 9 years ago
I think the crash is libxml2-related and was fixed a while back in git master. 
Could you try grabbing the latest code and try again? The direct download link 
is:

http://feedparser.googlecode.com/git/feedparser/feedparser.py

Thanks!

Original comment by kurtmckee on 19 Nov 2012 at 4:37

GoogleCodeExporter commented 9 years ago
Hi guys. I have the same problem with a few feeds, and I can confirm that the 
git version fixes the problem. can you please ship a bugfix release? :)

Thanks

Original comment by raf...@rafaelmartins.eng.br on 23 Nov 2012 at 1:50

GoogleCodeExporter commented 9 years ago
Nolan, I'm going to close this bug with the release of feedparser 5.1.3. Please 
leave another comment here if you still experience this problem after 
upgrading. Thanks!

Original comment by kurtmckee on 29 Dec 2012 at 6:00

GoogleCodeExporter commented 9 years ago
Also, this might be a duplicate of issue 352.

Original comment by kurtmckee on 29 Dec 2012 at 6:05