librelist archives

« back to archive

RSS feed not working

RSS feed not working

From:
James Abbott
Date:
2012-05-28 @ 09:46
Hi,-

A dude on Twitter commented that my site's RSS feed doesn't work. True
enough:

http://jamesabbottdd.com/articles.xml

I've been looking for "junk" in my .haml files but so far haven't detected
any. Any tips on how to spot it? Crushed beer cans, cigarette butts, old
cassette players?

/ James

Re: [nesta] RSS feed not working

From:
Tommy Palmer
Date:
2012-05-28 @ 09:47
James, 

It looks like it's rendering the layout file too, perhaps posting a gist 
of the code would help us to figure it out. 

-- 
Tommy Palmer
@tommypalm
http://tommyp.org


On Monday, 28 May 2012 at 10:46, James Abbott wrote:

> Hi,-
> 
> A dude on Twitter commented that my site's RSS feed doesn't work. True enough:
> 
> http://jamesabbottdd.com/articles.xml
> 
> I've been looking for "junk" in my .haml files but so far haven't 
detected any. Any tips on how to spot it? Crushed beer cans, cigarette 
butts, old cassette players?
> 
> / James

Re: [nesta] RSS feed not working

From:
James Abbott
Date:
2012-05-28 @ 09:51
Tommy: sure, here's layout.haml where the offending line appears:

https://gist.github.com/2818229

/ James

On Mon, May 28, 2012 at 11:47 AM, Tommy Palmer <hi@tommyp.org> wrote:

> James,
>
> It looks like it's rendering the layout file too, perhaps posting a gist
> of the code would help us to figure it out.
>
> --
> Tommy Palmer
> @tommypalm
> http://tommyp.org
>
> On Monday, 28 May 2012 at 10:46, James Abbott wrote:
>
> Hi,-
>
> A dude on Twitter commented that my site's RSS feed doesn't work. True
> enough:
>
> http://jamesabbottdd.com/articles.xml
>
> I've been looking for "junk" in my .haml files but so far haven't detected
> any. Any tips on how to spot it? Crushed beer cans, cigarette butts, old
> cassette players?
>
> / James
>
>
>

Re: [nesta] RSS feed not working

From:
Tommy Palmer
Date:
2012-05-28 @ 10:07
James, 

You misunderstand. Your xml file should not be using the layout, as the 
browser is then seeing that as HTML. My app.rb in my theme folder contains
this:

https://gist.github.com/2818247

Then the rss2.haml file in my views looks like this:

https://gist.github.com/2818282

