Apple News Preview -- can't load articles

478 Views Asked by At

I am attempting to use News Preview to check out my apple news articles, but I keep getting the error "This document couldn't be opened. For details, see the error console...". The error console seems to be completely blank.

I have tried this with article json directly from my server and also json downloaded from iCloud's news publisher. The articles in question display fine on my test news channels in the Apple News app.

Has anyone had this issue before?

Edit: I have the latest version of XCode installed. The same result occurs when I try to load articles downloaded from Apple's documentation.

2

There are 2 best solutions below

1
On BEST ANSWER

For the next person that runs into this, my problem was that my https local URLs (links and images) weren't using a valid certificate. Replacing them with http fixed the issue.

1
On

Typically this happens when the json is malformed or if incorrectly using an ANF property.