Ticket #215 (new defect)

Opened 3 months ago

Last modified 3 months ago

Opening Article Link Displays Error

Reported by: trac_user Assigned to: fox
Priority: minor Milestone:
Component: backend Version: HEAD
Keywords: Cc:

Description

One of the RSS 0.91 feeds I have in TT-RSS produces a JavaScript? error when clicking the link to open the article's URL. Clicking it a second time correctly loads the URL.

The only thing different about the feed (that I can think of) is that it doesn't have <description> tags.

The JS error is: Exception: TypeError?, transport.responseXML is null Function: article_callback2() Location: viewfeed.js?1.2.25:387

Attachments

tt.php (11.3 kB) - added by trac_user on 08/18/08 12:26:34.
source
backend.txt (1.6 kB) - added by trac_user on 08/18/08 13:06:18.

Change History

08/17/08 23:05:55 changed by fox

Providing the feed URL would probably be a good idea.

08/18/08 12:26:34 changed by trac_user

  • attachment tt.php added.

source

08/18/08 12:26:46 changed by trac_user

I'd love to provide a link but it's a local and protected feed...that could also contain torrents...which would be illegal unless you owned it.

I have attached a file of Firefox > View Source and replaced the link URLs. If you don't want to work on it due to the reason of that feed, I understand.

08/18/08 12:32:48 changed by fox

No problem. I'll take a look when I have some time to kill.

It would be better if you wget'ed the feed and emailed the file to me unchanged. I won't tell the MPAA. :D

08/18/08 12:41:57 changed by trac_user

I've PMed you on the forum ;)

08/18/08 12:54:16 changed by fox

Eh, weird. Seems to work fine to me. Is it some specific entry that fails or does it happen when you click on any headline?

Anyway, the error means that backend fails to return correct XML for some reason. Maybe it's invalid XML, maybe something else.

Open debug window (shift-d), click on the headline. Note the first prompt like this:

[12:50:34] loading article: 429759/1114 -- 429759 is the article id.

Now, open this in a separate tab of your browser:

(path to tt-rss)/backend.php?op=view&id=429759

Which should return valid XML, structured like <reply><article ...>blah-blah</article></reply>

If that shows okay, maybe it's actually a network problem of some sort.

08/18/08 13:04:36 changed by trac_user

Seems to be any headline for that feed...or any other feed that doesn't have a description tag.

Actually, it might only do it for some feeds. Debug shows this:

# 18:34:56] EXCEPTION: Exception: TypeError?, transport.responseXML is null Function: article_callback2() Location: viewfeed.js?1.2.25:387 # [18:34:56] article_callback: returned no XML object # [18:34:56] article_callback2 105126

Try the article "YUAN-Xia-WEB-2008-wAx" in that feed I gave you...see if that works.

Backend for 105126 returns valid XML...attaching the XML now.

08/18/08 13:06:18 changed by trac_user

  • attachment backend.txt added.

08/18/08 13:07:17 changed by fox

The YUAN thing opened fine to me. Can you try it with a clean browser profile?

08/18/08 13:18:08 changed by trac_user

Hmm. Firefox Safe mode works fine. Sorry. Must be some stupid add-on causing the problem.

08/18/08 13:21:34 changed by fox

That wouldn't be the first time...