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

Error in calling service, error code:401 #43

Closed
CodeNeedsCoffee opened this issue Oct 2, 2018 · 2 comments
Closed

Error in calling service, error code:401 #43

CodeNeedsCoffee opened this issue Oct 2, 2018 · 2 comments

Comments

@CodeNeedsCoffee
Copy link

CodeNeedsCoffee commented Oct 2, 2018

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!

@CodeNeedsCoffee
Copy link
Author

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'  : '[email protected]',
    '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.

@jozefnad
Copy link

jozefnad commented Sep 3, 2019

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

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

2 participants