Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error processing post_process() on "<class 'sentry.plugins.sentry_mail.MailProcessor'>": TypeError("object of type 'int' has no len()" #383

Closed
nonZero opened this issue Mar 15, 2012 · 4 comments

Comments

@nonZero
Copy link

nonZero commented Mar 15, 2012

On a fresh install of 3.5.7 from pypi on ubuntu, I get the following when capturing:

Error processing post_process() on "<class 'sentry.plugins.sentry_mail.MailProcessor'>": TypeError("object of type 'int' has no len()",)

Stacktrace (most recent call last):

  File "sentry/processors/base.py", line 24, in send_group_processors
    logger.exception('Error processing post_process() on %r: %s', inst.__class__, e)

  File "sentry/plugins/bases/notify.py", line 79, in post_process
    self.notify_users(group, event)

  File "sentry/plugins/sentry_mail/__init__.py", line 134, in notify_users
    fail_silently=fail_silently,

  File "sentry/plugins/sentry_mail/__init__.py", line 75, in _send_mail
    msg.send(fail_silently=fail_silently)

  File "django/core/mail/message.py", line 251, in send
    return self.get_connection(fail_silently).send_messages([self])

  File "django/core/mail/backends/smtp.py", line 92, in send_messages
    self._lock.release()

  File "django/core/mail/backends/smtp.py", line 101, in _send
    for addr in email_message.recipients()]

  File "django/core/mail/message.py", line 106, in sanitize_address
    nm = str(Header(nm, encoding))

  File "email/header.py", line 200, in __str__
    return self.encode()

  File "email/header.py", line 407, in encode
    newchunks += self._split(s, charset, targetlen, splitchars)

  File "email/header.py", line 292, in _split
    elen = charset.encoded_header_len(encoded)

  File "email/charset.py", line 345, in encoded_header_len
    return len(s)
@LaundroMat
Copy link

I have the exact same problem.

Additional Data:

filename    'base.py'
funcName    'send_group_processors'
lineno  24

Module Versions:

django  1.3.1
djcelery    2.5.1
kombu   2.1.1
kombu.transport.django  1.0.0
raven   1.4.6
sentry  3.5.7
south   0.7.3

@dcramer
Copy link
Member

dcramer commented Mar 20, 2012

It looks like recipients are empty but it doesnt realize it somehow. This might be fixed with the attached commit.

@dcramer
Copy link
Member

dcramer commented Mar 22, 2012

Please reopen if you see this issue again

@dcramer dcramer closed this as completed Mar 22, 2012
@LaundroMat
Copy link

It works - thanks!

@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants