nmdias / FeedKit

An RSS, Atom and JSON Feed parser written in Swift
MIT License
1.19k stars 174 forks source link

Different results on Heroku? #95

Closed patwhitehead1 closed 5 years ago

patwhitehead1 commented 5 years ago

I'm getting some strange behaviour when deploying my Kitura app to Heroku. Everything works fine with FeedKit when I run it locally, but when deployed I parse an RSS feed and feed.iTunes is nil. All other properties appear to be working as expected.

Any idea why this might happen?

patwhitehead1 commented 5 years ago

Just wanted to follow up on this. Are there any reasons why RSSFeed.iTunes would ever be nil?

patwhitehead1 commented 5 years ago

After lots of logging I was able to find the issue. Any place where the parser is expecting to see an iTunes tag (such as "/rss/channel/itunes:author"), the iTunes tag is reversed. So it looks like "/rss/channel/author:itunes" instead. Not sure why this is happening.

nmdias commented 5 years ago

Hi, @patwhitehead1

I'll assume there was an issue with the feed being provided, as the authorelement is, as you pointed out, and as per documentation <itunes:author> and not the other way around. Closing this for now.

Thanks

patwhitehead1 commented 5 years ago

I think it's more how swift behaves with linux vs macOS, so likely nothing to do with the FeedKit library.