title: Jenkins API not returning the console text but successful from the Browser
body: <p>The console log is not returning any result via the Jenkins API:</p>
  
  <pre><code>curl -I http://$USER:$APITOKEN@$HOST:8080/job/Test1/121/consoleText -H "$CRUMB"
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
    0   657    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0HTTP/1.1 200 OK
  Date: Fri, 05 Jan 2018 08:38:35 GMT
  X-Content-Type-Options: nosniff
  Content-Type: text/plain;charset=utf-8
  Content-Length: 657
  Server: Jetty(9.4.z-SNAPSHOT)
  </code></pre>
  
  <p>But, the Console log via the Chrome browser has all the build details:</p>
  
  <p>The console is: </p>
  
  <p><code>http://localhost:8080/job/Test1/121/api/json?pretty=true</code></p>
  
  <p>The Response comes back as below:</p>
  
  <pre><code> {
    "_class" : "hudson.model.FreeStyleBuild",
    "actions" : [
      {
        "_class" : "hudson.model.CauseAction",
        "causes" : [
          {
            "_class" : "hudson.model.Cause$RemoteCause",
            "shortDescription" : "Started by remote host 0:0:0:0:0:0:0:1",
            "addr" : "0:0:0:0:0:0:0:1",
            "note" : null
          }
        ]
      },
      {
  
      },
      {
  
      }
    ],
    "artifacts" : [
  
    ],
    "building" : false,
    "description" : null,
    "displayName" : "#120",
    "duration" : 1092,
    "estimatedDuration" : 1070,
    "executor" : null,
    "fullDisplayName" : "Test1 #120",
    "id" : "120",
    "keepLog" : false,
    "number" : 120,
    "queueId" : 120,
    "result" : "SUCCESS",
    "timestamp" : 1515135051624,
    "url" : "http://localhost:8080/job/Test1/120/",
    "builtOn" : "",
    "changeSet" : {
      "_class" : "hudson.scm.EmptyChangeLogSet",
      "items" : [
  
      ],
      "kind" : null
    },
    "culprits" : [
  
    ]
  }
  </code></pre>
  
  <p>Has anyone faced this issue? There is a team that wants to monitor the build status and I felt this would be ideal for sharing all the details.</p>