bmartin5692/bumper

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

ri0t opened this issue · 1 comments

ri0t commented

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.. 🙃

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

Desktop (please complete the following information):

  • OS: Linux, i guess

Smartphone (please complete the following information):

  • OS: Android

Vacuum (please complete the following information):

  • Model: quite recent Deebot Osmo 950

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

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:

  • Which vacuum do you have?
  • Which android app do you use?
  • More information about your android version and phone

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