ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Error email account check enable outgoing


#1

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 22, in savedocs
doc.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 260, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 294, in _save
self.run_before_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 869, in run_before_save_methods
self.run_method(“validate”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 765, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1040, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1023, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 759, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 71, in validate
self.check_smtp()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 137, in check_smtp
server.sess
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/smtp.py”, line 194, in sess
ret = self._sess.login((self.login or “”), (self.password or “”))
File “/usr/lib/python2.7/smtplib.py”, line 608, in login
(code, resp) = self.docmd(encode_cram_md5(resp, user, password))
File “/usr/lib/python2.7/smtplib.py”, line 572, in encode_cram_md5
response = user + " " + hmac.HMAC(password, challenge).hexdigest()
File “/usr/lib/python2.7/hmac.py”, line 75, in init
self.outer.update(key.translate(trans_5C))
TypeError: character mapping must return integer, None or unicode


#2

I believe it is a bug according to https://bugs.python.org/issue5285
My Locale in my ubuntu machine is EL (Greek). I can send emails through my gmail account but that’s not my corporate email. If I try to do it with my corporate smtp there is a timout and the above message when I try to save the account. HELPPPPP!


#3

Am currently experiencing this error. Has anyone been able to solve it?


#4

Here’s Mine

    Traceback (most recent call last):
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs
    doc.save()
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/model/document.py", line 260, in save
    return self._save(*args, **kwargs)
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/model/document.py", line 294, in _save
    self.run_before_save_methods()
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/model/document.py", line 869, in run_before_save_methods
    self.run_method("validate")
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/model/document.py", line 765, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/model/document.py", line 1040, in composer
    return composed(self, method, *args, **kwargs)
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/model/document.py", line 1023, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/model/document.py", line 759, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 71, in validate
    self.check_smtp()
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 137, in check_smtp
    server.sess
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/email/smtp.py", line 210, in sess
    ret = self._sess.login((self.login or ""), (self.password or ""))
  File "/usr/lib/python2.7/smtplib.py", line 607, in login
    (code, resp) = self.docmd(encode_cram_md5(resp, user, password))
  File "/usr/lib/python2.7/smtplib.py", line 571, in encode_cram_md5
    response = user + " " + hmac.HMAC(password, challenge).hexdigest()
  File "/usr/lib/python2.7/hmac.py", line 75, in __init__
    self.outer.update(key.translate(trans_5C))
TypeError: character mapping must return integer, None or unicode

Traceback (most recent call last):
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/app.py", line 62, in application
    response = frappe.handler.handle()
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/handler.py", line 22, in handle
    data = execute_cmd(cmd)
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/handler.py", line 55, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/__init__.py", line 942, in call
    return fn(*args, **newargs)
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs
    doc.save()
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/model/document.py", line 260, in save
    return self._save(*args, **kwargs)
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/model/document.py", line 294, in _save
    self.run_before_save_methods()
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/model/document.py", line 869, in run_before_save_methods
    self.run_method("validate")
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/model/document.py", line 765, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/model/document.py", line 1040, in composer
    return composed(self, method, *args, **kwargs)
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/model/document.py", line 1023, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/model/document.py", line 759, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 71, in validate
    self.check_smtp()
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 137, in check_smtp
    server.sess
  File "/opt/bench-repo/frappe-bench/apps/frappe/frappe/email/smtp.py", line 210, in sess
    ret = self._sess.login((self.login or ""), (self.password or ""))
  File "/usr/lib/python2.7/smtplib.py", line 607, in login
    (code, resp) = self.docmd(encode_cram_md5(resp, user, password))
  File "/usr/lib/python2.7/smtplib.py", line 571, in encode_cram_md5
    response = user + " " + hmac.HMAC(password, challenge).hexdigest()
  File "/usr/lib/python2.7/hmac.py", line 75, in __init__
    self.outer.update(key.translate(trans_5C))
TypeError: character mapping must return integer, None or unicode

#5

I am having this error too.


#6

Facing the same issue!
Any solution to this?