danxfisher/MeetEasier

Error in calling service, error code:401

CodeNeedsCoffee opened this issue ยท 2 comments

So I've been trying to troubleshoot this issue and hoping maybe someone can help ๐Ÿ˜‚. Here's the terminal output:

PS C:\TestSite\MeetEasier-master> npm start

> meet-easier@ start C:\TestSite\MeetEasier-master
> node server

now we're cooking.
sending ews request
{ url: 'https://outlook.office365.com/EWS/Exchange.asmx',
  headers:
   { 'Content-Type': 'text/xml; charset=utf-8',
     Accept: 'text/xml',
     Authorization: 'Basic ZXRlbXBsaW46SWxvdmVlbTEx' },
  type: 'POST',
  data: '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><soap:Header><t:RequestServerVersion Version="Exchange2016"></t:RequestServerVersion></soap:Header><soap:Body><m:GetRoomLists></m:GetRoomLists></soap:Body></soap:Envelope>' }
Error in calling service, error code:401
server: Microsoft-IIS/10.0
request-id: 12e5e5ed-f146-4dab-8d9f-1485968d4583
x-powered-by: ASP.NET
x-feserver: BN6PR1201CA0008
www-authenticate: Basic Realm=""
date: Tue, 02 Oct 2018 19:04:26 GMT
content-length: 0

I'm wondering if it's because of the Realm="" but I'm not sure where the code grabs the realm?
Any other thoughts would be greatly appreciated!

Cheers!

NM, I followed @chappers73 comment from #40 and edited the auth.js as follows:

// expose our config directly to our application using module.exports
module.exports = {
  // this user MUST have full access to all the room accounts
  'exchange' : {
    'username'  : 'USER@DOMAIN.COM',
    'password'  : 'password',
    'uri'       : 'https://outlook.office365.com/EWS/Exchange.asmx'
  },
  // Ex: CONTOSO.COM, Contoso.com, Contoso.co.uk, etc.
  'domain' : 'DOMAIN.COM'
};

But now I have the never ending spinning issue.

Hello, have you found the solution? I have the same issue with never ending spinning :/