-
Notifications
You must be signed in to change notification settings - Fork 31
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 getting devices: TypeError: Cannot read property 'filter' of undefined #87
Comments
Some more info... That is when the "Error getting devices: TypeError: Cannot read property 'filter' of undefined" error happens. Apparently it is not understanding one of those properties? Thanks |
I'm having the same results:
Logs: [get /v2/devices/1/properties] - {"max_speed":4,"feature_light":true,"feature_brightness":true,"breeze_max_speed":3,"breeze_min_speed":1,"breeze_period":30,"_":"a10fcd96"} After /properties, it throws the error: |
ok, I thought rolling back did not help. However, when I rolled back to 2.6.0 it works fine. So apparently it broke with 2.7.0. I will keep using 2.6.0 until there is a fix. Thanks |
Same issue |
Sorry about that! I can't reproduce locally but attempted to fix this in 2.7.2. If that doesn't work, I will need more detailed logs with |
I'm getting the same error as well, with 2.7.2. |
No luck on update. The results I posted previously were all that was output to logs with -D enabled in homebridge. Not a lot of additional info. I’m guessing it’s just trying to iterate over the array before it’s set somewhere, which is why it’s undefined, but that’s just a guess. |
Thanks all - I've got a family wedding this weekend so I won't be able to look at this until sometime next week at the earliest. Please use 2.6.0 for now if you are having issues! |
I have the same issue on 2.7.2 after updating! The copy of log: |
@knavabi can you run homebridge in debug mode and post your logs? ( |
@aarons22 Here you are: |
It is working competently fine when downgraded to v2.6.0. |
Thank you this is super helpful! Seeing the files / line where it's happening makes it very easy to debug |
@knavabi I appreciate the logs, it was a lot easier to track down. I'm hoping 2.7.3 fixes the issue! |
Just updated and looks like it's working. At least it was a simple update, and null vs. undefined is the reason Javascript is such a hated language :) Thanks @aarons22 ! ! |
thank you! it works fine now |
I updated to 2.7.1 today and I am getting the following error when trying to load my bond device: "Error getting devices: TypeError: Cannot read property 'filter' of undefined"
I have tried the usual steps: rolling back the plugin, stopping and restarting homebridge, reinstalling the plugin, removing the device and files in "persist", etc. I still get the same error after trying to add the device. Please let me know if you have any suggestion.
The text was updated successfully, but these errors were encountered: