XS✔ ◾ Fix NonInteractive Invoke-WebRequest failure in GitHub WebHook pipeline - #888
Merged
Neil (neilr81) merged 2 commits intoAug 31, 2026
Merged
Conversation
Windows PowerShell 5.1's Invoke-WebRequest parses responses with the IE COM engine. On the hosted windows-2022 agent IE first-run configuration has not been completed, so parsing tries to prompt and throws PSInvalidOperationException in NonInteractive mode. The POST itself succeeds and the forward build is queued, but the task still fails. Add -UseBasicParsing to skip the IE DOM parser. StatusCode, Headers and RawContent used later in the script are unaffected. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
PR Metrics✔ Thanks for keeping your pull request small.
Metrics computed by PR Metrics. Add it to your Azure DevOps and GitHub PRs! |
Keith Cully (K-Cully)
approved these changes
Aug 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Windows PowerShell 5.1's Invoke-WebRequest parses responses with the IE COM engine. On the hosted windows-2022 agent IE first-run configuration has not been completed, so parsing tries to prompt and throws PSInvalidOperationException in NonInteractive mode. The POST itself succeeds and the forward build is queued, but the task still fails.
Add -UseBasicParsing to skip the IE DOM parser. StatusCode, Headers and RawContent used later in the script are unaffected.