-
Notifications
You must be signed in to change notification settings - Fork 73
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
Issue with upgrading to @ewsjs/xhr from ews-javascript-api-auth #334
Comments
Facing the same error, the |
I dont have access to ntlm server right now, but let me try restoring last one to check. what version you are using for ews api and xhr? |
Hi gautamsi, I found the solution you described here. Setting Edit: |
@Lumpenstein many thanks for link. I read the thread and found the solution. const xhr = new XhrApi({ rejectUnauthorized: false, gzip: true }).useNtlmAuthentication(credentials.username, credentials.password); PS |
have you tried this:
|
Yeap. This also works.
|
True that :) haven't seen the gzip option there, because intellisense not working correclty for the request/request package |
not all options of requestjs is added to typings that is why. |
Ah ok, I guess we can close this issue now, maybe add the |
I don't mind. Still curious when this option is needed and when is not... |
added text in readme for this |
Hello!
I am trying to upgrade to new helper library @ewsjs/xhr from ews-javascript-api-auth.
Original code that works:
I replaced last 2 lines with:
and got lot of warnings and error like this in dom-parse.js:
PS
Tried to use ConfigurationApi.ConfigureXHR(xhr) - with the same result.
Any ideas?
The text was updated successfully, but these errors were encountered: