Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Android Lists and Adapters (2015) Updating the Data Model Getting the Whole Forecast

Bruce Parmele
Bruce Parmele
6,474 Points

Incomplete JSON Data while running app...

I can see the weather data fine while browsing to the url. But I am getting incomplete data when running the app, Even when I try the downloaded project code, I get the same problem - all fields on the app are blank. here is a log snippit.....

03-05 20:42:57.375  18082-18109/com.parmeleconsulting.stormy D/dalvikvm﹕ GC_CONCURRENT freed 279K, 16% free 5663K/6720K, paused 2ms+21ms, total 60ms
03-05 20:42:57.585  18082-18213/com.parmeleconsulting.stormy I/********MainActivity*******﹕ From JSON: America/Chicago
03-05 20:42:57.585  18082-18213/com.parmeleconsulting.stormy D/********MainActivity*******﹕ 8:42 PM
03-05 20:42:57.671  18082-18109/com.parmeleconsulting.stormy D/dalvikvm﹕ GC_CONCURRENT freed 470K, 19% free 5662K/6912K, paused 3ms+3ms, total 55ms
03-05 20:42:57.750  18082-18213/com.parmeleconsulting.stormy E/********MainActivity*******﹕ Exception caught:
    org.json.JSONException: No value for time'

1 Answer

Bruce Parmele
Bruce Parmele
6,474 Points

Looks like a typo when I was setting the hourTime. I had typed ("time'") instead of time ("time"). Now that was a self lessen learned in debugging!