websocket traceback with amqp headers

Description

2020-01-06 07:41:46,792 [32656] (ERROR) (asyncio): Exception in callback _BusEventService._on_msg_received(<asynqp.messa...x7f32ee60d3c8>)
handle: <Handle _BusEventService._on_msg_received(<asynqp.messa...x7f32ee60d3c8>)>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/lib/python3/dist-packages/wazo_websocketd/bus.py", line 157, in _on_msg_received
bus_event = _decode_bus_msg(bus_msg)
File "/usr/lib/python3/dist-packages/wazo_websocketd/bus.py", line 202, in _decode_bus_msg
if 'name' not in headers:
TypeError: argument of type 'NoneType' is not iterable

Zendesk Ticket IDs

None

Activity

Sylvain Boily January 6, 2020 at 1:48 PM

related to

Sylvain Boily January 6, 2020 at 1:00 PM

I’m receiving events like {'name': 'ExtensionStatus', 'origin_uuid': '624ac6e8-00df-4ad9-a5e8-8f50d6058632'} and None.

Done

Details

Priority

Assignee

Reporter

Fix versions

Sprint

Labels

Zendesk Support

Created January 6, 2020 at 12:49 PM
Updated January 13, 2020 at 7:45 PM
Resolved January 7, 2020 at 1:21 PM