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 trialNabil Muthanna
5,785 PointsGetting 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
1 Answer
James Simshaw
28,738 PointsHello,
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.
alex gwartney
8,849 Pointsalex gwartney
8,849 Pointsim having a similar issue i cant even seem to find my json data in the log?