Welcome to the Treehouse Community
Looking to learn something new?
Anastasiia Karpenko2,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
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.