Sentry: SMTPDataError (550, 'maximum allowed line length is 998 octets, got 1802')

Created on 5 Mar 2018  Â·  16Comments  Â·  Source: getsentry/sentry

Today I got this report via mail. I dont know what I did wrong. The system is currently running only for me and I dont have any deployed productive systems running on it. (Just one small test project, which isnt running in production mode, meaning its only running when I test stuff with it)

SMTPDataError: (550, 'maximum allowed line length is 998 octets, got 1802')
  File "celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "celery/app/trace.py", line 438, in __protected_call__
    return self.run(*args, **kwargs)
  File "sentry/tasks/base.py", line 54, in _wrapped
    result = func(*args, **kwargs)
  File "sentry/tasks/reports.py", line 736, in deliver_organization_user_report
    message.send()
  File "sentry/utils/email.py", line 384, in send
    fail_silently=fail_silently,
  File "sentry/utils/email.py", line 416, in send_messages
    sent = connection.send_messages(messages)
  File "django/core/mail/backends/smtp.py", line 94, in send_messages
    sent = self._send(message)
  File "django/core/mail/backends/smtp.py", line 110, in _send
    self.connection.sendmail(from_email, recipients, message.as_bytes())
  File "python2.7/smtplib.py", line 752, in sendmail
    raise SMTPDataError(code, resp)

Additional information:


args | [1520208000, 604800, 1, 1]
-- | --
kwargs | {'dry_run': False}
sys.argv | ['/usr/local/bin/sentry', 'run', 'worker']
task | <@task: sentry.tasks.reports.deliver_organization_user_report of sentry:0x7f26dff8e890>
task_id | '6f6a0bf3-d4e4-4294-bb8a-cf007f4d4d36'


python | 2.7.14
-- | --
sentry | 8.22.0

TAGS
environment
production
level
error
server_name
90081ef478ac
site
example.com
transaction
sentry.tasks.reports.deliver_organization_user_report

I dont know why "example.com" comes up. I dont have any project where that URI comes up.

Sentry 8.22.0 runs in a docker environment.

Bug

Most helpful comment

I love the idea that closing an issue will just make it go away ^^ If only…

Okay you got me 😀

Researched this a bit and seems not too tricky to get fixed. Let's see if we can get to this before another year passes.

All 16 comments

+1, just got the same issue on my weekly report email.

+1, I have the same issue (weekly report email)

+1, same issue

+1 using Office365 SMTP servers so have no control over the server-side!

Right. My E-Mail Provider is Google. (G Suite to be precise)

+1, same issue with G-Suite

Issue also occurs for me without G-suite.

+1

Same here, Sentry 9.0.0 on-premise.

+1 Sentry 9.1.1

Same error, Sentry 9.1.1 with Exim. I can't change the SMTP config.

Can you please make the mailer RFC compliant? Thanks :)

Closing this issue due to staleness. Feel free to comment here if you think we should still work on this.

@BYK Obviously all of the people chiming in this issue wants this fixed...

Yes fixing issue is still relevant lol

I love the idea that closing an issue will just make it go away ^^ If only…

I love the idea that closing an issue will just make it go away ^^ If only…

Okay you got me 😀

Researched this a bit and seems not too tricky to get fixed. Let's see if we can get to this before another year passes.

Was this page helpful?
0 / 5 - 0 ratings