Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined is not an object (evaluating 'data.current.feels_like') #3

Open
bharrrr opened this issue Mar 1, 2021 · 6 comments
Open

Comments

@bharrrr
Copy link

bharrrr commented Mar 1, 2021

I am receiving that error referencing row 176: {data.current.feels_like.toFixed(1)}°

@mixj93
Copy link
Owner

mixj93 commented Mar 4, 2021

It seems like there is something wrong getting the weather data, maybe network error or wrong API key.

Can you get response with your own APP key from the following API?https://api.openweathermap.org/data/2.5/onecall?lat=31.1963042&lon=121.605487&appid=${APP_KEY}

@aadityapyarla
Copy link

aadityapyarla commented Jan 23, 2022

Me too getting similar error:
error referencing row 176: {data.current.feels_like.toFixed(1)}°

After checking the url given above, I am getting wrong AppId:
{"cod":401, "message": "Invalid API key. Please see http://openweathermap.org/faq#error401 for more info."}

But after rechecking my account in openweather I can't find any difference b/w the entered API_KEY.
Don't know why this error is occurring, Also I am not having anyissues regarding my network

@mixj93
Copy link
Owner

mixj93 commented Mar 19, 2022

176

image

Please check your key in Weather.jsx

@mixj93
Copy link
Owner

mixj93 commented Mar 19, 2022

Me too getting similar error: error referencing row 176: {data.current.feels_like.toFixed(1)}°

After checking the url given above, I am getting wrong AppId: {"cod":401, "message": "Invalid API key. Please see http://openweathermap.org/faq#error401 for more info."}

But after rechecking my account in openweather I can't find any difference b/w the entered API_KEY. Don't know why this error is occurring, Also I am not having anyissues regarding my network

My key works fine, maybe try a new key

@butaminas
Copy link

Seems like there is a delay until your openweathermap.org API becomes active. I had the same error after initial setup but after several minutes it started working.

@gabri83
Copy link

gabri83 commented Jul 11, 2023

I have generated a new key, waited one hour and still get that error. It doesn't seem to be working... And yes, the key is active

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants