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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • Jenkins 2.163

      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.

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

              Created:
              Updated:
              Resolved: