You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node version: 10.11.0
Npm version: 6.7.0
OS and version: Mac OSX 10.14.4
typed-rest-client version: 1.2.0
Issue Description
NTLM Authentication does not work
Expected behaviour
With NTLM authentication, API calls should succeed
Actual behaviour
With NTLM authentication, the application build using azure-devops-node-api exits when performing an API Call
Steps to reproduce
Use NTLM authentication with azure-devops-node-api
Call any api
Logs
I have observed that typed-rest-client consumes the api call response instead of allowing the client to consume it itself.
I have observed removing the code to consume the body does remedy the issue for me
publichandleAuthentication(httpClient: ifm.IHttpClient,requestInfo: ifm.IRequestInfo,objs): Promise<ifm.IHttpClientResponse>{returnnewPromise<ifm.IHttpClientResponse>((resolve,reject)=>{constcallbackForResult=function(err: any,res: ifm.IHttpClientResponse){if(err){reject(err);}// We have to readbody on the response before continuing otherwise there is a hang.res.readBody().then(()=>{// REMOVE call to readBody, and just call resolveresolve(res);});};this.handleAuthenticationPrivate(httpClient,requestInfo,objs,callbackForResult);});}
The text was updated successfully, but these errors were encountered:
Environment
Node version: 10.11.0
Npm version: 6.7.0
OS and version: Mac OSX 10.14.4
typed-rest-client version: 1.2.0
Issue Description
NTLM Authentication does not work
Expected behaviour
With NTLM authentication, API calls should succeed
Actual behaviour
With NTLM authentication, the application build using
azure-devops-node-api
exits when performing an API CallSteps to reproduce
azure-devops-node-api
Logs
I have observed that typed-rest-client consumes the api call response instead of allowing the client to consume it itself.
I have observed removing the code to consume the body does remedy the issue for me
The text was updated successfully, but these errors were encountered: