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

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

    • 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.

          [JENKINS-53077] Failed to execute 'replaceChild' on 'Node': parameter 1 is not of type 'Node'.

          Josh Soref created issue -
          Oleg Nenashev made changes -
          Labels New: javascript
          Josh Soref made changes -
          Description Original: e:
          {code:java}
          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) {code}
          response.responseText: {{""}}

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

          I'm pretty sure that:

          [https://github.com/jenkinsci/jenkins/blob/723e5ed8fb1a5289edc31d82bb9ad67e6d97bcd9/war/src/main/webapp/scripts/hudson-behavior.js#L1523]
          {code:java}
          var node = $(div).firstDescendant(); {code}
          yielded {{null}}.
          New: e:
          {code:java}
          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) {code}
          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]
          {code:java}
          var node = $(div).firstDescendant(); {code}
          yielded {{null}}.

          Further investigation shows:

          {{rsp.status}} = {{0}}.

          The code for {{this.success()}} used by {{respondToReadyState()}} treats this as a resonse 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.
          Josh Soref made changes -
          Description Original: e:
          {code:java}
          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) {code}
          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]
          {code:java}
          var node = $(div).firstDescendant(); {code}
          yielded {{null}}.

          Further investigation shows:

          {{rsp.status}} = {{0}}.

          The code for {{this.success()}} used by {{respondToReadyState()}} treats this as a resonse 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.
          New: e:
          {code:java}
          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) {code}
          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]
          {code:java}
          var node = $(div).firstDescendant(); {code}
          yielded {{null}}.

          Further investigation shows:

          {{response.status}} : {{0}}

          The code for {{this.success()}} used by {{respondToReadyState()}} treats this as a resonse 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.
          Josh Soref made changes -
          Description Original: e:
          {code:java}
          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) {code}
          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]
          {code:java}
          var node = $(div).firstDescendant(); {code}
          yielded {{null}}.

          Further investigation shows:

          {{response.status}} : {{0}}

          The code for {{this.success()}} used by {{respondToReadyState()}} treats this as a resonse 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.
          New: e:
          {code:java}
          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) {code}
          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]
          {code:java}
          var node = $(div).firstDescendant(); {code}
          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.

          Josh Soref added a comment - - edited

          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

          Josh Soref added a comment -

          Josh Soref added a comment - https://github.com/jenkinsci/jenkins/pull/3869

          Oleg Nenashev added a comment -

          It was released in 2.163

          Oleg Nenashev added a comment - It was released in 2.163
          Oleg Nenashev made changes -
          Released As New: Jenkins 2.163
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Oleg Nenashev made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]

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

              Created:
              Updated:
              Resolved: