Logged out, can't log back in #55

Closed
opened 2019-10-14 22:56:26 +02:00 by zombielinux · 1 comment
zombielinux commented 2019-10-14 22:56:26 +02:00 (Migrated from github.com)

Describe the bug
After a toddler hits the log-out button, I cannot log in.

To Reproduce
Steps to reproduce the behavior:

  1. Hand phone to toddler
  2. Gaze upon the "login" screen
  3. Attempt to log in with usual username/password
  4. See Log

Expected behavior
Login with view of robot

Actual Behavior
[2019-10-14 16:51:35,487] :: INFO :: confserver :: client with devid $HASH attempting login
[2019-10-14 16:51:38,566] :: ERROR :: confserver :: 'did'
Traceback (most recent call last):
File "/root/bumper/bumper/confserver.py", line 492, in _auth_any
bumper.user_add_bot(tmpuser["userid"], bot["did"])
KeyError: 'did'

Desktop (please complete the following information):

  • OS: [e.g. Linux/Mac/Windows]

Smartphone (please complete the following information):

  • Device: Nexus Ancient
  • OS: Android 5.1.1

Vacuum (please complete the following information):

  • Model: Deebot N79

Extra Info

Sucks cannot log in using any username/password combination.

**Describe the bug** After a toddler hits the log-out button, I cannot log in. **To Reproduce** Steps to reproduce the behavior: 1. Hand phone to toddler 2. Gaze upon the "login" screen 3. Attempt to log in with usual username/password 4. See Log **Expected behavior** Login with view of robot **Actual Behavior** ```[2019-10-14 16:51:35,487] :: INFO :: confserver :: client with devid $HASH attempting login``` ```[2019-10-14 16:51:38,566] :: ERROR :: confserver :: 'did'``` ```Traceback (most recent call last):``` ```File "/root/bumper/bumper/confserver.py", line 492, in _auth_any``` ``` bumper.user_add_bot(tmpuser["userid"], bot["did"])``` ```KeyError: 'did'``` **Desktop (please complete the following information):** - OS: [e.g. Linux/Mac/Windows] **Smartphone (please complete the following information):** - Device: Nexus Ancient - OS: Android 5.1.1 **Vacuum (please complete the following information):** - Model: Deebot N79 **Extra Info** Sucks cannot log in using any username/password combination.
bmartin5692 commented 2019-10-19 21:13:20 +02:00 (Migrated from github.com)

@zombielinux - Thanks for the laugh, I've been there with toddler bugs.

I wasn't quite able to reproduce this, and actually think your database may be corrupt. I think the best thing is to delete the bumper.db in your data directory then try again. I went ahead and put in a test and some better handling if a bot happens to end up in the database without a DID attribute. Hopefully that will catch and fail gracefully if this happens in the future. This change has been merged into the master, if you want to pull and try again.

@zombielinux - Thanks for the laugh, I've been there with toddler bugs. I wasn't quite able to reproduce this, and actually think your database may be corrupt. I think the best thing is to delete the bumper.db in your data directory then try again. I went ahead and put in a test and some better handling if a bot happens to end up in the database without a DID attribute. Hopefully that will catch and fail gracefully if this happens in the future. This change has been merged into the master, if you want to pull and try again.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: mia/bumper#55
No description provided.