nurikk / zigbee2mqtt-frontend

Zigbee2MQTT frontend
https://www.zigbee2mqtt.io/
GNU General Public License v3.0
263 stars 187 forks source link

Request 'zigbee2mqtt/bridge/request/backup' failed with error: 'Invalid string length' #2108

Open vn28a opened 3 months ago

vn28a commented 3 months ago

What happened?

If I try to backup my z2m configuration with request z2m backup, it fails with message "z2m: Request 'zigbee2mqtt/bridge/request/backup' failed with error: 'Invalid string length'"

What browsers are you seeing the problem on?

Chrome

Relevant stacktrace

**Current url**: http://192.168.1.193:8080/#/settings/settings
**Previous url**: http://192.168.1.193/

**Error type**: TypeError
**Error message**: Cannot convert undefined or null to object

TypeError: Cannot convert undefined or null to object
    at Function.entries (<anonymous>)
    at r (http://192.168.1.193:8080/assets/index-74e84a13.js:62:9430)
    at r (http://192.168.1.193:8080/assets/index-74e84a13.js:62:9492)
    at P6e (http://192.168.1.193:8080/assets/index-74e84a13.js:62:9532)
    at Se.onSettingsSave [as onSubmit] (http://192.168.1.193:8080/assets/index-3a8e477d.js:1:8632)
    at e.<anonymous> (http://192.168.1.193:8080/assets/bootstrap-5.esm-672cb437.js:11:47737)
    at lD (http://192.168.1.193:8080/assets/index-74e84a13.js:41:9885)
    at zD (http://192.168.1.193:8080/assets/index-74e84a13.js:43:31876)
    at Q5 (http://192.168.1.193:8080/assets/index-74e84a13.js:43:31458)
    at Q5 (http://192.168.1.193:8080/assets/index-74e84a13.js:43:31368)

Did you download state.json.zip?

I will attach state.json.zip