Skip to content
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: Request failed! Error code ENETUNREACH. #9

Open
RPJacobs opened this issue Jan 26, 2024 · 8 comments
Open

ERROR: Request failed! Error code ENETUNREACH. #9

RPJacobs opened this issue Jan 26, 2024 · 8 comments

Comments

@RPJacobs
Copy link

RPJacobs commented Jan 26, 2024

After a couple of hours I get this error message.... devices are unavailable.

ERROR: Request failed! Error code ENETUNREACH. Check the URL in config.json and ensure that the URL can be reached from this system!

Screenshot 2024-01-26 at 21 22 15

After a restart all is fine.

Screenshot 2024-01-26 at 21 23 32
@jmichas
Copy link
Owner

jmichas commented Jan 28, 2024

Hi, are you using my version of the plugin? This was an error that happened in the old code that I had forked from, it was fixed.

@RPJacobs
Copy link
Author

RPJacobs commented Jan 28, 2024

Yes I use your plugin. Equally I used the other plugin before and had a username password error. You fixed that one with the cookie.

image

@jmichas
Copy link
Owner

jmichas commented Jan 28, 2024

I will look through the code to see if I can figure out what that error code really means. Sorry, it is sometimes tough because I am not intimately familiar with existing code.
Is there a time frame this starts to occur? Like is it hours after a restart, days, weeks? Or just random?

@jmichas
Copy link
Owner

jmichas commented Jan 28, 2024

Actually, also, what version of homebridge and node are you running?
This has only been tested on HB 1.7 and node 18.16, so if youa re running a more recent version that may be the issue.

@RPJacobs
Copy link
Author

RPJacobs commented Jan 28, 2024

image

It's a fresh install pi4B.

image

@jmichas
Copy link
Owner

jmichas commented Jan 29, 2024

Yeah, that's what I thought. I don't currently have an environment to test against the latest node/HB.
If a restart fixes the problem a workaround for now could be to just set your device to reboot in the middle of the night using cron. It is pretty simple to setup, you can google how to use cron. I used to have my pi reboot at 3am every night to fix the old problem before we fixed it properly in this repo. As soon as I can I will look into setting up some sort of VM using latest node to code and test against.

@RPJacobs
Copy link
Author

RPJacobs commented Feb 1, 2024

Moved to a docker image with node.js 18 to test:

Screenshot 2024-02-01 at 14 10 28

The (almost the same) error is still there but only for a minute and then it recovers..

Screenshot 2024-02-01 at 14 10 56

Screenshot 2024-02-01 at 14 11 08

@RPJacobs
Copy link
Author

RPJacobs commented Feb 1, 2024

don't think it's a session error locking at the session log in z-way-server. The last session was created a day before the error....

Screenshot 2024-02-01 at 14 18 57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants