seydx / homebridge-fritz-platform

AiO Homebridge dynamic platform plugin for AVM hardware like Fritz!Box, Fritz!Repeater etc.
MIT License
223 stars 32 forks source link

An error occured during getting state! followed by EUNETREACH #303

Open knikkabokka opened 1 year ago

knikkabokka commented 1 year ago

Describe the bug I get yellow errors "Fritz!Box (cable): An error occured during getting state!" followed by detailed red "Error: connect EHOSTUNREACH 192...***:49443" errors quite constantly.

To Reproduce The errors comes sometime after starting the Homebridge. Always. Sometimes earlier, sometimes later. After restarting Homebridge the error seems to be gone first. But he comes back, return, sooner (after about 30 minutes) or later (after half a day). Always.

The errors seem to come once every ~30 Minutes sometimes and repeat a few times. Then, for half a day or longer, all seems to be OK. Sometimes.

When it occurs, I get many of these errors in a few Minutes (One error per used function?), about 14 errors or so ...

Fritz!Box is up and reachable when the errors occur ...

Expected behavior No errors in the log. Especially not red ones. Fritz!Box, which is up and running fine, should be reachable?!

There are no errors for other homebridge plug-ins in the log in these times ... So Raspi and Homebridge are reachable ...

Desktop:

Raspi

Smartphone:

Fritz!Box

Additional context This is how the errors look in the log:

[10.10.2022, 12:21:08] [FritzBox] Fritz!Box Wifi 2ghz (wifi_2ghz): An error occured during getting state! [10.10.2022, 12:21:08] [FritzBox] Error: connect EHOSTUNREACH 192.###.###.###:49443 at Object.exports.request (/usr/lib/node_modules/homebridge-fritz-platform/node_modules/@seydx/fritzbox/lib/request.js:103:21) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) at exports.requestXml (/usr/lib/node_modules/homebridge-fritz-platform/node_modules/@seydx/fritzbox/lib/request.js:230:20) at Service.execAction (/usr/lib/node_modules/homebridge-fritz-platform/node_modules/@seydx/fritzbox/lib/service.js:133:20) at Handler.get (/usr/lib/node_modules/homebridge-fritz-platform/src/accessories/router/router.handler.js:186:28) at Handler.poll (/usr/lib/node_modules/homebridge-fritz-platform/src/accessories/extras/extras.handler.js:783:13) { title: 'No Response', code: 'EHOSTUNREACH', soap: { action: 'urn:dslforum-org:service:WLANConfiguration:1#GetInfo' }, url: 'https://#######:##########@192.###.###.###:49443/upnp/control/wlanconfig1'

Or:

[10.10.2022, 12:20:40] [FritzBox] Fritz!Box (aw): An error occured during getting state! [10.10.2022, 12:20:40] [FritzBox] Error: connect EHOSTUNREACH 192.###.###.###:49443 at Object.exports.request (/usr/lib/node_modules/homebridge-fritz-platform/node_modules/@seydx/fritzbox/lib/request.js:103:21) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) at exports.requestXml (/usr/lib/node_modules/homebridge-fritz-platform/node_modules/@seydx/fritzbox/lib/request.js:230:20) at Service.execAction (/usr/lib/node_modules/homebridge-fritz-platform/node_modules/@seydx/fritzbox/lib/service.js:133:20) at Handler.get (/usr/lib/node_modules/homebridge-fritz-platform/src/accessories/router/router.handler.js:306:28) at Handler.poll (/usr/lib/node_modules/homebridge-fritz-platform/src/accessories/router/router.handler.js:1000:19) { title: 'No Response', code: 'EHOSTUNREACH', soap: { action: 'urn:dslforum-org:service:X_AVM-DE_TAM:1#GetInfo' }, url: 'https://########:#########@192.###.###.###:49443/upnp/control/x_tam' }

These are examples. As you see, some parts may vary, e.g.: "(aw)", "(dect)", "(cable)", "An error occurred during polling guest device!", etc.