Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • N notifications-consumer
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Notifications project
  • notifications-consumer
  • Issues
  • #49
Closed
Open
Created Jun 04, 2021 by Carina Antunes@crdeolivOwner

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

https://push-notifications-sentry.web.cern.ch/sentry/consumers/issues/243/?environment=production&referrer=alert_email

Edited Jun 04, 2021 by Carina Antunes
Assignee
Assign to
Time tracking