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.

Android Build a Weather App (2015) Working with JSON Introducing JSONObject

gustp
gustp
2,526 Points

call.enqueue callback is failing

I'm at the end of this video and trying to get the key timezone but i was not getting any output. i degguged and noticed that the call.enqueue was failing because the i added a Log.v(TAG,"We failed"); inside the onFailure method and ran it and it was being outputted meaning that the onresponse was not being triggered. I checked that airplaine mode was not in effect and that wifi is turned on and also tried going into a page inside the emulator browser and it gives error net::ERR_NAME_NOT_RESOLVED, I suspect this may be cause i'm currently not at home but at school and maybe the network from the school isn't making it inside the emulator somehow compared to when i was at home, idk what else it could be

samuel zaffran
samuel zaffran
24,815 Points

Need most of your code to understand what's going wrong !

1 Answer

gustp
gustp
2,526 Points

it started working when i got home for some reason,weird.I suspect it will stop once try to do it somewhere else again.