There might be some errors with this code (I done it ages ago when I was 
learning and haven't looked at it until now), but it's processed by FF, 
Chrome and Safari correctly.

Hope that helps.

Tommy 

-- 
Tommy Palmer
@tommypalm
http://tommyp.org


On Monday, 28 May 2012 at 10:51, James Abbott wrote:

> Tommy: sure, here's layout.haml where the offending line appears:
> 
> https://gist.github.com/2818229
> 
> / James
> 
> On Mon, May 28, 2012 at 11:47 AM, Tommy Palmer <hi@tommyp.org 
(mailto:hi@tommyp.org)> wrote:
> > James, 
> > 
> > It looks like it's rendering the layout file too, perhaps posting a 
gist of the code would help us to figure it out. 
> > 
> > -- 
> > Tommy Palmer
> > @tommypalm
> > http://tommyp.org
> > 
> > 
> > On Monday, 28 May 2012 at 10:46, James Abbott wrote:
> > 
> > > Hi,-
> > > 
> > > A dude on Twitter commented that my site's RSS feed doesn't work. 
True enough:
> > > 
> > > http://jamesabbottdd.com/articles.xml
> > > 
> > > I've been looking for "junk" in my .haml files but so far haven't 
detected any. Any tips on how to spot it? Crushed beer cans, cigarette 
butts, old cassette players?
> > > 
> > > / James
> > 
> 

Re: [nesta] RSS feed not working

From:
James Abbott
Date:
2012-05-28 @ 10:24
Ah, I see what you mean. What version of Nesta are you running? Mine is
0.9.13 and I have no rss2.haml file. I've got an atom.haml and here's how
it looks:

https://gist.github.com/2818362

I've also got no app.rb other than Nesta's default in the gem installation.

Thanks,
James

On Mon, May 28, 2012 at 12:07 PM, Tommy Palmer <hi@tommyp.org> wrote:

> James,
>
> You misunderstand. Your xml file should not be using the layout, as the
> browser is then seeing that as HTML. My app.rb in my theme folder contains
> this:
>
> https://gist.github.com/2818247
>
> Then the rss2.haml file in my views looks like this:
>
> https://gist.github.com/2818282
>
> There might be some errors with this code (I done it ages ago when I was
> learning and haven't looked at it until now), but it's processed by FF,
> Chrome and Safari correctly.
>
> Hope that helps.
>
> Tommy
>
> --
> Tommy Palmer
> @tommypalm
> http://tommyp.org
>
> On Monday, 28 May 2012 at 10:51, James Abbott wrote:
>
> Tommy: sure, here's layout.haml where the offending line appears:
>
> https://gist.github.com/2818229
>
> / James
>
> On Mon, May 28, 2012 at 11:47 AM, Tommy Palmer <hi@tommyp.org> wrote:
>
> James,
>
> It looks like it's rendering the layout file too, perhaps posting a gist
> of the code would help us to figure it out.
>
> --
> Tommy Palmer
> @tommypalm
> http://tommyp.org
>
>  On Monday, 28 May 2012 at 10:46, James Abbott wrote:
>
> Hi,-
>
> A dude on Twitter commented that my site's RSS feed doesn't work. True
> enough:
>
> http://jamesabbottdd.com/articles.xml
>
> I've been looking for "junk" in my .haml files but so far haven't detected
> any. Any tips on how to spot it? Crushed beer cans, cigarette butts, old
> cassette players?
>
> / James
>
>
>
>
>

Re: [nesta] RSS feed not working

From:
Graham Ashton
Date:
2012-05-28 @ 11:04
On 28 May 2012, at 11:24, James Abbott wrote:

> I've also got no app.rb other than Nesta's default in the gem installation.

That's a surprising thing to hear, as it means my hypothesis about what's 
going on is wrong.

Nesta is serving a 404 page in place of your feed. I would expect that to 
mean that Nesta is serving /articles.xml from the default Sinatra route 
handler. It should only try the default page handler after it's tried the 
one for the atom feed, so a 404 for the atom feed shouldn't happen unless 
you've added a new default route handler at higher priority than the feed 
handler.

Can you give me access to the source for the site in question? If your 
server logs don't hint at what's going on, I can't think of a quicker way 
of working it out.

Re: [nesta] RSS feed not working

From:
James Abbott
Date:
2012-05-28 @ 11:38
@Graham:


> Can you give me access to the source for the site in question? If your
> server logs don't hint at what's going on, I can't think of a quicker way
> of working it out.
>

Sure, how would you like to go about it?

Cheers,
James


On Mon, May 28, 2012 at 1:04 PM, Graham Ashton <graham@effectif.com> wrote:

> On 28 May 2012, at 11:24, James Abbott wrote:
>
> > I've also got no app.rb other than Nesta's default in the gem
> installation.
>
> That's a surprising thing to hear, as it means my hypothesis about what's
> going on is wrong.
>
> Nesta is serving a 404 page in place of your feed. I would expect that to
> mean that Nesta is serving /articles.xml from the default Sinatra route
> handler. It should only try the default page handler after it's tried the
> one for the atom feed, so a 404 for the atom feed shouldn't happen unless
> you've added a new default route handler at higher priority than the feed
> handler.
>
> Can you give me access to the source for the site in question? If your
> server logs don't hint at what's going on, I can't think of a quicker way
> of working it out.
>

Re: [nesta] RSS feed not working

From:
Graham Ashton
Date:
2012-05-28 @ 11:58
On 28 May 2012, at 12:38, James Abbott wrote:

> Sure, how would you like to go about it?

If it's on GitHub/bitbucket, point me at it (shared private accounts are 
free on bitbucket, should you need to keep it private).

Or feel free to tar it up and email (to me, not the list) if it's only a 
few hundred kB, or upload it to a file sharing site if it's too big for 
email and send me a URL.

Don't send it to the list - we can take this off list now and update 
everybody else later if our findings would be of general interest.

--
Graham Ashton
Founder, The Agile Planner
http://theagileplanner.com | @agileplanner | @grahamashton


Re: [nesta] RSS feed not working

From:
James Abbott
Date:
2012-05-28 @ 15:27
>
> Or feel free to tar it up and email (to me, not the list) if it's only a
> few hundred kB, or upload it to a file sharing site if it's too big for
> email and send me a URL.
>

Sure. Which files do I need to include? Should I import nesta.rb from /lib
in the gem installation?

/ James

On Mon, May 28, 2012 at 1:58 PM, Graham Ashton <graham@effectif.com> wrote:

> On 28 May 2012, at 12:38, James Abbott wrote:
>
> > Sure, how would you like to go about it?
>
> If it's on GitHub/bitbucket, point me at it (shared private accounts are
> free on bitbucket, should you need to keep it private).
>
> Or feel free to tar it up and email (to me, not the list) if it's only a
> few hundred kB, or upload it to a file sharing site if it's too big for
> email and send me a URL.
>
> Don't send it to the list - we can take this off list now and update
> everybody else later if our findings would be of general interest.
>
> --
> Graham Ashton
> Founder, The Agile Planner
> http://theagileplanner.com | @agileplanner | @grahamashton
>
>
>
>

