You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@allura.apache.org by Kenton Taylor <kt...@slashdotmedia.com> on 2019/06/04 20:07:22 UTC

[allura:tickets] #8289 Parse error in allura.tasks.mail_tasks.route_email

Merged.


---

** [tickets:#8289] Parse error in allura.tasks.mail_tasks.route_email**

**Status:** review
**Milestone:** unreleased
**Created:** Tue May 28, 2019 03:26 PM UTC by Dave Brondsema
**Last Updated:** Thu May 30, 2019 06:24 PM UTC
**Owner:** Dave Brondsema


```
Traceback (most recent call last):
  File "/var/local/allura/Allura/allura/tasks/mail_tasks.py", line 64, in route_email
    msg = mail_util.parse_message(data)
  File "/var/local/allura/Allura/allura/lib/mail_util.py", line 159, in parse_message
    result['payload'] = result['payload'].decode(charset)
  File "/var/local/env-allura/lib64/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 289-367: ordinal not in range(128)
```

Also this error can occur, would be nice to avoid even though its being handled:

```
03:30:18,297 ERROR [taskd:allura.tasks.mail_tasks.route_email:5cecab48e8ba7c205771f9d2:allura.lib.spam] Error calling exceptionless(check)(args=(u'Thanks for your reply. The problem came from.......
.......
.......
Traceback (most recent call last):
  File "/var/local/allura/Allura/allura/lib/helpers.py", line 1064, in inner
    return fun(*args, **kwargs)
  File "/var/local/allura/Allura/allura/lib/spam/stopforumspamfilter.py", line 60, in check
    ip_int = int(ipaddress.ip_address(unicode(ip)))
  File "/var/local/env-allura/lib/python2.7/site-packages/ipaddress-1.0.22-py2.7.egg/ipaddress.py", line 168, in ip_address
    address)
ValueError: u'None' does not appear to be an IPv4 or IPv6 address
```


---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.