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

Error: Failed to process the request, status Code #2

Open
mnjagadeesh opened this issue May 31, 2019 · 3 comments
Open

Error: Failed to process the request, status Code #2

mnjagadeesh opened this issue May 31, 2019 · 3 comments

Comments

@mnjagadeesh
Copy link

Error: Failed to process the request, status Code:
at ClientRequest.http.request (/home/jnm/node_modules/nodejs-winrm/src/http.js:22:24)

I have verified winrm setup with python code. winrm id returns:

C:\Windows\system32>winrm id
IdentifyResponse
ProtocolVersion = http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
ProductVendor = Microsoft Corporation
ProductVersion = OS: 10.0.14393 SP: 0.0 Stack: 3.0
SecurityProfiles
SecurityProfileName = http://schemas.dmtf.org/wbem/wsman/1/wsman/secprofile/http/basic, http://schemas.dmtf.org/wbem/wsman/1/wsman/secprofile/http/spnego-kerberos

I think it is related to ntlm. Please help.

@1LadyInDC
Copy link

Hi mnjagadeesh -

I initially received the same error. I then tried to connect using the hostname as opposed to the host's IP address; recompiled code and now it's throwing a Connection Refused error (ECONNREFUSED).

Still haven't been successful, but at least I'm closer :-)

@tw00
Copy link
Contributor

tw00 commented Jan 21, 2020

This is probably related to #3

@MelonSmasher
Copy link

I'm also having this issue. In my case I'm attempting to use a domain account. After changing line 22 of src/http.js to:

deferred.reject('Failed to process the request, status Code: ' + res.statusCode);

I was able to see that I was getting a 401 HTTP status code. I'm pretty sure the issue, at least in my case, is basic auth is not supported for domain accounts and Kerberos or CredSSP needs to be used. I was able to use pywinrm in a python script in my POC with Kerberos to ensure that the issue was not my credentials.

Are there any plans to support Kerberos?

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

No branches or pull requests

4 participants