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

www-authenticate not found on ntlm #142

Open
peterlee0127 opened this issue Jul 17, 2021 · 0 comments
Open

www-authenticate not found on ntlm #142

peterlee0127 opened this issue Jul 17, 2021 · 0 comments

Comments

@peterlee0127
Copy link

Hi

My program sometimes get "www-authenticate not found on response of second request" on the ewsFunction "GetItem"
It happens about two times in every 10-20 times. Like get 100 items, I will get 10 error.

Dose anyone have similar issue ?

Thanks

Error: www-authenticate not found on response of second request
    at sendType3Message (/Users/xxxxxxxxxxxx/node_modules/node-ews/node_modules/httpntlm/httpntlm.js:71:20)
    at Immediate.<anonymous> (/Users/xxxxxxxxxxxx/node_modules/node-ews/node_modules/httpntlm/httpntlm.js:102:4)
    at processImmediate (internal/timers.js:462:21)
const ewsConfig = {
  username: config.useraccount,
  password: config.password,
  host: config.host
};
const ews = new EWS(ewsConfig);

function getCalendarItem(Id, callback)  {
    const ewsFunction = 'GetItem';
    const ewsArgs = {
      'ItemShape': {
        'BaseShape': 'AllProperties',
        "BodyType":'Text'
      },
      'ItemIds' : {
         'ItemId':{
            'attributes': {
               'Id': Id
             }
          }
      }
    }

    ews.run(ewsFunction, ewsArgs)
      .then(result => {
        const json = JSON.stringify(result);
        callback(json);
      })
      .catch(err => {
        console.log(err);
        callback(null);
      });
}
@peterlee0127 peterlee0127 changed the title Get www-authenticate not found on ntlm www-authenticate not found on ntlm Jul 17, 2021
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

1 participant