getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
39.18k stars 4.2k forks source link

Error processing 'post_process' on 'MailProcessor': 'int' object has no attribute 'upper' #855

Closed masterkain closed 11 years ago

masterkain commented 11 years ago
Error processing 'post_process' on 'MailProcessor': 'int' object has no attribute 'upper'

Stacktrace (most recent call last):

  File "sentry/utils/safe.py", line 16, in safe_execute
    result = func(*args, **kwargs)
  File "sentry/plugins/bases/notify.py", line 189, in post_process
    self.notify_users(group, event)
  File "sentry/plugins/sentry_mail/models.py", line 150, in notify_users
    subject = '[%s] %s: %s' % (project.name.encode('utf-8'), event.get_level_display().upper().encode('utf-8'),
heynemann commented 11 years ago

Can you please say what version of Sentry are you using? This is a very weird error since get_level_display should not return an integer at all.

dcramer commented 11 years ago

I fixed this in master, and it was due to a point where we were not fully validating log levels.

We now fully validate them (and drop the value if its incorrect) in GroupManager.normalize_data