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

broadlink control crashes with SP3 devices #52

Open
vladtsit opened this issue Aug 9, 2020 · 2 comments
Open

broadlink control crashes with SP3 devices #52

vladtsit opened this issue Aug 9, 2020 · 2 comments

Comments

@vladtsit
Copy link

vladtsit commented Aug 9, 2020

Hi!

I have several SP3 devices that worked properly. After long time I decided to update boradlink-control and as result node-red periodically (2-3 time a day) crashes with following log:
9 Aug 14:47:04 - [red] Uncaught Exception:
9 Aug 14:47:04 - Error: error:0606508A:digital envelope routines:EVP_DecryptFinal_ex:data not multiple of block length
at Decipheriv.final (internal/crypto/cipher.js:164:28)
at Socket.Device.cs.on (c:\Users\vladtsit.node-red\node_modules\node-red-contrib-broadlink-control\nodes\Device.js:33:31)
at Socket.emit (events.js:198:13)
at Socket.EventEmitter.emit (domain.js:448:20)
at UDP.onMessage [as onmessage] (dgram.js:628:8)

How I can correct it?
regards,
Vladimir

@mlfunston
Copy link
Owner

Did you manage to fix this?

As far as I can see, this is a problem with the data encrypted in the stream sent from the unit that is the wrong length? Perhaps an issue with one of the units maybe?

@vladtsit
Copy link
Author

I was not able to manage the problem. Just decided to temporary remove SP3 devices. May be one of 4 devices sporadically send wrong data but it is very difficult to debug because it happens rarely. Could you please just catch and ignore such error? At least it will not stop node-red.

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