danxfisher / MeetEasier

MeetEasier is a web application that visualizes meeting room availability. It works using Exchange Web Services (EWS) with Exchange room lists in Office 365.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The specified folder could not be found in the store ?

oskari opened this issue · comments

I'm succesfully retrieving room lists and I can see it finds all the rooms but after that I get following error:

The specified folder could not be found in the store

XMLHttpRequest {
  onloadstart: null,
  onprogress: null,
  onabort: null,
  onerror: null,
  onload: null,
  ontimeout: null,
  onloadend: null,
  _listeners: {},
  onreadystatechange: [Function: noop],
  _anonymous: undefined,
  readyState: 4,
  response: '<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="239" MinorBuildNumber="10" Version="V2017_10_09" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></s:Header><s:Body><m:FindItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:FindItemResponseMessage ResponseClass="Error"><m:MessageText>The specified folder could not be found in the store.</m:MessageText><m:ResponseCode>ErrorFolderNotFound</m:ResponseCode><m:DescriptiveLinkKey>0</m:DescriptiveLinkKey></m:FindItemResponseMessage></m:ResponseMessages></m:FindItemResponse></s:Body></s:Envelope>',
  responseText: '<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="239" MinorBuildNumber="10" Version="V2017_10_09" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></s:Header><s:Body><m:FindItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:FindItemResponseMessage ResponseClass="Error"><m:MessageText>The specified folder could not be found in the store.</m:MessageText><m:ResponseCode>ErrorFolderNotFound</m:ResponseCode><m:DescriptiveLinkKey>0</m:DescriptiveLinkKey></m:FindItemResponseMessage></m:ResponseMessages></m:FindItemResponse></s:Body></s:Envelope>',
  responseType: '',
  responseURL: 'https://outlook.office365.com/EWS/Exchange.asmx',
  status: 200,
  statusText: 'OK',
  timeout: 0,
  upload:
   XMLHttpRequestUpload {
     onloadstart: null,
     onprogress: null,
     onabort: null,
     onerror: null,
     onload: null,
     ontimeout: null,
     onloadend: null,
     _listeners: {},
     _request: [Circular],
     _contentType: 'text/plain;charset=UTF-8',
     _body: <Buffer 3c 73 6f 61 70 3a 45 6e 76 65 6c 6f 70 65 20 78 6d 6c 6e 73 3a 73 6f 61 70 3d 22 68 74 74 70 3a 2f 2f 73 63 68 65 6d 61 73 2e 78 6d 6c 73 6f 61 70 2e ... > },
  _method: 'POST',
  _url:
   Url {
     protocol: 'https:',
     slashes: true,
     auth: null,
     host: 'outlook.office365.com',
     port: null,
     hostname: 'outlook.office365.com',
     hash: null,
     search: null,
     query: null,
     pathname: '/EWS/Exchange.asmx',
     path: '/EWS/Exchange.asmx',
     href: 'https://outlook.office365.com/EWS/Exchange.asmx' },
  _sync: false,
  _headers:
   { 'Content-Type': 'text/xml; charset=utf-8',
     Accept: 'text/xml',
     Authorization: 'Basic b3NrYXJpLmthbnRvbmllbWlAc29mb2t1cy5jb206ejloa25zdiEh',
     Connection: 'keep-alive',
     Host: 'outlook.office365.com',
     'User-Agent': 'Mozilla/5.0 (Darwin x64) node.js/8.9.1 v8/6.1.534.47',
     'Content-Length': '824' },
  _loweredHeaders:
   { 'content-type': 'Content-Type',
     accept: 'Accept',
     authorization: 'Authorization' },
  _mimeOverride: null,
  _request: null,
  _response: null,
  _responseParts: null,
  _responseHeaders:
   { 'cache-control': 'private',
     'transfer-encoding': 'chunked',
     'content-type': 'text/xml; charset=utf-8',
     server: 'Microsoft-IIS/10.0',
     'request-id': '3dfe23c3-1f1f-4fa5-8c4c-3791262ef4bf',
     'x-calculatedfetarget': 'AM0PR0102CU001.internal.outlook.com',
     'x-backendhttpstatus': '200, 200',
     'x-feproxyinfo': 'AM0PR0102CA0036.EURPRD01.PROD.EXCHANGELABS.COM',
     'x-calculatedbetarget': 'DB5PR0201MB1542.eurprd02.prod.outlook.com',
     'x-ewshandler': 'FindItem',
     'x-aspnet-version': '4.0.30319',
     'x-diaginfo': 'DB5PR0201MB1542',
     'x-beserver': 'DB5PR0201MB1542',
     'x-feserver': 'AM0PR0102CA0036, DB6PR0301CA0049',
     'x-powered-by': 'ASP.NET',
     date: 'Tue, 21 Nov 2017 11:38:50 GMT' },
  _aborting: null,
  _error: null,
  _loadedBytes: 1024,
  _totalBytes: 0,
  _lengthComputable: false }
{ __prefix: 's',
  __xmlns:
   { s: 'http://schemas.xmlsoap.org/soap/envelope/',
     h: 'http://schemas.microsoft.com/exchange/services/2006/types',
     xsd: 'http://www.w3.org/2001/XMLSchema',
     xsi: 'http://www.w3.org/2001/XMLSchema-instance',
     m: 'http://schemas.microsoft.com/exchange/services/2006/messages',
     t: 'http://schemas.microsoft.com/exchange/services/2006/types' },
  Header:
   { __prefix: 's',
     ServerVersionInfo:
      { __prefix: 'h',
        __type: 'ServerVersionInfo',
        MajorVersion: '15',
        MinorVersion: '20',
        MajorBuildNumber: '239',
        MinorBuildNumber: '10',
        Version: 'V2017_10_09' } },
  Body:
   { __prefix: 's',
     FindItemResponse:
      { __prefix: 'm',
        __type: 'FindItemResponse',
        ResponseMessages:
         { __prefix: 'm',
           __type: 'ResponseMessages',
           FindItemResponseMessage:
            { __prefix: 'm',
              __type: 'FindItemResponseMessage',
              ResponseClass: 'Error',
              MessageText: 'The specified folder could not be found in the store.',
              ResponseCode: 'ErrorFolderNotFound',
              DescriptiveLinkKey: '0' } } } } }
{ __prefix: 'soap',
  __xmlns:
   { soap: 'http://schemas.xmlsoap.org/soap/envelope/',
     xsi: 'http://www.w3.org/2001/XMLSchema-instance',
     m: 'http://schemas.microsoft.com/exchange/services/2006/messages',
     t: 'http://schemas.microsoft.com/exchange/services/2006/types' },
  Header:
   { __prefix: 'soap',
     RequestServerVersion:
      { __prefix: 't',
        __type: 'RequestServerVersion',
        Version: 'Exchange2016' } },
  Body:
   { __prefix: 'soap',
     FindItem:
      { __prefix: 'm',
        __type: 'FindItem',
        Traversal: 'Shallow',
        ItemShape:
         { __prefix: 'm',
           __type: 'ItemShape',
           BaseShape: 'AllProperties' },
        CalendarView:
         { __prefix: 'm',
           __type: 'CalendarView',
           MaxEntriesReturned: '6',
           StartDate: '2017-11-21T11:38:51.243Z',
           EndDate: '2017-12-01T11:38:51.244Z' },
        ParentFolderIds:
         { __prefix: 'm',
           __type: 'ParentFolderIds',
           DistinguishedFolderId:
            { __prefix: 't',
              __type: 'DistinguishedFolderId',
              Id: 'calendar',
              Mailbox:
               { __prefix: 't',
                 __type: 'Mailbox',
                 EmailAddress: 'verstas@xxxxxxx.COM' } } } } } }
XMLHttpRequest {
  onloadstart: null,
  onprogress: null,
  onabort: null,
  onerror: null,
  onload: null,
  ontimeout: null,
  onloadend: null,
  _listeners: {},
  onreadystatechange: [Function: noop],
  _anonymous: undefined,
  readyState: 4,
  response: '<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="239" MinorBuildNumber="10" Version="V2017_10_09" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></s:Header><s:Body><m:FindItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:FindItemResponseMessage ResponseClass="Error"><m:MessageText>The specified folder could not be found in the store.</m:MessageText><m:ResponseCode>ErrorFolderNotFound</m:ResponseCode><m:DescriptiveLinkKey>0</m:DescriptiveLinkKey></m:FindItemResponseMessage></m:ResponseMessages></m:FindItemResponse></s:Body></s:Envelope>',
  responseText: '<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="239" MinorBuildNumber="10" Version="V2017_10_09" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/></s:Header><s:Body><m:FindItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:FindItemResponseMessage ResponseClass="Error"><m:MessageText>The specified folder could not be found in the store.</m:MessageText><m:ResponseCode>ErrorFolderNotFound</m:ResponseCode><m:DescriptiveLinkKey>0</m:DescriptiveLinkKey></m:FindItemResponseMessage></m:ResponseMessages></m:FindItemResponse></s:Body></s:Envelope>',
  responseType: '',
  responseURL: 'https://outlook.office365.com/EWS/Exchange.asmx',
  status: 200,
  statusText: 'OK',
  timeout: 0,
  upload:
   XMLHttpRequestUpload {
     onloadstart: null,
     onprogress: null,
     onabort: null,
     onerror: null,
     onload: null,
     ontimeout: null,
     onloadend: null,
     _listeners: {},
     _request: [Circular],
     _contentType: 'text/plain;charset=UTF-8',
     _body: <Buffer 3c 73 6f 61 70 3a 45 6e 76 65 6c 6f 70 65 20 78 6d 6c 6e 73 3a 73 6f 61 70 3d 22 68 74 74 70 3a 2f 2f 73 63 68 65 6d 61 73 2e 78 6d 6c 73 6f 61 70 2e ... > },
  _method: 'POST',
  _url:
   Url {
     protocol: 'https:',
     slashes: true,
     auth: null,
     host: 'outlook.office365.com',
     port: null,
     hostname: 'outlook.office365.com',
     hash: null,
     search: null,
     query: null,
     pathname: '/EWS/Exchange.asmx',
     path: '/EWS/Exchange.asmx',
     href: 'https://outlook.office365.com/EWS/Exchange.asmx' },
  _sync: false,
  _headers:
   { 'Content-Type': 'text/xml; charset=utf-8',
     Accept: 'text/xml',
     Authorization: 'Basic b3NrYXJpLmthbnRvbmllbWlAc29mb2t1cy5jb206ejloa25zdiEh',
     Connection: 'keep-alive',
     Host: 'outlook.office365.com',
     'User-Agent': 'Mozilla/5.0 (Darwin x64) node.js/8.9.1 v8/6.1.534.47',
     'Content-Length': '820' },
  _loweredHeaders:
   { 'content-type': 'Content-Type',
     accept: 'Accept',
     authorization: 'Authorization' },
  _mimeOverride: null,
  _request: null,
  _response: null,
  _responseParts: null,
  _responseHeaders:
   { 'cache-control': 'private',
     'transfer-encoding': 'chunked',
     'content-type': 'text/xml; charset=utf-8',
     server: 'Microsoft-IIS/10.0',
     'request-id': 'b36a057c-ddc3-40fc-b87d-fe3798fd6a62',
     'x-calculatedfetarget': 'AM0PR0102CU001.internal.outlook.com',
     'x-backendhttpstatus': '200, 200',
     'x-feproxyinfo': 'AM0PR0102CA0027.EURPRD01.PROD.EXCHANGELABS.COM',
     'x-calculatedbetarget': 'DB5PR0201MB1542.eurprd02.prod.outlook.com',
     'x-ewshandler': 'FindItem',
     'x-aspnet-version': '4.0.30319',
     'x-diaginfo': 'DB5PR0201MB1542',
     'x-beserver': 'DB5PR0201MB1542',
     'x-feserver': 'AM0PR0102CA0027, DB6PR0301CA0046',
     'x-powered-by': 'ASP.NET',
     date: 'Tue, 21 Nov 2017 11:38:51 GMT' },
  _aborting: null,
  _error: null,
  _loadedBytes: 1024,
  _totalBytes: 0,
  _lengthComputable: false }
{ __prefix: 's',
  __xmlns:
   { s: 'http://schemas.xmlsoap.org/soap/envelope/',
     h: 'http://schemas.microsoft.com/exchange/services/2006/types',
     xsd: 'http://www.w3.org/2001/XMLSchema',
     xsi: 'http://www.w3.org/2001/XMLSchema-instance',
     m: 'http://schemas.microsoft.com/exchange/services/2006/messages',
     t: 'http://schemas.microsoft.com/exchange/services/2006/types' },
  Header:
   { __prefix: 's',
     ServerVersionInfo:
      { __prefix: 'h',
        __type: 'ServerVersionInfo',
        MajorVersion: '15',
        MinorVersion: '20',
        MajorBuildNumber: '239',
        MinorBuildNumber: '10',
        Version: 'V2017_10_09' } },
  Body:
   { __prefix: 's',
     FindItemResponse:
      { __prefix: 'm',
        __type: 'FindItemResponse',
        ResponseMessages:
         { __prefix: 'm',
           __type: 'ResponseMessages',
           FindItemResponseMessage:
            { __prefix: 'm',
              __type: 'FindItemResponseMessage',
              ResponseClass: 'Error',
              MessageText: 'The specified folder could not be found in the store.',
              ResponseCode: 'ErrorFolderNotFound',
              DescriptiveLinkKey: '0' } } } } }

If this error prevents you from receiving anything on the frontend, you might want to have a look at pull request #12

It will not resolve this error (which presumably results from an authorization-issue in O365), but it will allow you to list up the rooms despite the error. To fliter out those rooms, you can blacklist them in ui-react/src/config/flightboard.config.js until there is a better solution.

Apologies for how late this is, but that error means the service account provided ise not authorized to access the room calendar. I will build a small Wiki page in the future to trouble shoot what seems to be the most common errors.