naofireblade / homebridge-weather-plus

A comprehensive weather plugin for homebridge.
MIT License
316 stars 63 forks source link

Error/crashing with OpenWeatherMap #152

Open morphix9 opened 4 years ago

morphix9 commented 4 years ago
[7/23/2020, 10:31:23] [WeatherPlus] Error retrieving weather report
[7/23/2020, 10:31:23] [WeatherPlus] Error: getaddrinfo EAI_AGAIN api.openweathermap.org
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:64:26) {
  errno: 'EAI_AGAIN',
  code: 'EAI_AGAIN',
  syscall: 'getaddrinfo',
  hostname: 'api.openweathermap.org'
}
[7/23/2020, 10:31:23] [WeatherPlus] undefined
vsenn commented 3 years ago

Hi! I've got the same issue starting today. Even, if it could be a DNS issue that would be great to catch that exception and not impact other accessories on same instance. Thanks in advance.

[8/21/2021, 2:32:45 PM] [WeatherPlus] Error retrieving weather report [8/21/2021, 2:32:45 PM] [WeatherPlus] Error: getaddrinfo EAI_AGAIN api.openweathermap.org at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:69:26) { errno: -3001, code: 'EAI_AGAIN', syscall: 'getaddrinfo', hostname: 'api.openweathermap.org' } [8/21/2021, 2:32:45 PM] [WeatherPlus] undefined [8/21/2021, 2:36:45 PM] [WeatherPlus] Error retrieving weather report [8/21/2021, 2:36:45 PM] [WeatherPlus] Error: getaddrinfo EAI_AGAIN api.openweathermap.org at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:69:26) { errno: -3001, code: 'EAI_AGAIN', syscall: 'getaddrinfo', hostname: 'api.openweathermap.org' } [8/21/2021, 2:36:45 PM] [WeatherPlus] undefined