AttributeError: 'tuple' object has no attribute 'encode' when sending mail

Bug #1775399 reported by Paul Everitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL4
New
Low
Carlos de la Guardia

Bug Description

Error while sending mail from to <email address hidden>.

Traceback (most recent call last):
  File "/srv/osfkarl/.buildout/eggs/cp27mu/repoze.sendmail-4.2+agendaless.8-py2.7.egg/repoze/sendmail/queue.py", line 232, in _send_message
    self.mailer.send(fromaddr, toaddrs, message)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/repoze.sendmail-4.2+agendaless.8-py2.7.egg/repoze/sendmail/mailer.py", line 71, in send
    message = encode_message(message)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/repoze.sendmail-4.2+agendaless.8-py2.7.egg/repoze/sendmail/encoding.py", line 102, in encode_message
    cleanup_message(message)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/repoze.sendmail-4.2+agendaless.8-py2.7.egg/repoze/sendmail/encoding.py", line 80, in cleanup_message
    cleanup_message(part)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/repoze.sendmail-4.2+agendaless.8-py2.7.egg/repoze/sendmail/encoding.py", line 57, in cleanup_message
    best, encoded = best_charset(param_value)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/repoze.sendmail-4.2+agendaless.8-py2.7.egg/repoze/sendmail/encoding.py", line 126, in best_charset
    encoded = text.encode(charset)
AttributeError: 'tuple' object has no attribute 'encode'

Revision history for this message
Paul Everitt (paul-agendaless) wrote :

We have a couple of these in the error log.

Revision history for this message
Paul Everitt (paul-agendaless) wrote :

This one generated multiple alerts per day...there is a message queued up on osfkarl10 trying to go out.

To shut up Nagios, I moved that message to osfkarl12:~/tmp/

Revision history for this message
Carlos de la Guardia (cguardia) wrote :

Sorry, busy week. Will be able to look at this and other bugs tomorrow.

Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Per the comment, the message causing this was moved to osfkarl12:~/tmp

Changed in karl4:
milestone: 044 → 045
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.