5021: ASCII decode error retrieving DMARC record when attempting email notifs for review request publish
- New
- Review Board
ckerr | |
What version are you running?
6.0.2
What's the URL of the page containing the problem?
<url>/r/<rev-req-num>
What steps will reproduce the problem?
- Create a review request
- Add diffs
- Publish
What is the expected output? What do you see instead?
Expected to have the review request published straight way. Instead, a popup appears with the text:
"UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7622: ordinal not in range(128)"
What operating system are you using? What browser?
Rocky Linux Version 9.0 (Blue Onyx)
Please provide any additional information below.
This issue only occurs when sending emails related to publishing review request changes (either creating the request, or updating). Emails are sent completely fine to the admin for other things.
I fixed this by adding the argument
encoding="utf-8"
to theresource_path.open()
call within get_dmarc_record().