You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When message content is UTF-8 encoded an uncatched exception is raised and the mail notification is not sent. As an example:
./notify_by_email.py -n service -S localhost -r test@localhost -f html -c "PROBLEM,,localhost,,127.0.0.1,,Mon 02 Nov 11:20:09 UTC 2015" -o "Services,,CRITICAL,,CRITICAL - 'Frédéric',,48h 05m 58s"
Traceback (most recent call last):
File "/var/lib/shinken/libexec/notify_by_email.py", line 370, in <module>
mail = create_html_message(mail)
File "/var/lib/shinken/libexec/notify_by_email.py", line 228, in create_html_message
html_msg = html_content.encode(sys.stdout.encoding)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1783: ordinal not in range(128)
The text was updated successfully, but these errors were encountered:
mohierf
added a commit
to mohierf/shinken
that referenced
this issue
Nov 3, 2015
When message content is UTF-8 encoded an uncatched exception is raised and the mail notification is not sent. As an example:
The text was updated successfully, but these errors were encountered: