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 Build a Weather App (2015) Concurrency and Error Handling Making Our Code Asynchronous

Nabil Muthanna
Nabil Muthanna
5,785 Points

Getting part of the response body not the full response body.

I followed the videos and when I log response.getbody().string(), I only get small part of the response printed out. I used the browser with forcastUrl and I got the full response body. Have no idea what is the problem. I was wondering if any one came across this issue.

Thanks in advance

alex gwartney
alex gwartney
8,849 Points

im having a similar issue i cant even seem to find my json data in the log?

1 Answer

Hello,

I recently saw what I thought was this when I was troubleshooting some code recently. However, I found that Android Studio is just truncating the log message, but all of the data was actually still stored in the variable. If you used the debugger and set a breakpoint for after you store the response string, you should be able to see it and then expand that to see the full contents is stored in your variable. Please let us know if this helps or if you need more assistance and we can help further.