Skip to content

Conversation

Sophira
Copy link

@Sophira Sophira commented May 19, 2017

xkcd.com changed to using HTTPS some time ago; the change causes XkcdViewer to fail with "Data returned from website didn't match expected format" as the 301 redirect is attempted to be parsed as JSON, which obviously fails.

While this isn't a complete fix, it should hopefully fix the app enough for it to work again.

Fixes #70.


(Please note that I have not been able to test this as I do not have the correct build environment. I believe that my changes are correct, however!)

xkcd.com changed to using HTTPS some time ago; the change causes
XkcdViewer to fail with "Data returned from website didn't match
expected format" as the 301 redirect is attempted to be parsed as JSON,
which obviously fails.

While this isn't a complete fix, it should hopefully fix the app enough
for it to work again.

Fixes tcoxon#70.
@Sophira
Copy link
Author

Sophira commented May 19, 2017

When I say this isn't a complete fix, I mean that really, the app should be following redirects instead of trying to parse the empty redirect response as JSON. That's for someone to do who actually has the correct build environment, though!

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

Successfully merging this pull request may close these issues.

Data returned from website didn't match expected format

1 participant