2226: Exception thrown for user at http://gitdepot:8088/api/json/reviewrequests/2339/publish/

prabhat.********@gmai***** (Google Code) (Is this you? Claim this profile.)
Sept. 6, 2011
What version are you running?
1.5.4

What's the URL of the page containing the problem?
Not Accessible publically

What steps will reproduce the problem?
1.Create a new review.
2.Fill in the fields.  Diff is ok.
3.Receive json/django error on publish:
"TypeError: character mapping must return integer, None or unicode"

What is the expected output? What do you see instead?
Expected: publish review
Observed: Server 500 error

What operating system are you using? What browser?
RHEL-5.4
Firefox

Please provide any additional information below.

'ascii' codec can't encode character u'\u2014' in position 175: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Django-1.2.5-py2.4.egg/django/core/handlers/base.py", line 100, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.4/site-packages/Django-1.2.5-py2.4.egg/django/views/decorators/cache.py", line 78, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.5.4-py2.4.egg/reviewboard/webapi/decorators.py", line 61, in _view
    response = view_func(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/Djblets-0.6.7-py2.4.egg/djblets/webapi/decorators.py", line 88, in _checklogin
    return view_func(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.5.4-py2.4.egg/reviewboard/webapi/json.py", line 454, in review_request_publish
    review_request.publish(request.user)
  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.5.4-py2.4.egg/reviewboard/reviews/models.py", line 519, in publish
    changes = draft.publish(self, send_notification=False)
  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.5.4-py2.4.egg/reviewboard/reviews/models.py", line 838, in publish
    os.system(xbug_upd_cmd)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2014' in position 175: ordinal not in range(128)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>TT:AU disable/Enable—Warning Message | Review Request | Review Board</title>
  <script type="text/javascript">
    var AJAX_SERIAL = "1298649203";
    var MEDIA_SERIAL = "1298890409";
    var MEDIA_URL = "/media/";
    var SITE_ROOT = "/";
    var LOGGED_IN = true;
  /*
   * Initial state from the server. These should all be thought of as
   * constants, not state.
   */
  var gBugTrackerURL = "https://tejbugzilla.india.tejasnetworks.com/bugzilla/esw/show_bug.cgi?id=%s";
  var gReviewRequestPath = '/r/2339/';
  var gReviewRequestId = "2339";
  var gReviewRequestSummary = "";
  var gReviewPending = false;
  var gEditable = true;
  var gUserURL = "/users/admin/";
  var gUserAuthenticated = true;
  var gUserFullName = "ReviewBoard Adminstrator";
  </script>
  <link
david
#1 david
"xbug_upd_cmd" seems to be a customization on your server. You'll need to talk to your server administrator about this.
  • +ThirdParty