nmdias / FeedKit

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

The file “feed” couldn’t be opened. #150

Open plami opened 1 year ago

plami commented 1 year ago

Hi team,

I am facing some issue with opening one url. The url is https://www.diabetes-m.com/feed/ and it calls xml data. Unfortunately after parsing with your library, and error returns "The file “feed” couldn’t be opened".

I was wondering is there is something wrong with the xml or it could be something else?

I really appreciate your help!

armartinez commented 5 months ago

@plami I had the same problem and it was caused by the library fetching the data synchronously via the Data(contentsOf: sanitizedSchemeUrl) method. I created a PR with a fix (https://github.com/nmdias/FeedKit/pull/163) so maybe you can try and use that branch locally if it doesn't get merged.