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

Unhandled error thrown inside read handler for characteristic: log is not a function. #712

Open
avivamientodev opened this issue Mar 8, 2021 · 10 comments

Comments

@avivamientodev
Copy link

Hi, I'm using the following plugins in my Raspberry PI, I had no errors before updating:

Homebridge Broadlink Rm - homebridge-broadlink-rm v3.6.22
Homebridge UI - homebridge-config-ui-x v4.40.0
Homebridge Apple Tv Remote - homebridge-apple-tv-remote v0.12.1

I'm receiving one warning and one error from Homebridge Broadlink RM:

  • [homebridge-broadlink-rm] This plugin generated a warning from the characteristic 'On': characteristic value expected boolean and received undefined.

  • [homebridge-broadlink-rm] This plugin threw an error from the characteristic 'Name': Unhandled error thrown inside read handler for characteristic: log is not a function.

I searched and finally, the last recommendation I to write to the author of the plugin. I will appreciate if some one was able to fix this problem. Kind regards

@sonnyfournier
Copy link

Hi, I have the same issue, can you take a look @lprhodes ?

@jangomunkie
Copy link

Same here:
[homebridge-broadlink-rm] This plugin threw an error from the characteristic 'Name': Unhandled error thrown inside read handler for characteristic: log is not a function. See https://git.io/JtMGR for more info.

@dodds-1
Copy link

dodds-1 commented Apr 1, 2021

Also getting:

[homebridge-broadlink-rm] This plugin threw an error from the characteristic 'Name': Unhandled error thrown inside read handler for characteristic: log is not a function

@sonnyfournier
Copy link

Update: I find a fork that works:
https://github.com/kiwi-cam/homebridge-broadlink-rm

@linanw
Copy link

linanw commented Apr 26, 2021

Created a fix pull request: lprhodes/homebridge-platform-helper#9
Meanwhile, you may replace the line of code in you local file.
/homebridge/node_modules/homebridge-broadlink-rm/node_modules/homebridge-platform-helper/dist/serviceManager.js

if (log) { log(`${name} getName: ${name}`); }
callback(null,` name ?? '');

image

@Snoomy
Copy link

Snoomy commented May 18, 2021

@linanw thank for a fix! but let me kindly draw your attention to a typo in your post (not in your commit):
callback(null, !!!->`<-!!! name ?? '');

@Faisalthe01
Copy link

Created a fix pull request: lprhodes/homebridge-platform-helper#9
Meanwhile, you may replace the line of code in you local file.
/homebridge/node_modules/homebridge-broadlink-rm/node_modules/homebridge-platform-helper/dist/serviceManager.js

if (log) { log(`${name} getName: ${name}`); }
callback(null,` name ?? '');

image

I cannot seem to find the file. There is no dist folder. Can you help?

@carys-cc
Copy link

Is this actually going to be fixed? It generated a 20GB worth of error logs in homebridge until I noticed this was happening. Congrats, this is horrible.

@SzilagyiR
Copy link

Hi!

Both code is dropoing me erros on startup, can somebody help me?

callback(null,` name ?? '');
callback(null, name ?? '');

@Mattserati
Copy link

Bumping this issue, as it seems to remain unresolved.
Is the developer still supporting the plugin, or does anyone have a workaround that doesn't require a doctorate in coding?

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

10 participants