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

Plugin failure: TypeError: Cannot read property 'temp' of undefined #6

Open
Herlix opened this issue Apr 19, 2021 · 4 comments
Open
Labels
bug Something isn't working

Comments

@Herlix
Copy link

Herlix commented Apr 19, 2021

Describe The Bug:
Getting error logs in the homebridge panel and I am unable to control the device.
Device: Electrolux PureA9 PA91-404GY

To Reproduce:
Added login information and it has worked for long enough to add the device, but it fails on every polling interval.

Expected behavior:
No error logs and working connectivity.

Logs:

[19/04/2021, 08:15:04] [ElectroluxWellbeing] Could not fetch appliances data
(node:28217) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'temp' of undefined
    at /usr/lib/node_modules/homebridge-electrolux-wellbeing/src/index.ts:185:72
    at Array.map (<anonymous>)
    at ElectroluxWellbeingPlatform.updateValues (/usr/lib/node_modules/homebridge-electrolux-wellbeing/src/index.ts:179:22)
    at ElectroluxWellbeingPlatform.checkAppliances (/usr/lib/node_modules/homebridge-electrolux-wellbeing/src/index.ts:101:10)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:28217) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 41651)

(node:28217) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 41651)

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.
 {
            "username": "[email protected]",
            "password": "the_pass_word",
            "pollTime": 30,
            "platform": "ElectroluxWellbeing"
}

Screenshots:

Environment:

  • Plugin Version: v0.1.0
  • Homebridge Version: v1.3.4
  • Node.js Version: v14.16.1
  • NPM Version: v6.14.12
  • Operating System: Raspbian
@Herlix Herlix added the bug Something isn't working label Apr 19, 2021
@Herlix
Copy link
Author

Herlix commented Sep 1, 2021

No update here?

Might be that my unit is not tested.

A check might be needed for values, setting a default before handing the result to HB.

Characteristic.CurrentAmbientLightLevel,

@mhuiskes
Copy link

Any update on this?

@tomsinclair94
Copy link

Anyone have any fix for this? The plugin was working fine for a while and now this issue is affecting me and causing homebridge to restart every minute

@davidjbradshaw
Copy link

I’ve been seeing issues like this, it seems to be that the remote server logs you out after a while and then the plugin fails, rather than logs back in.

I’ve just tried to see if I can get it to relogions when this happens, but it’s slow to test changes, as I have to wait for the connection to timeout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants