OpenWeatherMap not working

Solved!
BhaskarDevGoel
Level 2
OpenWeatherMap not working

I want to fetch the weather-related information for a location for which i am using the OpenWeatherMap plugin. I have followed all the instructions given in the plugin documentation. When i try to used the plugin, it gives me an error as attached. 

can anyone help?


Operating system used: linux

0 Kudos
1 Solution
AlexT
Dataiker

There is a free API trier you can subscribe to https://openweathermap.org/api  Did you sign-up? 

Make sure you have no leading/trailing spaces in your API key and if that still doesn't work let us know.

View solution in original post

0 Kudos
5 Replies
AlexT
Dataiker

Hi @BhaskarDevGoel,
Is possible for you null/empty values in lat/long columns? Could please check?

If the issues persist please reach out to support and share the job diagnostics. 

Job failed: Error in Python process: At line 116: <class 'exceptions.OpenWeatherMapAPIError'> [Errno None]
None: 'None' More info about this error

Thanks,

0 Kudos
BhaskarDevGoel
Level 2
Author

Hi @AlexT 

 

The data has no null values. I check the logs and it is showing 

INFO Error in request (status code: 401)
[08:37:32] [INFO] [dku.utils] - 2023-03-13 08:37:32,881 INFO Response: {"cod":401, "message": "Invalid API key. Please see https://openweathermap.org/faq#error401 for more info."}

 

But i have cross verified the API key and it is correct. Is there a possibility that i need to subscribe to a service before using the plugin? 

0 Kudos
BhaskarDevGoel
Level 2
Author

I want to extract the historic weather data (last 2 years) of a lat long

0 Kudos
AlexT
Dataiker

There is a free API trier you can subscribe to https://openweathermap.org/api  Did you sign-up? 

Make sure you have no leading/trailing spaces in your API key and if that still doesn't work let us know.

0 Kudos
BhaskarDevGoel
Level 2
Author

No actually i just create an account on OWM and generate the API key. I have not subscribed to any service yet

0 Kudos

Labels

?

Setup info

?
A banner prompting to get Dataiku