{"action":"created","issue":{"url":"https://api.github.com/repos/CumberlandGroup/node-ews/issues/83","repository_url":"https://api.github.com/repos/CumberlandGroup/node-ews","labels_url":"https://api.github.com/repos/CumberlandGroup/node-ews/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/CumberlandGroup/node-ews/issues/83/comments","events_url":"https://api.github.com/repos/CumberlandGroup/node-ews/issues/83/events","html_url":"https://github.com/CumberlandGroup/node-ews/issues/83","id":314617718,"number":83,"title":"401 unauthorised access","user":{"login":"chaksoham","id":5665492,"avatar_url":"https://avatars3.githubusercontent.com/u/5665492?v=4","gravatar_id":"","url":"https://api.github.com/users/chaksoham","html_url":"https://github.com/chaksoham","followers_url":"https://api.github.com/users/chaksoham/followers","following_url":"https://api.github.com/users/chaksoham/following{/other_user}","gists_url":"https://api.github.com/users/chaksoham/gists{/gist_id}","starred_url":"https://api.github.com/users/chaksoham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaksoham/subscriptions","organizations_url":"https://api.github.com/users/chaksoham/orgs","repos_url":"https://api.github.com/users/chaksoham/repos","events_url":"https://api.github.com/users/chaksoham/events{/privacy}","received_events_url":"https://api.github.com/users/chaksoham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-16T11:54:28Z","updated_at":"2018-04-23T15:43:40Z","closed_at":null,"author_association":"NONE","body":" const ewsConfig = {\r\n            username: 'acb.efg@ipsoft.com',\r\n            password: 'abc1234',\r\n            host: 'https://blrmail.company.com',\r\n            auth: 'basic',\r\n            strictSSL: false,  // in case you can't trust the certs \r\n          };\r\n\r\n          const promise = new Promise((resolve, reject) => { \r\n           \r\n            try {\r\n                const ews = new EWS(ewsConfig);\r\n \r\n                const ewsFunction = 'ExpandDL';\r\n \r\n                // define ews api function args\r\n                const ewsArgs = {\r\n                  'Mailbox': {\r\n                    'EmailAddress':'transportList@company.com'\r\n                  }\r\n                };\r\n                 \r\n                // query EWS and print resulting JSON to console\r\n                ews.run(ewsFunction, ewsArgs)\r\n                  .then(result => {\r\n                    console.log(JSON.stringify(result));\r\n                  })\r\n                  .catch(err => {\r\n                    console.log(err.message);\r\n                  });"},"comment":{"url":"https://api.github.com/repos/CumberlandGroup/node-ews/issues/comments/383622241","html_url":"https://github.com/CumberlandGroup/node-ews/issues/83#issuecomment-383622241","issue_url":"https://api.github.com/repos/CumberlandGroup/node-ews/issues/83","id":383622241,"user":{"login":"kcastrotech","id":3489626,"avatar_url":"https://avatars2.githubusercontent.com/u/3489626?v=4","gravatar_id":"","url":"https://api.github.com/users/kcastrotech","html_url":"https://github.com/kcastrotech","followers_url":"https://api.github.com/users/kcastrotech/followers","following_url":"https://api.github.com/users/kcastrotech/following{/other_user}","gists_url":"https://api.github.com/users/kcastrotech/gists{/gist_id}","starred_url":"https://api.github.com/users/kcastrotech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcastrotech/subscriptions","organizations_url":"https://api.github.com/users/kcastrotech/orgs","repos_url":"https://api.github.com/users/kcastrotech/repos","events_url":"https://api.github.com/users/kcastrotech/events{/privacy}","received_events_url":"https://api.github.com/users/kcastrotech/received_events","type":"User","site_admin":false},"created_at":"2018-04-23T15:43:40Z","updated_at":"2018-04-23T15:43:40Z","author_association":"COLLABORATOR","body":"Sounds like you have a permission or username/password issue. You'll also need to make sure that you can access the WSDL (e.g. \"https://blrmail.company.com/EWS/Services.wsdl\").\r\n\r\nIf you are 100% sure you have a good username and password and that the WSDL is accessible then you might try using something like EWSEditor (https://ewseditor.codeplex.com/) to do some testing/debugging."}}
{"actor":{"display_login":"kcastrotech"}}