-
Notifications
You must be signed in to change notification settings - Fork 50
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
When a remote error occurs, wsman requests infinitely until it is closed #120
Comments
I'm sorry I don't understand the problem. The code you've given doesn't match up with anything in https://github.com/jborean93/pypsrp/blob/master/pypsrp/wsman.py and the error at the end occurs when the client receives a response for the wrong request. What exactly is the problem here? |
Maybe the version is different, or the problem I described, the line : 398
cause: I received a package like this
message_id and relatives_to are always equal, so he will not stop because of “raise” ( This project references your project, the address is: https://github.com/dmaasland/proxyshell-poc There is no need to merge the request, it is only my temporary solution, providing a description of the problem, just hoping that the project can have more test scenarios Forgive my poor English, it comes from Google Translate thank you for your reply |
Ahh I see what you mean now, the code you've shared is what you've added to ensure the failure. I was assuming that this was existing code that was causing problems for you but I understand now. As for the problem in question, the error is usually picked up in as part of this check Lines 382 to 392 in e4e5130
WinRMTransportError in the transport. From there the code is attempting to parse the WSManFault error with self._parse_wsman_fault(err.response_text) to give a better structured error message. It sounds like the proxy shell is not returning the fault with a HTTP status code of 500 to pick up this problem. In any case I would have thought that processing the message further down would raise an exception anyway.
Ultimately it wouldn't hurt to try and parse the WSManFault anyway at this stage even if the HTTP status code was 200. |
wsmanpy
Rude solution
The text was updated successfully, but these errors were encountered: