wix-incubator / react-templates

Light weight templates for react
https://wix.github.io/react-templates
MIT License
2.82k stars 207 forks source link

Weather example doesn't leave 'loading' state #201

Open IBwWG opened 7 years ago

IBwWG commented 7 years ago

At http://wix.github.io/react-templates/ I've tried entering various cities (sometimes waiting a few seconds after typing them in before clicking Add or pressing Enter) in various formats, and all the Add/Enter action seems to do is clear the text box. "Loading" never goes away and cities never appear to be added.

FF 50.1.0, Win7x64sp1.

nippur72 commented 7 years ago

The example uses the openweathermap API which seems to have changed since Oct 2015:

A: Starting from 9 October 2015 our API requires a valid APPID for access. Note that this does not mean that our API is subscription-only now - please take a minute to register a free account to receive a key.

http://openweathermap.org/faq#error401

Indeed the example returns a 401

Request URL:http://api.openweathermap.org/data/2.5/weather?q=lima
Request Method:GET
Status Code:401 Unauthorized
Remote Address:146.185.181.89:80