Welcome to the Treehouse Community
Looking to learn something new?
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
it started working when i got home for some reason,weird.I suspect it will stop once try to do it somewhere else again.