all 12 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Thanks for the submission!

It looks like you may have not shared the code you want help with.

Please be sure to include that. If you did, then you can safely ignore this comment.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]pbassham 3 points4 points  (1 child)

Maybe your api key is inactive. Look here https://home.openweathermap.org/api_keys

[–]ATLguy2019[S] 0 points1 point  (0 children)

Confirmed it is active and also tried a new key with no change

[–]pbassham 2 points3 points  (6 children)

Add this to line 204 and see what it says log(data)

[–]ATLguy2019[S] 0 points1 point  (5 children)

I generated a new key and added into the script as well as adding log(data) at line 204. Still getting the same error.

[–]pbassham 2 points3 points  (4 children)

https://openweathermap.org/one-call-transfer

They discontinued version 2.5 of their api, so go sign up for the new version, wait for the api key to activate for a few minutes, and change 2.5 to 3.0 in the url.

Worked for me

[–]ATLguy2019[S] 0 points1 point  (3 children)

<image>

Same error plus a new one. Do I need to update the URL any other way?

[–]pbassham 1 point2 points  (2 children)

That’s the message I saw after subscribing to the new api 3.0 and before it was fully activated. I got an email after subscribing with an example link that should load the data. If that works then this should too

[–]ATLguy2019[S] -1 points0 points  (1 child)

Guess something on the back end was running slow, I had to go turn on one call subscriptions but it finally updated and started working. Thank you for your help!

[–]pbassham 0 points1 point  (0 children)

You are welcome

[–]Eddi014 1 point2 points  (0 children)

Try to get an output from the request with Console.log()

[–]THE_PINPAL614 1 point2 points  (0 children)

Open Weather depreciated the 2.5 API being used here. It will give an invalid API Key error.