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 trialJoshua Kidd
3,411 PointsNetwork Requests seem slow, when running the app on my device it takes around 5 seconds or more to update.
When I run the app on my device(LG G3) it takes about 5 - 15 seconds for OkHttp to return anything. I've tried my Wifi (which is over 50mbps down and 20mbps up) and my mobile network and the results are nearly the same.
What could be the issue here?
Joshua Kidd
3,411 PointsSo, I tried my mobile network again and it works in an instant. I'm located in Denver and I've never had issues with other apps doing this. I'm just running through the videos and making a request to forecast.io, I've tried WiFi at two different places and none seems to go faster than 10 seconds, in fact sometimes the request never makes it through.
I've tried debugging with a breakpoint, but that doesn't help.
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsWhat are you asking your app to connect to, where are you located and where is the data host located?
I don't think the issue is local to your device or connection method but that would be an interesting issue to explore.
Steve.