Opened 19 years ago

Closed 19 years ago

#1595 closed defect (invalid)

Missing template error reports as SMTPHeloError

Reported by: internicked@… Owned by: Adrian Holovaty
Component: Core (Other) Version:
Severity: major Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

It seems that with the .91 SVN version I'm using, pretty much any error is returned as an SMTPHelo Error. Specifically:

Traceback (most recent call last):

  File "C:\Python24\lib\site-packages\django\core\servers\basehttp.py", line 272, in run
    self.result = application(self.environ, self.start_response)

  File "C:\Python24\lib\site-packages\django\core\servers\basehttp.py", line 615, in __call__
    return self.application(environ, start_response)

  File "C:\Python24\lib\site-packages\django\core\handlers\wsgi.py", line 159, in __call__
    response = self.get_response(request.path, request)

  File "C:\Python24\lib\site-packages\django\core\handlers\base.py", line 103, in get_response
    mail_admins(subject, message, fail_silently=True)

  File "C:\Python24\lib\site-packages\django\core\mail.py", line 57, in mail_admins
    send_mail(EMAIL_SUBJECT_PREFIX + subject, message, SERVER_EMAIL, [a[1] for a in ADMINS], fail_silently)

  File "C:\Python24\lib\site-packages\django\core\mail.py", line 22, in send_mail
    return send_mass_mail([[subject, message, from_email, recipient_list]], fail_silently, auth_user, auth_password)

  File "C:\Python24\lib\site-packages\django\core\mail.py", line 49, in send_mass_mail
    server.sendmail(from_email, recipient_list, msg.as_string())

  File "C:\Python24\lib\smtplib.py", line 664, in sendmail
    raise SMTPHeloError(code, resp)

SMTPHeloError: (501, '5.5.4 Invalid Address')

This gets reported back to the browser.

The most confusing of which is when a template file is missing, it reports this error! I also saw it when I forgot to put a "pass" statement in one of my empty functions in my view file.

Maybe it's because I don't have SMTP set up on my Windows box, and it's trying to report an error to me via email? I'm not sure if this is a function of the latest release or being on windows, or just being in testing mode, but it's a really confusing error to get.

Change History (1)

comment:1 by Adrian Holovaty, 19 years ago

Resolution: invalid
Status: newclosed

Yeah, it's trying to report an error to you via e-mail. Change your DEBUG setting to True, and it won't attempt to report that error.

Note: See TracTickets for help on using tickets.
Back to Top