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

Unable to load any posts since 4.x #33

Closed
amitburst opened this issue Mar 1, 2015 · 1 comment
Closed

Unable to load any posts since 4.x #33

amitburst opened this issue Mar 1, 2015 · 1 comment

Comments

@amitburst
Copy link

Hi, I'm having some troubles using libHN since it was upgraded to 4.x. I'm currently running 4.0.2 and a simple loadPostsWithFilter gives me back an empty HNPost array. I don't think I've changed anything on my end, so is there some piece I'm missing since the upgrade, maybe something to do with hn.json? Here's the main code, for reference: https://github.com/amitburst/HackerNews/blob/master/HackerNews/MainViewController.swift.

Thanks!

@amitburst
Copy link
Author

Ah, figured it out pretty quickly. I had never set HNManager.sharedManager().startSession() in my AppDelegate because my app didn't support user log in. Looks like it's required to load in the new hn.json configuration file! At least I think that's the case, so it might be important to document that this line is necessary!

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

1 participant