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

Anastasiia Karpenko
Anastasiia Karpenko
2,413 Points

Stormy app does not work anymore!

My Stormy app does not work anymore. It worked before when I completed it. Now I wanted to make minor changes in the layout (just center temperature in the circles in the daily forecast list item layout). Ok I ran the app on my phone and first it was trying to load the forecast but it took several seconds (longer than even) and then the error dialog appeared. The app stopped to work. it showed me the error in Android Monitor :

V/MainActivity: <html> <head><title>502 Bad Gateway</title></head> <body bgcolor="white"> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx/1.10.0 (Ubuntu)</center> </body> </html>

I googled and did not find a lot of answers in stackoverflow but apparently from the other sources and posts I figured out that this error comes when there is not wifi connection on the phone. I set my phone connected to wifi, wifi worked (cause I loaded a website in chrome on the smartphone before checking the app). I rerun the app but it's the same error. The app does not work. However yesterday when I tried it it worked perfectly fine.

Please suggest what should I do in this case to make it to work? Thank you

1 Answer

Hi there,

When did you complete the Stormy app?

The reason I ask is that the API URL has changed. Where we used to use forecast.io, there's a new location for the weather information. Have a look at this for more info.

Let me know if that might be the issue.

Steve.

Anastasiia Karpenko
Anastasiia Karpenko
2,413 Points

Hi, Steve, I completed it a week ago with already renewed API URL . But actually, I've checked it a couple of minutes ago, and now it works fine. I guess it was a problem on the darksky side.

Ah right - as long as you got it sorted. :smile: :+1: