← Back to team overview

python-jenkins-developers team mailing list archive

[Bug 1659322] Re: get_build_console_output fails with 0xa5 stirng in job output

 

The reason for this seems to be that it tries to decode the ANSI encoded log file as UTF-8.
Would be great having this fixed soon.

-- 
You received this bug notification because you are a member of Python
Jenkins Developers, which is subscribed to Python Jenkins.
https://bugs.launchpad.net/bugs/1659322

Title:
  get_build_console_output fails with 0xa5 stirng in job output

Status in Python Jenkins:
  New

Bug description:
  Our job prints message which contains line like this:

  14:19:27 > DBG: -out- CON-GET ID=165, Token=0xa5

  And when I try to read this using get_build_console_output method I've
  got following error:

  Traceback (most recent call last):
    File "Internal/jenkins_runner.py", line 44, in <module>
      output = server.get_build_console_output(build_name, build_number)
    File "/usr/local/lib/python2.7/site-packages/jenkins/__init__.py", line 1336, in get_build_console_output
      self._build_url(BUILD_CONSOLE_OUTPUT, locals())
    File "/usr/local/lib/python2.7/site-packages/jenkins/__init__.py", line 436, in jenkins_open
      return response.decode('utf-8')
    File "/usr/local/lib/python2.7/encodings/utf_8.py", line 16, in decode
      return codecs.utf_8_decode(input, errors, True)
  UnicodeDecodeError: 'utf8' codec can't decode byte 0xa5 in position 1196795: invalid start byte

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-jenkins/+bug/1659322/+subscriptions


References