[PulseGuardian] Handle auth failures gracefully

NEW
Unassigned

Status

P1
normal
4 years ago
3 years ago

People

(Reporter: mcote, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(firefox44 affected)

Details

(Reporter)

Description

4 years ago
At the moment we get unhelpful errors like this when there are auth-related failures.  This occurred when using a valid username and password but for an account without admin privileges:

2015-10-16T13:22:57.404924+00:00 app[worker.1]: 2015-10-16 13:22:57 - INFO: PulseGuardian started
2015-10-16T13:22:57.404940+00:00 app[worker.1]: PulseGuardian started
2015-10-16T13:22:57.809351+00:00 app[worker.1]: Traceback (most recent call last):
2015-10-16T13:22:57.809359+00:00 app[worker.1]:   File "pulseguardian/guardian.py", line 247, in <module>
2015-10-16T13:22:57.809416+00:00 app[worker.1]:     pulse_guardian.guard()
2015-10-16T13:22:57.809447+00:00 app[worker.1]:   File "pulseguardian/guardian.py", line 232, in guard
2015-10-16T13:22:57.809505+00:00 app[worker.1]:     self.clear_deleted_queues(queues)
2015-10-16T13:22:57.809524+00:00 app[worker.1]:   File "pulseguardian/guardian.py", line 54, in clear_deleted_queues
2015-10-16T13:22:57.809551+00:00 app[worker.1]:     alive_queues_names = set(q['name'] for q in queues)
2015-10-16T13:22:57.809566+00:00 app[worker.1]:   File "pulseguardian/guardian.py", line 54, in <genexpr>
2015-10-16T13:22:57.809592+00:00 app[worker.1]:     alive_queues_names = set(q['name'] for q in queues)
2015-10-16T13:22:57.809617+00:00 app[worker.1]: TypeError: string indices must be integers
(Reporter)

Updated

3 years ago
Depends on: 1225274
You need to log in before you can comment on or make changes to this bug.