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 trialgustp
2,526 Pointscall.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
1 Answer
gustp
2,526 Pointsit started working when i got home for some reason,weird.I suspect it will stop once try to do it somewhere else again.
samuel zaffran
24,815 Pointssamuel zaffran
24,815 PointsNeed most of your code to understand what's going wrong !