← Back to team overview

python-jenkins-developers team mailing list archive

[Bug 1766660] Re: jenkins.EmptyResponseException raised when a response is given

 

Reviewed:  https://review.openstack.org/564031
Committed: https://git.openstack.org/cgit/openstack/python-jenkins/commit/?id=5033405db7619ac2635bc25ae824253afecd7a3d
Submitter: Zuul
Branch:    master

commit 5033405db7619ac2635bc25ae824253afecd7a3d
Author: JP Sullivan <jonpsull@xxxxxxxxx>
Date:   Tue Apr 24 17:52:16 2018 +0100

    Update to _response_handler
    
    Account for situations where no Content-Length or Transfer-Encoding
    headers are present in a response.
    
    The length of the response.content could still indicate a response was
    given.  The earlier raise_for_status() should catch bad HTTP responses
    that return content.
    
    Closes-bug: #1766660
    Change-Id: I6739e26a039a898982f5cdc96d19d6992ed37737


** Changed in: python-jenkins
       Status: In Progress => Fix Released

-- 
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/1766660

Title:
  jenkins.EmptyResponseException raised when a response is given

Status in Python Jenkins:
  Fix Released

Bug description:
  Using python-jerkins 1.0.0 to get build info raises an
  EmptyResponseException despite getting a response from the Jenkins
  server.

  There are no content-length or transfer-encoding headers in the
  response, leading to the incorrect classification.

  response.text length was good, as was status of response.

  Headers were:

  {'Date': 'Tue, 24 Apr 2018 16:31:36 GMT',
   'X-Content-Type-Options': 'nosniff',
   'X-Jenkins': '2.46.3.2',
   'X-Jenkins-Session': '03171bd7',
   'Content-Type': 'application/json;charset=UTF-8',
   'Content-Encoding': 'gzip',
   'Connection': 'close',
   'Server': 'Jetty(9.2.z-SNAPSHOT)',
   'Set-Cookie': 'SERVERID=; Expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/',
   'Cache-control': 'private'}

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


References