When opml import fails, display and log debugging information
mblakele opened this issue · comments
Michael Blakeley commented
When an opml import fails, the server process logs it without any extra information:
127.0.0.1 - - [17/May/2013 19:30:12] "POST /api/import/opml HTTP/1.1" 500 -
Unfortunately this is not helpful for debugging. The HTTP response doesn't include anything useful either: just a generic 500 Server Error
message.
Michael Blakeley commented
This seems to be the problem feed. I suspect character escaping is at the root of it.
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>leselys cannot import this opml</title>
</head>
<body>
<outline
text="some text"
title="this feed has a title"
type="rss"
xmlUrl="https://news.google.com/news/feeds?hl=en&gl=us&as_qdr=a&authuser=0&q=fubar+%22biz+buzz%22%7C%22foo+bar%22&output=rss" htmlUrl="http://news.google.com/news?gl=us&pz=1&ned=us&hl=en&q=fubar+%22biz+buzz%22%7C%22foo+bar%22"/>
</body>
</opml>
Geoffrey commented
Hi,
Thanks for your feedback!
You'll have more informations if you run leselys with --debug
option.
But, I've done some work on OPML file import, if you have some time to test master
branch.