Closed tim-dow closed 3 years ago
Try uninstalling and reinstalling the plugin. Should do the trick. The issue is not in the plugin, but in another package. Uninstalling and reinstalling the plugin should force the installation of the correct package versions.
No luck after uninstalling and reinstalling, unfortunately...still getting the same error in the log. Is it possible to single out the offending package and maybe selectively reinstall it?
Out of curiosity, how exactly are you uninstalling and reinstalling the plugin?
I've uninstalled in the UI via the plugins section (wrench icon, then Uninstall) as well as via command line (npm uninstall -g homebridge-myq). Installation was done both ways as well, and both ended with the same result.
This error is occurring due to a change in a dependency we rely upon. I've made adjustments in v2.6.3 to ensure we use the most recent version that remains compatible with Homebridge. Somehow, your setup seems to be installing the most recent version of this dependency (node-fetch
to be exact) rather than pulling the correct version.
You're going to need to troubleshoot why things are being installed the way they are on your system...I'm afraid I can't help you much more there. But that's the essence of the issue here. Another, less ideal option of course, is to run all this in a docker container which will give you an even more precise environment. There's a preconfigured docker environment available for Homebridge.
Best of luck! Report back if you get things going.
Thank you! I ended up uninstalling Node and reinstalling 14.17.4 from scratch, and that appears to have kicked everything into place. (At least once I fixed a subsequent permissions issue with the .homebridge directory that was causing hb-service to get stuck in a restart loop.)
I appreciate your help here and all of your work with this project!
This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.
Describe The Problem: After the plugin is initiated, there appears to be some issue during the authentication process with myQ (starting with "UnhandledPromiseRejectionWarning"), and the garage door does not show up as an accessory. The issue has been happening since this particular plugin was installed about a week ago (replacing an older myQ plugin). I've verified that the password is correct and the myQ app works, and I've deleted/reinstalled the plugin, but I'm feeling stuck at this point!
To Reproduce: The issue occurs at every startup.
Logs:
Homebridge Configuration:
Screenshots:
Environment: