-
Notifications
You must be signed in to change notification settings - Fork 18
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
Error get_valores_climatologicos_mensuales / get_request_data con URL 'None' #13
Comments
Hola Pablo, me he mirado los cambios que propones en el pull y si los aplico a models.py, entonces me da el siguiente error: requests.exceptions.InvalidHeader: Value for header {api_key: <bound method AemetHttpClient.get_api_key of <aemet.models.Aemet object at 0x00000208A744AEC8>>} must be of type str or bytes, not <class 'method'> Un saludo. |
Correcto, ya debería estar corregido. |
Perfecto, muchas gracias! |
Hola Pablo, he encontrado otro bug en la función get_valores_climatologicos_mensuales / get_request_data. Sólo se devuelven los valores del primer mes para el año seleccionado. Por ejemplo: 1387E: A CORUÑA AEROPUERTO Saludos |
Se me ocurre que una solución podría ser cambiar el try dentro de la función get_request_data a lo siguiente:
en vez de:
|
Hola @bdeerausquin , para obtener todos los resultados había que pasarle el parámetro |
Hola Pablo,
al solicitar los datos de varias estaciones con get_valores_climatologicos_mensuales, si una de ellas no tiene datos,
{
"descripcion" : "No hay datos que satisfagan esos criterios",
"estado" : 404
}
la función devuelve el siguiente error:
requests.exceptions.MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?
Saludos
The text was updated successfully, but these errors were encountered: