Skip to content
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

Log the SOAP's body of the response from WinRM in case of error #192

Merged
merged 1 commit into from
Dec 8, 2016

Conversation

zerikv
Copy link
Contributor

@zerikv zerikv commented Nov 23, 2016

Hello,

The SOAP response is logged only if the response is OK.
But when the WinRM service returns an error (for example a 500) the body of the SOAP response may contain a <Fault> tag with a child tag <Reason> with a detailed message which explains the cause of the error.
This message can be very helpful to troubleshooting the error (for example in me case the message explained that the quota limit for opened shells was exceeded).

Example of response:

<s:Envelope >
  <s:Header>
  .../...
  </s:Header>
  <s:Body>
    <s:Fault>
      <s:Code>
        <s:Value>s:Sender</s:Value>
        <s:Subcode>
          <s:Value>w:QuotaLimit</s:Value>
        </s:Subcode>
      </s:Code>
      <s:Reason>
        <s:Text>The WS-Management service cannot process the request. The maximum number of concurrent shells for this user has been exceeded. Close existing shells or raise the quota for this user.</s:Text>
      </s:Reason>
      <s:Detail>
.../...
      </s:Detail>
    </s:Fault>
  </s:Body>
</s:Envelope> 

Eric

@hierynomus hierynomus merged commit d0c6ade into xebialabs:master Dec 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants