Error erpnext.projects.doctype.project.project.project_status_update_reminder

{‘event’: u’all’, ‘retry’: 0, ‘log’: <function log at 0x7fcdc0fb69b0>, ‘site’: u’xxx’, ‘job_name’: u’erpnext.projects.doctype.project.project.project_status_update_reminder’, ‘method_name’: u’erpnext.projects.doctype.project.project.project_status_update_reminder’, ‘method’: <function project_status_update_reminder at 0x7fcdc0f06c80>, ‘user’: u’Administrator’, ‘kwargs’: {}, ‘is_async’: True} Traceback (most recent call last): File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 103, in execute_job method(**kwargs) File “/home/frappe/frappe-bench/apps/erpnext/erpnext/projects/doctype/project/project.py”, line 436, in project_status_update_reminder daily_reminder() File “/home/frappe/frappe-bench/apps/erpnext/erpnext/projects/doctype/project/project.py”, line 446, in daily_reminder send_project_update_email_to_users(project.name) File “/home/frappe/frappe-bench/apps/erpnext/erpnext/projects/doctype/project/project.py”, line 511, in send_project_update_email_to_users reply_to=incoming_email_account File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 468, in sendmail inline_images=inline_images, header=header, print_letterhead=print_letterhead) File “/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py”, line 77, in send text_content = html2text(message) File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/html2text/init.py”, line 867, in html2text return h.handle(html) File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/html2text/init.py”, line 134, in handle self.feed(data) File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/html2text/init.py”, line 130, in feed data = data.replace(“</’ + 'script>”, “”) AttributeError: ‘NoneType’ object has no attribute ‘replace’

Please elaborate on the issue.

ERPNext: v11.1.36 (master)

Frappe Framework: v11.1.33 (master)

I have got a lot error logs with this error everyday.

Any help, please?

You perhaps have a project that has a null or ‘empty’ message?

No, but I have project names in Cyrillic.

You suspect that is the problem, what leads you to think that?

I have about 500+ Error logs per day, but I don’t know how to fix this. :frowning:

This seems to be a business problem with a lot of projects :wink:

Maybe divide and conquer your problem: If just some messages fail to send, what characterizes those that fail from those that do not.

I have just 10 projects.

I just used default settings for projects, no custom events.

To analyse and troubleshoot this what have you identified or attempted?

I’m not so good in frappe framework, what can I do for debug this issue?

Any ideas?

What you might do is setup a test environment and learn how to set a breakpoint, to see what the code is doing.

same here.

{‘method_name’: ‘erpnext.projects.doctype.project.project.project_status_update_reminder’, ‘log’: <function log at 0x7f2e9577bd08>, ‘retry’: 0, ‘is_async’: True, ‘user’: ‘Administrator’, ‘kwargs’: {}, ‘job_name’: ‘erpnext.projects.doctype.project.project.project_status_update_reminder’, ‘event’: ‘all’, ‘method’: <function project_status_update_reminder at 0x7f2e954d8ae8>, ‘site’: ‘www.example.com’}
Traceback (most recent call last):
File “/opt/bench/erpnext/apps/frappe/frappe/email/queue.py”, line 75, in send
text_content = html2text(message)
File “/opt/bench/erpnext/env/lib/python3.6/site-packages/html2text/init.py”, line 867, in html2text
return h.handle(html)
File “/opt/bench/erpnext/env/lib/python3.6/site-packages/html2text/init.py”, line 134, in handle
self.feed(data)
File “/opt/bench/erpnext/env/lib/python3.6/site-packages/html2text/init.py”, line 130, in feed
data = data.replace(“</’ + 'script>”, “”)
AttributeError: ‘NoneType’ object has no attribute ‘replace’