Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Conversation

MohammadAG
Copy link

The method does not work without the added .json at the end:

Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}
Error Domain=reddift.HttpStatusWithBody<Swift.String> Code=404 "(null)"

The method does not work without the added .json at the end:
> Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}
Error Domain=reddift.HttpStatusWithBody<Swift.String> Code=404 "(null)"
Copy link
Owner

@sonsongithub sonsongithub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even when the path is with or without .json, test code works correctly.
Check out SubredditsTest.swift.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants