Skip to content

WIP: Add handling to Invoke-Webrequest command for named pipes #25348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sharktide
Copy link

@sharktide sharktide commented Apr 12, 2025

…Not working)

PR Summary

PR Context

Adds support for http servers set up on named pipes with Invoke-Webrequest for easy use.

PR Checklist

@sharktide
Copy link
Author

@microsoft-github-policy-service agree

@microsoft-github-policy-service microsoft-github-policy-service bot added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Apr 15, 2025
@sharktide
Copy link
Author

@iSazonov Can you help me fix an error? I was working and I got the basic logic working see the file, so what I do is check for npipe:// scheme, if so then pass it to my own function processNamedPipeRequest and then build a response and pass it to internal override processResponse. However, this line in processResponse fails with object reference not set to an instance of an object on named pipe but not on regular requests:

Stream responseStream = StreamHelper.GetResponseStream(response, _cancelToken.Token);

If you see the file; I added a bunch of null checks but they all succeed yet this line throws an error. Any idea of where this is coming from.

@microsoft-github-policy-service microsoft-github-policy-service bot added Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept and removed Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept labels May 12, 2025
@sharktide
Copy link
Author

@SeeminglyScience Could you please help?

@microsoft-github-policy-service microsoft-github-policy-service bot removed Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept Stale labels May 31, 2025
@iSazonov
Copy link
Collaborator

@sharktide You could run Get-Error cmdlet to get stack trace.

@sharktide
Copy link
Author

I’ll try

@microsoft-github-policy-service microsoft-github-policy-service bot added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Jun 3, 2025
@sharktide
Copy link
Author

I'm really busy right now with other projects. The bot can close the PR and I will open a new one or reopen it when I have finished

@microsoft-github-policy-service microsoft-github-policy-service bot added Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept and removed Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept Stale labels Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants