bmartin5692 / bumper

A standalone and self-hosted implementation of the central server used by Ecovacs vacuum robots.
GNU General Public License v3.0
273 stars 48 forks source link

When app tries to log in, a KeyError on bot["class"] is triggered #124

Open ri0t opened 2 years ago

ri0t commented 2 years ago

Describe the bug

When the app tries to log in and download data, an Exception is triggered and the process stops. The exception:

[2021-07-10 19:52:51,735] :: ERROR :: root :: 'class' Traceback (most recent call last): File "/home/riot/bumper/bumper/plugins/bumper_confserver_portal_appsvr.py", line 45, in handle_appsvr_app if bot["class"] != "": KeyError: 'class'

I added a print to at least shine a little light in there: The bot object consists only of this: {'nick': 'SaugBernd'}

To Reproduce Steps to reproduce the behavior:

Start with a completely new setup on a RPi1 that also acts as PiHole and a new Osmo950, that has been set up with the cloud service.

  1. Set up and sync with official servers
  2. Switch off clowncomputing via PiHole
  3. Reboot everything
  4. observe bot reporting in to bumper
  5. Start android app
  6. Wait until it stops with error
  7. Watch bumper error log
  8. See above error

Expected behavior No idea. Guess, getting control over the printer would be a nice thing.. :upside_down_face:

Screenshots Aah, i'd rather not. Useless..

Desktop (please complete the following information):

Smartphone (please complete the following information):

Vacuum (please complete the following information):

Additional context Getting there without docker on a RPi1 was quite a ride... :nauseated_face:

edenhaus commented 2 years ago

I would not use a RPiV1 for more then one job as it has only a single core and you are using it for PiHole and bumper. This can lead that you get timeout exceptions.

Please provide more information:

I can only say, that for me bumper works and also the iOS apps are connecting successfully. I don’t have a rooted Android, so I cannot test it on Android