sitron / lst

3 stars 3 forks source link

Error 500 when fetching Jira #9

Open jeanmonod opened 11 years ago

jeanmonod commented 11 years ago
[dj]/Users/dj/Sites/vca|master>lstd sprint-burnup vca-13
Reading config
Sprint vca-13 found in config
Start fetching Zebra
No entries found in Zebra
End Zebra
Start fetching Jira
Traceback (most recent call last):
  File "/Users/dj/Sites/lst/lst/__init__.py", line 74, in <module>
    lst = Lst()
  File "/Users/dj/Sites/lst/lst/__init__.py", line 71, in __init__
    action.run(args)
  File "/Users/dj/Sites/lst/lst/commands.py", line 346, in run
    jira_xml_result = jira.get_data(jira_url)
  File "/Users/dj/Sites/lst/lst/remote.py", line 68, in get_data
    response = self._request(url)
  File "/Users/dj/Sites/lst/lst/remote.py", line 52, in _request
    response = opener.open(request)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/urllib2.py", line 400, in open
    response = self._open(req, data)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/urllib2.py", line 418, in _open
    '_open', req)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/urllib2.py", line 1215, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/urllib2.py", line 1174, in do_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/httplib.py", line 958, in request
    self._send_request(method, url, body, headers)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/httplib.py", line 992, in _send_request
    self.endheaders(body)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/httplib.py", line 954, in endheaders
    self._send_output(message_body)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/httplib.py", line 814, in _send_output
    self.send(msg)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/httplib.py", line 790, in send
    self.sock.sendall(data)
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/ssl.py", line 229, in sendall
    v = self.send(data[count:])
  File "/usr/local/Cellar/python/2.7.3/lib/python2.7/ssl.py", line 198, in send
    v = self._sslobj.write(data)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 131: ordinal not in range(128)

Should be more explicit

sitron commented 11 years ago

@jeanmonod thanks for reporting. Due to accented char in jira sprint name. To be fixed asap