Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure with URL on Apple Watch (real device) #119

Open
furiosFast opened this issue Apr 24, 2020 · 2 comments
Open

Failure with URL on Apple Watch (real device) #119

furiosFast opened this issue Apr 24, 2020 · 2 comments

Comments

@furiosFast
Copy link

furiosFast commented Apr 24, 2020

Hi,
first of all, great job!!!

I have encountered a problem that occurs only when I try to parse an RSS feed on Apple Watch device (on simulator it works).
the feed has the following url:
http://www.servizitelevideo.rai.it/televideo/pub/rss101.xml

FeedKit always fail on this try:
data = try Data (contentsOf: sanitizedSchemeUrl)
If run the exact same code on iPhone it works. Of course, even if I download the Data with Alamofire and then I pass it to FeedKit

@furiosFast furiosFast changed the title Failure with URL on Apple Watch Failure with URL on Apple Watch device Apr 24, 2020
@furiosFast furiosFast changed the title Failure with URL on Apple Watch device Failure with URL on Apple Watch (real device) Nov 26, 2020
@mlm249
Copy link

mlm249 commented Jul 10, 2021

I ran into a similar problem. I read somewhere that Data(contentsOf: ) under the hood works with something not watch friendly. Sure enough, obtaining my Data from URLSession instead worked for me. This way you can use the FeedParser(data: Data) initializer. It would be nice if the FeedParser(url: URL) initializer had a fallback to URLSession on watchOS though

@nmdias
Copy link
Owner

nmdias commented Oct 6, 2024

I remember encountering this issue a long time ago, and it wasn’t limited to just watchOS. We even reported it to Apple, but they couldn’t replicate it, despite the fact that we had three machines where the problem occurred consistently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants