Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53077

Failed to execute 'replaceChild' on 'Node': parameter 1 is not of type 'Node'.

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      Jenkins 2.163

      Description

      e:

      TypeError: Failed to execute 'replaceChild' on 'Node': parameter 1 is not of type 'Node'.
          at onSuccess (hudson-behavior.js:1524)
          at klass.respondToReadyState (VM283 prototype.js:1657)
          at klass.onStateChange (VM283 prototype.js:1600)
          at XMLHttpRequest.<anonymous> (VM283 prototype.js:414) 

      response.responseText: ""

      https://github.com/jenkinsci/jenkins/blob/723e5ed8fb1a5289edc31d82bb9ad67e6d97bcd9/war/src/main/webapp/scripts/hudson-behavior.js#L1524

      I verified that:

      https://github.com/jenkinsci/jenkins/blob/723e5ed8fb1a5289edc31d82bb9ad67e6d97bcd9/war/src/main/webapp/scripts/hudson-behavior.js#L1523

      var node = $(div).firstDescendant(); 

      yielded null.

      Further investigation shows:

      response.status : 0

      The code for this.success() used by respondToReadyState() treats this as a response to call this.options.onSuccess, but I suspect it would be better handled by this.options.onFailure or by dropping it or something.

      See https://stackoverflow.com/questions/36416389/why-does-my-xmlhttprequest-have-readystate-4-but-status-0 for reports of this case.

        Attachments

          Activity

          Show
          jsoref Josh Soref added a comment - - edited this.success is from prototype.js   https://github.com/jenkinsci/jenkins/blob/22aa2e6e766074d11249893e3f35e0b99e20d3d0/war/src/main/webapp/scripts/prototype.js#L1639
          Show
          jsoref Josh Soref added a comment - https://github.com/jenkinsci/jenkins/pull/3869
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          It was released in 2.163

          Show
          oleg_nenashev Oleg Nenashev added a comment - It was released in 2.163

            People

            • Assignee:
              Unassigned
              Reporter:
              jsoref Josh Soref
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: