samemory / homebridge-eufy-security

Work in progress
Apache License 2.0
97 stars 14 forks source link

[Bug]: RangeError: Maximum call stack size exceeded #349

Closed Dulox24 closed 2 years ago

Dulox24 commented 2 years ago

What happened?

I tried to add my Eufy Homebase + Doorbell to this plugin. When I login with a guest account (or original account) I don't see any devices. Not in the latest version and not in the Beta version (Country is set to "NL").

debug in the beta version shows:

[2/7/2022, 10:14:11 PM] [EufySecurity-1.1.1-beta.18] DEBUG: discoveringDevices Exception in PromiseRejectCallback: /usr/local/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/build/http/api.js:224 return types_1.AuthResult.OK;

RangeError: Maximum call stack size exceeded Exception in PromiseRejectCallback: /usr/local/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/build/http/api.js:440 switch (await this.authenticate()) { ^

RangeError: Maximum call stack size exceeded

Anything I could to to see my devices ? Homebridge version v1.4.0

Device Type

Doorbell (Supported)

Plugin Version

beta (Best Effort)

HomeBridge Version

other (UnSupported)

NodeJS Version

v16 (Supported)

Operating System

Raspbian 10+ (Supported)

Relevant log output

[2/7/2022, 10:14:11 PM] [EufySecurity-1.1.1-beta.18] INFO:  enableDetailedLogging on
[2/7/2022, 10:14:11 PM] [EufySecurity-1.1.1-beta.18] INFO:  Country set: NL
[2/7/2022, 10:14:11 PM] [EufySecurity-1.1.1-beta.18] INFO:  Finished initializing Eufy Security Platform
[2/7/2022, 10:14:11 PM] [EufySecurity-1.1.1-beta.18] DEBUG: discoveringDevices
Exception in PromiseRejectCallback:
/usr/local/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/build/http/api.js:224
        return types_1.AuthResult.OK;

RangeError: Maximum call stack size exceeded
Exception in PromiseRejectCallback:
/usr/local/lib/node_modules/homebridge-eufy-security/node_modules/eufy-security-client/build/http/api.js:440
            switch (await this.authenticate()) {
                               ^

RangeError: Maximum call stack size exceeded
github-actions[bot] commented 2 years ago

Did you check this Common Issues pages ?

schliemann commented 2 years ago

Unsure. Seems to originate from the client library.