Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Harry James
Harry James
14,780 Points

[Resolved] JSONException - Blog Reader app

[Resolved] Hubert's fix at https://teamtreehouse.com/forum/trying-to-retrieve-data-from-my-own-blog-help worked for me and if anybody else has the issue, I'd recommend his fix! :)

Hello Ben Jakuben - I'm having an issue where I get a JSONException when I try to retrieve the data from the Treehouse Blog API. I heard that previous users had this problem and that you released a fix video which had apparently put an end to the issue. However, I've ended up having this problem after following the latest video. Is this a problem with my code or is it a problem with the Treehouse Blog JSON page?

My program Posted on Pastebin to shorten this post: http://pastebin.com/mVHX4zY2

LogCat error report Posted on Pastebin to shorten this post: http://pastebin.com/8STwXBqv

Thanks in advance!

Update: I have tried this a few times and actually, the exception occurs at different times. I usually get the error at character 5728 but here I got at character 1625!?

1 Answer

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Glad you got it working! That solution is linked in the Teacher's Notes, too. I'm soon to record a new version of this course, too! :)