rand256 / valetudo

Valetudo RE - experimental vacuum software, cloud free
Apache License 2.0
667 stars 73 forks source link

After update to 0.9.8.2 "Cannot GET /api/get_config" and no more then 5 zones #321

Closed z7y8hsBP closed 3 years ago

z7y8hsBP commented 3 years ago

I've updated from 0.9.4 to 0.9.8.2 and afterwards the webinterface shows the error "Cannot GET /api/get_config" and I (still) cannot add more then 5 zones (tried by selecting pre-configured zones).

The rest is working (thanks!).

Steps to reproduce the behavior:

Expected behavior

Screenshots

Vacuum Model: S55 / Firmware 002008

Valetudo Version: 0.9.8.2

User-Agent

Additional context

rand256 commented 3 years ago

When you update device's firmware, you still keep an old version of web interface open (or cached) in your browser. In most cases this is the main reason for what you've described. You need to drop that cache. Though by default that should happen automatically - I've never experienced that myself.

In details:

  1. /api/get_config is no more there in the latest build, so new web interface doesn't use it anymore;
  2. 5 zones limit was hardcoded in the web interface, so if you see it, you are using the old web interface's files/scripts.
z7y8hsBP commented 3 years ago

Thanks. It actually was the webcache - I didnt think of that because I had the same errors in different browsers and machines. Sorry for bothering you...