Re: [nesta] RSS feed not working

From:
Tommy Palmer
Date:
2012-05-28 @ 10:33
That ok, the bit that says :rss2, try changing it to :atom. 

-- 
Tommy Palmer
@tommypalm
http://tommyp.org


On Monday, 28 May 2012 at 11:24, James Abbott wrote:

> Ah, I see what you mean. What version of Nesta are you running? Mine is 
0.9.13 and I have no rss2.haml file. I've got an atom.haml and here's how 
it looks:
> 
> https://gist.github.com/2818362
> 
> I've also got no app.rb other than Nesta's default in the gem installation.
> 
> Thanks,
> James
> 
> On Mon, May 28, 2012 at 12:07 PM, Tommy Palmer <hi@tommyp.org 
(mailto:hi@tommyp.org)> wrote:
> > James, 
> > 
> > You misunderstand. Your xml file should not be using the layout, as 
the browser is then seeing that as HTML. My app.rb in my theme folder 
contains this:
> > 
> > https://gist.github.com/2818247
> > 
> > Then the rss2.haml file in my views looks like this:
> > 
> > https://gist.github.com/2818282 
> > 
> > There might be some errors with this code (I done it ages ago when I 
was learning and haven't looked at it until now), but it's processed by 
FF, Chrome and Safari correctly.
> > 
> > Hope that helps.
> > 
> > Tommy
> > 
> > -- 
> > Tommy Palmer
> > @tommypalm
> > http://tommyp.org
> > 
> > 
> > On Monday, 28 May 2012 at 10:51, James Abbott wrote:
> > 
> > > Tommy: sure, here's layout.haml where the offending line appears:
> > > 
> > > https://gist.github.com/2818229
> > > 
> > > / James
> > > 
> > > On Mon, May 28, 2012 at 11:47 AM, Tommy Palmer <hi@tommyp.org 
(mailto:hi@tommyp.org)> wrote:
> > > > James, 
> > > > 
> > > > It looks like it's rendering the layout file too, perhaps posting 
a gist of the code would help us to figure it out. 
> > > > 
> > > > -- 
> > > > Tommy Palmer
> > > > @tommypalm
> > > > http://tommyp.org
> > > > 
> > > > 
> > > > On Monday, 28 May 2012 at 10:46, James Abbott wrote:
> > > > 
> > > > > Hi,-
> > > > > 
> > > > > A dude on Twitter commented that my site's RSS feed doesn't 
work. True enough:
> > > > > 
> > > > > http://jamesabbottdd.com/articles.xml
> > > > > 
> > > > > I've been looking for "junk" in my .haml files but so far 
haven't detected any. Any tips on how to spot it? Crushed beer cans, 
cigarette butts, old cassette players?
> > > > > 
> > > > > / James
> > > > 
> > > 
> > 
> 

Re: [nesta] RSS feed not working

From:
James Abbott
Date:
2012-05-28 @ 10:47
Not sure I understand. My atom.haml doesn't contain ":rss2" anywhere?

/ James

On Mon, May 28, 2012 at 12:33 PM, Tommy Palmer <hi@tommyp.org> wrote:

>  That ok, the bit that says :rss2, try changing it to :atom.
>
> --
> Tommy Palmer
> @tommypalm
> http://tommyp.org
>
> On Monday, 28 May 2012 at 11:24, James Abbott wrote:
>
> Ah, I see what you mean. What version of Nesta are you running? Mine is
> 0.9.13 and I have no rss2.haml file. I've got an atom.haml and here's how
> it looks:
>
> https://gist.github.com/2818362
>
> I've also got no app.rb other than Nesta's default in the gem installation.
>
> Thanks,
> James
>
> On Mon, May 28, 2012 at 12:07 PM, Tommy Palmer <hi@tommyp.org> wrote:
>
> James,
>
> You misunderstand. Your xml file should not be using the layout, as the
> browser is then seeing that as HTML. My app.rb in my theme folder contains
> this:
>
> https://gist.github.com/2818247
>
> Then the rss2.haml file in my views looks like this:
>
> https://gist.github.com/2818282
>
> There might be some errors with this code (I done it ages ago when I was
> learning and haven't looked at it until now), but it's processed by FF,
> Chrome and Safari correctly.
>
> Hope that helps.
>
> Tommy
>
> --
> Tommy Palmer
> @tommypalm
> http://tommyp.org
>
> On Monday, 28 May 2012 at 10:51, James Abbott wrote:
>
> Tommy: sure, here's layout.haml where the offending line appears:
>
> https://gist.github.com/2818229
>
> / James
>
> On Mon, May 28, 2012 at 11:47 AM, Tommy Palmer <hi@tommyp.org> wrote:
>
> James,
>
> It looks like it's rendering the layout file too, perhaps posting a gist
> of the code would help us to figure it out.
>
> --
> Tommy Palmer
> @tommypalm
> http://tommyp.org
>
>  On Monday, 28 May 2012 at 10:46, James Abbott wrote:
>
> Hi,-
>
> A dude on Twitter commented that my site's RSS feed doesn't work. True
> enough:
>
> http://jamesabbottdd.com/articles.xml
>
> I've been looking for "junk" in my .haml files but so far haven't detected
> any. Any tips on how to spot it? Crushed beer cans, cigarette butts, old
> cassette players?
>
> / James
>
>
>
>
>
>
>

Re: [nesta] RSS feed not working

From:
Tommy Palmer
Date:
2012-05-28 @ 10:49
I mean in the app.rb. Try pulling down the default theme and seeing the 
code in that.

-- 
Tommy Palmer
@tommypalm
http://tommyp.org


On Monday, 28 May 2012 at 11:47, James Abbott wrote:

> Not sure I understand. My atom.haml doesn't contain ":rss2" anywhere?
> 
> / James
> 
> On Mon, May 28, 2012 at 12:33 PM, Tommy Palmer <hi@tommyp.org 
(mailto:hi@tommyp.org)> wrote:
> > That ok, the bit that says :rss2, try changing it to :atom. 
> > 
> > -- 
> > Tommy Palmer
> > @tommypalm
> > http://tommyp.org
> > 
> > 
> > On Monday, 28 May 2012 at 11:24, James Abbott wrote:
> > 
> > > Ah, I see what you mean. What version of Nesta are you running? Mine
is 0.9.13 and I have no rss2.haml file. I've got an atom.haml and here's 
how it looks:
> > > 
> > > https://gist.github.com/2818362
> > > 
> > > I've also got no app.rb other than Nesta's default in the gem installation.
> > > 
> > > Thanks,
> > > James
> > > 
> > > On Mon, May 28, 2012 at 12:07 PM, Tommy Palmer <hi@tommyp.org 
(mailto:hi@tommyp.org)> wrote:
> > > > James, 
> > > > 
> > > > You misunderstand. Your xml file should not be using the layout, 
as the browser is then seeing that as HTML. My app.rb in my theme folder 
contains this:
> > > > 
> > > > https://gist.github.com/2818247
> > > > 
> > > > Then the rss2.haml file in my views looks like this:
> > > > 
> > > > https://gist.github.com/2818282 
> > > > 
> > > > There might be some errors with this code (I done it ages ago when
I was learning and haven't looked at it until now), but it's processed by 
FF, Chrome and Safari correctly.
> > > > 
> > > > Hope that helps.
> > > > 
> > > > Tommy
> > > > 
> > > > -- 
> > > > Tommy Palmer
> > > > @tommypalm
> > > > http://tommyp.org
> > > > 
> > > > 
> > > > On Monday, 28 May 2012 at 10:51, James Abbott wrote:
> > > > 
> > > > > Tommy: sure, here's layout.haml where the offending line appears:
> > > > > 
> > > > > https://gist.github.com/2818229
> > > > > 
> > > > > / James
> > > > > 
> > > > > On Mon, May 28, 2012 at 11:47 AM, Tommy Palmer <hi@tommyp.org 
(mailto:hi@tommyp.org)> wrote:
> > > > > > James, 
> > > > > > 
> > > > > > It looks like it's rendering the layout file too, perhaps 
posting a gist of the code would help us to figure it out. 
> > > > > > 
> > > > > > -- 
> > > > > > Tommy Palmer
> > > > > > @tommypalm
> > > > > > http://tommyp.org
> > > > > > 
> > > > > > 
> > > > > > On Monday, 28 May 2012 at 10:46, James Abbott wrote:
> > > > > > 
> > > > > > > Hi,-
> > > > > > > 
> > > > > > > A dude on Twitter commented that my site's RSS feed doesn't 
work. True enough:
> > > > > > > 
> > > > > > > http://jamesabbottdd.com/articles.xml
> > > > > > > 
> > > > > > > I've been looking for "junk" in my .haml files but so far 
haven't detected any. Any tips on how to spot it? Crushed beer cans, 
cigarette butts, old cassette players?
> > > > > > > 
> > > > > > > / James
> > > > > > 
> > > > > 
> > > > 
> > > 
> > 
>