marvinroger / hass-addon-tiko

Control your tiko / Mon Pilotage Elec heaters from Home Assistant
10 stars 1 forks source link

Error from state updater #13

Closed patriarch closed 7 months ago

patriarch commented 7 months ago

Hello, I have this error since yesterday, restart seams to correct the problem for few minutes/hours

[00:24:48.544] ERROR (7): Error from state updater
    err: {
      "type": "Error",
      "message": "Request failed: fetch failed: getaddrinfo EAI_AGAIN particuliers-tiko.fr",
      "stack":
          Error: Request failed
              at file:///app/dist/tiko/client.js:147:22
              at /app/node_modules/neverthrow/dist/index.cjs.js:100:35
              at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
              at async doTikoRequest (file:///app/dist/tiko/client.js:137:32)
              at async TikoClient.fetchData (file:///app/dist/tiko/client.js:58:32)
              at async StateUpdater.update (file:///app/dist/state-updater.js:30:34)
          caused by: TypeError: fetch failed
              at node:internal/deps/undici/undici:12345:11
              at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
              at async fetchCookieWrapper (file:///app/node_modules/fetch-cookie/esm/index.js:144:22)
              at async doTikoRequest (file:///app/dist/tiko/client.js:137:32)
              at async TikoClient.fetchData (file:///app/dist/tiko/client.js:58:32)
              at async StateUpdater.update (file:///app/dist/state-updater.js:30:34)
          caused by: Error: getaddrinfo EAI_AGAIN particuliers-tiko.fr
              at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)
    }
marvinroger commented 7 months ago

Hello, it's a DNS error, either a temporary problem from your DNS or from theirs. The add-on should handle it gracefully without crashing 😉