Investigate error log
2021-06-04 16:16:28,006 DEBUG root I'm the <notifications_consumer.processors.email.processor.EmailProcessor object at 0x7fbd0f83a5f8> and i'm reading the message
2021-06-04 16:16:28,007 DEBUG root {'channel_id': '60356b73-36bd-4a0f-92df-33a413edcba2', 'channel_name': 'LHCb general notifications', 'message_body': '<p>Dear LHCb users,</p>\n\n<p>I was re-organising the tree structure of the INDICO categories and during this process I discovered that the visibilty of each event was not homogenous and as consequence, some events were not visible anymore in the page : https://indico.cern.ch/category/6734/overview?period=week</p>\n\n<p>I have tried to put back the visibility flag but I would like that you check that for your meeting it is OK. If not please send me a mail with the events affected.</p>\n\n<p>Sorry for the inconvenience.</p>\n\n<p>Regards.</p>\n\n<p>Joel.</p>\n', 'summary': 'Re-organisation of INDICO categories (view issue)', 'link': None, 'img_url': None, 'email': None}
2021-06-04 16:16:28,008 DEBUG root I'm the <notifications_consumer.processors.email.processor.EmailProcessor object at 0x7fbd0f83a5f8> and i'm consuming with {'channel_id': '60356b73-36bd-4a0f-92df-33a413edcba2', 'channel_name': 'LHCb general notifications', 'message_body': '<p>Dear LHCb users,</p>\n\n<p>I was re-organising the tree structure of the INDICO categories and during this process I discovered that the visibilty of each event was not homogenous and as consequence, some events were not visible anymore in the page : https://indico.cern.ch/category/6734/overview?period=week</p>\n\n<p>I have tried to put back the visibility flag but I would like that you check that for your meeting it is OK. If not please send me a mail with the events affected.</p>\n\n<p>Sorry for the inconvenience.</p>\n\n<p>Regards.</p>\n\n<p>Joel.</p>\n', 'summary': 'Re-organisation of INDICO categories (view issue)', 'link': None, 'img_url': None, 'email': None, 'headers': {'content-length': '795', 'expires': '1622816247968', 'scheduledJobId': 'ID:mb113.cern.ch-20230-1615566864448-3:1580217:-1:1:45', 'destination': '/queue/np.email', 'JMSXUserID': 'notifp', 'subscription': '1', 'priority': '4', 'redelivered': 'true', 'message-id': 'ID:mb113.cern.ch-20230-1615566864448-3:1580217:-1:1:1', 'redeliveryDelay': '30000', 'persistent': 'true', 'timestamp': '1622816188002'}, 'config': <class 'notifications_consumer.config.ProductionConfig'>}
2021-06-04 16:16:28,008 ERROR root An exception happened while processing the message
Traceback (most recent call last):
File "/opt/notifications_consumer/consumer.py", line 43, in on_message
self.processor.process(**self.processor.read_message(json.loads(message)), headers=headers, **self.kwargs)
File "/opt/notifications_consumer/processors/email/processor.py", line 52, in process
context,
File "/opt/notifications_consumer/processors/email/utils.py", line 31, in create_email
context["unsubscribe_blob"] = aes.encrypt(recipient_emails[0])
File "/opt/notifications_consumer/processors/email/aescipher.py", line 27, in encrypt
raise NameError("No value given to encrypt")
NameError: No value given to encrypt
2021-06-04 16:16:28,008 ERROR root An exception happened while processing the message
Traceback (most recent call last):
File "/opt/notifications_consumer/consumer.py", line 43, in on_message
self.processor.process(**self.processor.read_message(json.loads(message)), headers=headers, **self.kwargs)
File "/opt/notifications_consumer/processors/email/processor.py", line 52, in process
context,
File "/opt/notifications_consumer/processors/email/utils.py", line 31, in create_email
context["unsubscribe_blob"] = aes.encrypt(recipient_emails[0])
File "/opt/notifications_consumer/processors/email/aescipher.py", line 27, in encrypt
raise NameError("No value given to encrypt")
NameError: No value given to encrypt
Edited by Carina Antunes