3943: Email failing to send

msunde
david
david
Aug. 17, 2015
What version are you running?
2.0.18

What's the URL of the page containing the problem?
http://XXXX/api/review-requests/3245/reviews/

What steps will reproduce the problem?
1. Update a review request so that an email needs to be sent. The problem is not happening on all review requests.
2.
3.

What is the expected output? What do you see instead?
No errors and email sent

What operating system are you using? What browser?
Amazon linux latest version for the server. We have people around the world attempting to use the system and I think it is related to the local configured on their OS. The people in north america have did not see these types of issues.

Please provide any additional information below.

2015-08-06 06:20:28,036 - ERROR -  - Exception thrown for user XXXX at http://XXXX/api/review-requests/3245/reviews/

'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/views/decorators/cache.py", line 52, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/views/decorators/vary.py", line 19, in inner_func
    response = func(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/Djblets-0.8.21-py2.6.egg/djblets/webapi/resources.py", line 497, in __call__
    request, method, view, api_format=api_format, *args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/Djblets-0.8.21-py2.6.egg/djblets/webapi/resources.py", line 568, in call_method_view
    return view(request, *args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/Djblets-0.8.21-py2.6.egg/djblets/webapi/resources.py", line 750, in post
    return self.create(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/Djblets-0.8.21-py2.6.egg/djblets/webapi/decorators.py", line 117, in _call
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/ReviewBoard-2.0.18-py2.6.egg/reviewboard/webapi/decorators.py", line 110, in _check
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/Djblets-0.8.21-py2.6.egg/djblets/webapi/decorators.py", line 117, in _call
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/Djblets-0.8.21-py2.6.egg/djblets/webapi/decorators.py", line 138, in _checklogin
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/Djblets-0.8.21-py2.6.egg/djblets/webapi/decorators.py", line 117, in _call
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/Djblets-0.8.21-py2.6.egg/djblets/webapi/decorators.py", line 117, in _call
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/Djblets-0.8.21-py2.6.egg/djblets/webapi/decorators.py", line 287, in _validate
    return view_func(*args, **new_kwargs)
  File "/usr/local/lib/python2.6/site-packages/ReviewBoard-2.0.18-py2.6.egg/reviewboard/webapi/resources/base_review.py", line 222, in create
    result = self._update_review(request, review, *args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/ReviewBoard-2.0.18-py2.6.egg/reviewboard/webapi/resources/base_review.py", line 301, in _update_review
    review.publish(user=request.user)
  File "/usr/local/lib/python2.6/site-packages/ReviewBoard-2.0.18-py2.6.egg/reviewboard/reviews/models/review.py", line 244, in publish
    user=user, review=self)
  File "/usr/local/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/dispatch/dispatcher.py", line 185, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/usr/local/lib/python2.6/site-packages/ReviewBoard-2.0.18-py2.6.egg/reviewboard/notifications/email.py", line 58, in review_published_cb
    mail_review(review)
  File "/usr/local/lib/python2.6/site-packages/ReviewBoard-2.0.18-py2.6.egg/reviewboard/notifications/email.py", line 415, in mail_review
    review_request.summary),
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
david
#1 david
  • +PendingReview
  • +Component-EMail
    +Project-ReviewBoard
  • +david
david
#2 david
Fixed in release-2.0.x (027fd15). This will ship in 2.0.19. Thanks!
  • -PendingReview
    +Fixed