Feed not parsable due to strange first line

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
jmozmoz
Bear Rating Trainee
Bear Rating Trainee
Posts: 26
Joined: 14 Apr 2013, 18:07

Feed not parsable due to strange first line

Postby jmozmoz » 11 Nov 2016, 01:28

Hello,

I would like to ask why this feed cannot be parsed by tt-rss:
https://ocw.mit.edu/rss/new/mit-newcourses.xml

If I check it with https://fakecake.org/myfeedsucks/ I get the following first lines:

Code: Select all

00006000
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet title="XSL_formatting" type="text/xsl" href="../../styles/rss.xsl"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns="http://purl.org/rss/1.0/"
         xmlns:dc="http://purl.org/dc/elements/1.1/"
         xmlns:enc="http://purl.oclc.org/net/rss_2.0/enc#"
         xmlns:media="http://search.yahoo.com/mrss/">   

    <channel rdf:about="https://ocw.mit.edu/courses/">
...


So there is this strange first line (00006000). I do not see it if I download the feed with curl or wget (or Firefox).

I have already contacted the administrators of the site and they seem really helpful, so if somebody could hint what the problem is, they will certainly try to fix it.

Thank you for your help.
Joachim

jmozmoz
Bear Rating Trainee
Bear Rating Trainee
Posts: 26
Joined: 14 Apr 2013, 18:07

Re: Feed not parsable due to strange first line

Postby jmozmoz » 11 Nov 2016, 02:07

Update: If I use curl --raw I also see this strange 00006000 in the first line (and 00000000 in the last)

jmozmoz
Bear Rating Trainee
Bear Rating Trainee
Posts: 26
Joined: 14 Apr 2013, 18:07

Re: Feed not parsable due to strange first line

Postby jmozmoz » 11 Nov 2016, 02:12

Ok. So I found these to pages which describe the same problem:
https://github.com/guzzle/guzzle/issues/1475
https://github.com/guzzle/guzzle/issues/1385

Now I do still not understand if this is a server or a client problem.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Feed not parsable due to strange first line

Postby fox » 11 Nov 2016, 08:15

>Now I do still not understand if this is a server or a client problem.

i think it's pretty obvious tbh

jmozmoz
Bear Rating Trainee
Bear Rating Trainee
Posts: 26
Joined: 14 Apr 2013, 18:07

Re: Feed not parsable due to strange first line

Postby jmozmoz » 24 Jan 2017, 23:40

My "fix" is to download these pages by curl (without raw) by a cron job and serve them to the tt-rss download client. Have I missed a more obvious way to fix this?


Return to “Support”

Who is online

Users browsing this forum: No registered users and 9 guests