valetudo: Cannot read property '0' of undefined

Hello,

I have the following issue when I am opening the Valetudo web inteface:

TypeError: Cannot read property '0' of undefined
    at /snapshot/Valetudo/lib/miio/Vacuum.js:674:31
    at Object.resultHandler [as callback] (/snapshot/Valetudo/lib/miio/Vacuum.js:125:17)
    at Socket.<anonymous> (/snapshot/Valetudo/lib/miio/Vacuum.js:49:62)
    at Socket.emit (events.js:182:13)
    at UDP.onMessage [as onmessage] (dgram.js:673:8)
Loading configuration file: /mnt/data/valetudo/config.json
Dummycloud is spoofing 203.0.113.1:8053 on 127.0.0.1:8053
Webserver running on port 80
Connected successfully to mqtt server

The web inteface shows “Connection error” popup.

Roborock S50, Valetudo Beta 0.4.0, 1886 version with root. The basic information such as firmware version etc. is available on the web interface but thats all.

Could you help me please?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 22 (11 by maintainers)

Most upvoted comments

Could you help me what am I doing wrong?

You are copying the wrong error message as what you’ve copied can’t be applied to 0.8.2 or previous RE versions because of wrong line numbers. If you’re sure you copied correct error message then your binary file is broken, try downloading it again or use different PC/device for downloading.

This sounds equal to this issue https://github.com/Hypfer/Valetudo/issues/423#issue-559125940 … oh, wait a second … 😉

Line 674 in Vacuum.js belongs to Vacuum.prototype.savePersistentData function, which doesn’t run on opening the Valetudo web inteface. Thus I assume you’re not using 0.8.2 version.