-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
[Bug]: RangeError: Invalid key length #356
Comments
I need more debug information (debug logs) to identify the problem. |
darn, thought i added them. Created some new one, hope this helps, currently rolled back to previous version Sorry:/ judging by the serial, i think its the eufy floodlight |
Yes, it is:
I think I have found the reason. |
Nice. If you need access let me know or I can test it if needed
…On Tue, Sep 17, 2024, 17:36 bropat ***@***.***> wrote:
judging by the serial, i think its the eufy floodlight
Yes, it is:
2024-09-15 10:49:30.749 DEBUG eufy-security-ws:eufy-security-client [http] [Station.getCameraInfo] Station send get camera info command {
stationSN: 'T8424N1021291061'
}
node:internal/crypto/cipher:121
this[kHandle].initiv(cipher, credential, iv, authTagLength);
^
RangeError: Invalid key length
at Cipheriv.createCipherBase (node:internal/crypto/cipher:121:19)
at Cipheriv.createCipherWithIV (node:internal/crypto/cipher:140:3)
at new Cipheriv (node:internal/crypto/cipher:243:3)
at createCipheriv (node:crypto:147:10)
at encryptP2PData (/usr/src/app/node_modules/eufy-security-client/build/p2p/utils.js:90:48)
at buildIntStringCommandPayload (/usr/src/app/node_modules/eufy-security-client/build/p2p/utils.js:244:48)
at P2PClientProtocol._sendCommand (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:623:76)
at P2PClientProtocol.sendQueuedMessage (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:566:30)
at P2PClientProtocol.handleMsg (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:974:34)
at Socket.<anonymous> (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:124:56) {
code: 'ERR_CRYPTO_INVALID_KEYLEN'
}
I think I have found the reason.
—
Reply to this email directly, view it on GitHub
<#356 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZ4APOOKAB2J4IPKIQWZHTZXBEA7AVCNFSM6AAAAABNGXRP4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJWGI3TENZWG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I cannot reproduce this error... :( |
You still have rights.
To use the camera.The moment I upgrade from 1.8.x to 1.9. it crashes
indecently
…On Sat, Sep 28, 2024, 15:22 bropat ***@***.***> wrote:
@kvanbiesen <https://github.com/kvanbiesen>
I cannot reproduce this error... :(
—
Reply to this email directly, view it on GitHub
<#356 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZ4APOOYLBWFLWZZTEVRSTZY2UTHAVCNFSM6AAAAABNGXRP4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBQGYZTQNJQGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
What if you completely uninstall version 1.8.0 and then install version 1.9.0? |
Same error. Country is BE. Everything is is default
…On Sat, Sep 28, 2024, 20:29 bropat ***@***.***> wrote:
@kvanbiesen <https://github.com/kvanbiesen>
What if you completely uninstall version 1.8.0 and then install version
1.9.0?
—
Reply to this email directly, view it on GitHub
<#356 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZ4APLCSVN3JE5H66CFAP3ZY3YSBAVCNFSM6AAAAABNGXRP4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBQHA2TOOJYGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Can you try version |
yup, doesnt crash at startup. Seems to be fixed. have to test the rest of the deviced but i assume if it starts. They should be working Thanks @bropat |
Version
1.9.0
Node version
Node.js v20.15.1
Operating System type
Other
Operating system version
HAOS
Describe the bug
When starting addon, and the first dive who connect to it, it makes the server crash
To reproduce
Start plugin. Wait. crashes. Think its when a device connect to it.
Screenshots & Logfiles
2024-08-27 18:39:53.373 INFO eufy-security-ws:eufy-security-client [http] [Station.onConnect] Connected to station T8010P2322044049 on host 192.168.20.147 and port 14677
node:internal/crypto/cipher:121
this[kHandle].initiv(cipher, credential, iv, authTagLength);
^
RangeError: Invalid key length
at Cipheriv.createCipherBase (node:internal/crypto/cipher:121:19)
at Cipheriv.createCipherWithIV (node:internal/crypto/cipher:140:3)
at new Cipheriv (node:internal/crypto/cipher:243:3)
at createCipheriv (node:crypto:147:10)
at encryptP2PData (/usr/src/app/node_modules/eufy-security-client/build/p2p/utils.js:90:48)
at buildCommandWithStringTypePayload (/usr/src/app/node_modules/eufy-security-client/build/p2p/utils.js:298:48)
at P2PClientProtocol._sendCommand (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:633:81)
at P2PClientProtocol.sendQueuedMessage (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:566:30)
at P2PClientProtocol.handleMsg (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:974:34)
at Socket. (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:124:56) {
code: 'ERR_CRYPTO_INVALID_KEYLEN'
}
Additional context
No response
The text was updated successfully, but these errors were encountered: