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

"TypeError: Cannot read properties of undefined (reading 'call')" #58

Open
bensteUEM opened this issue Jan 26, 2024 · 8 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@bensteUEM
Copy link

** Describe issue **
Starting from a few weeks ago i'm unable to send any commands to my s5max which worked for years :)

** Your flow here **
any inject - any action on the robot

** Screens / Logs **
"TypeError: Cannot read properties of undefined (reading 'call')"

** Hardware / Software **
  - raspberry 4
  - node-red-contrib-miio-roborock 2.3.4

@bensteUEM bensteUEM added the bug Something isn't working label Jan 26, 2024
@frogale
Copy link

frogale commented Mar 9, 2024

Same problem here.. Edit: Moved to Valetudo firmware and MQTT...

@eutervogel
Copy link

Yep, same here.

@eutervogel
Copy link

any progess on this?

@AlexPast
Copy link

AlexPast commented Jul 3, 2024

Restarting the nodered container solved this issue for me.

@sschuste
Copy link

The issue came out of the blue for me too. I then updated to version 2.4.0, but that didn't help either. Restarting the container: no. Yelling at the flow: no.

This worked: exporting the flow and then deleting it, uninstalling the palette, restarting Node Red, reinstalling the palette, importing the flow, recreating the scenes in HomeKit and a million other clicks and taps. Just works as if nothing had ever happened.

@andreypopov
Copy link
Owner

Could anyone provide log from node-red-log ?

@Amli2011
Copy link

Amli2011 commented Oct 13, 2024

13 Oct 10:01:25 - [error] [miio-roborock-command:ce92ce3b.da3848] TypeError: Cannot read property 'call' of undefined 13 Oct 10:01:25 - [error] [miio-roborock-command:ce92ce3b.da3848] TypeError: Cannot read property 'call' of undefined
This is what appears in my node-red-log when I press the inject node for the Start function. One line in the log for each activation of the insert node. The two nodes are unaltered from the example flow. But it is not a new install. This is on version 1.2.2 of the Roboroc node.

I will update to 2.5 now, and report back.

@Amli2011
Copy link

Amli2011 commented Oct 13, 2024

After updating the node-red-contrib-miio-roborock Node-Red will not start. node-red-log shows:

13 Oct 10:21:27 - [red] Uncaught Exception:
13 Oct 10:21:27 - [error] Error: addMembership EADDRINUSE
at Socket.addMembership (dgram.js:850:11)
at /home/pi/.node-red/node_modules/node-red-contrib-miio-roborock/node_modules/node-mihome/lib/protocol-aqara.js:48:26
at Array.forEach ()
at /home/pi/.node-red/node_modules/node-red-contrib-miio-roborock/node_modules/node-mihome/lib/protocol-aqara.js:46:26
at Array.forEach ()
at Socket. (/home/pi/.node-red/node_modules/node-red-contrib-miio-roborock/node_modules/node-mihome/lib/protocol-aqara.js:44:38)
at Socket.emit (events.js:412:35)
at startListening (dgram.js:172:10)
at dgram.js:364:7
at processTicksAndRejections (internal/process/task_queues.js:83:21)
nodered.service: Main process exited, code=exited, status=1/FAILURE

Removing the folder with node-red-contrib-miio-roborock (folder located in .node-red/node-modules/) lets me start the rest of the flows.

Other versions in use:

13 Oct 10:25:55 - [info] Node-RED version: v3.0.2
13 Oct 10:25:55 - [info] Node.js version: v14.21.3
13 Oct 10:25:55 - [info] Linux 6.1.21-v7+ arm LE

UPDATE:
Removing the folder let me start node-red, but not the flows because of missing nodes. Installing the 1.2.2 version with the commands:

cd .node-red/
cd node_modules/
npm i [email protected]

Give me the nodes back, and it is now working. My roborock now starts .

Still on old version, but that will be for another day...

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

7 participants