---
# System prepended metadata

title: Errors in auth-test

---

# Errors in auth-test

## Cron 2022-06-17

1
```
2022-06-17T07:00:48.352Z [31merror[39m: outlook-resubscription error when getting events from calendar: [host: localhost:3000, hostUserId: 64c54e9d-10c9-4fb4-8681-e8741336e792, localUserId: ec98266d-538f-48ea-8263-60958d3ec08a, error: GraphError: CompactToken validation failed with reason code: 80049228.
    at new GraphError (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphError.js:31:28)
    at Function.GraphErrorHandler.constructErrorFromResponse (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphErrorHandler.js:61:22)
    at Function.<anonymous> (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphErrorHandler.js:92:48)
    at step (/home/auth2/node_modules/[4mtslib[24m/tslib.js:141:27)
    at Object.next (/home/auth2/node_modules/[4mtslib[24m/tslib.js:122:57)
    at /home/auth2/node_modules/[4mtslib[24m/tslib.js:115:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/home/auth2/node_modules/[4mtslib[24m/tslib.js:111:16) {
  statusCode: [33m401[39m,
  code: [32m'InvalidAuthenticationToken'[39m,
  requestId: [32m'34662a79-b7b3-4bae-b1eb-a42825a6a207'[39m,
  date: [35m2022-06-17T11:00:48.000Z[39m,
  body: [32m'{"code":"InvalidAuthenticationToken","message":"CompactToken validation failed with reason code: 80049228.","innerError":{"date":"2022-06-17T07:00:48","request-id":"34662a79-b7b3-4bae-b1eb-a42825a6a207","client-request-id":"36e2a1ff-d2c0-a6a7-4c12-00fd8ecfd318"}}
```

2
```
2022-06-17T07:00:48.096Z [31merror[39m: renewOutlookSubscription error executing validateToken: [host: localhost:3000, hostUserId: 64c54e9d-10c9-4fb4-8681-e8741336e792, localUserId: ec98266d-538f-48ea-8263-60958d3ec08a, error: Error: Response Error: 400 Bad Request
    at internals.Client._shortcut (/home/auth2/node_modules/[4mwreck[24m/lib/index.js:635:11)
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async Object.request (/home/auth2/node_modules/[4msimple-oauth2[24m/lib/core.js:64:20)
    at async AccessToken.refresh (/home/auth2/node_modules/[4msimple-oauth2[24m/lib/access-token/index.js:35:24)
    at async validateToken (/home/auth2/dist/utils.js:243:15)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:63:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
  data: {
    isResponseError: [33mtrue[39m,
    headers: {
      [32m'cache-control'[39m: [32m'no-store, no-cache'[39m,
      pragma: [32m'no-cache'[39m,
      [32m'content-type'[39m: [32m'application/json; charset=utf-8'[39m,
      expires: [32m'-1'[39m,
      [32m'strict-transport-security'[39m: [32m'max-age=31536000; includeSubDomains'[39m,
      [32m'x-content-type-options'[39m: [32m'nosniff'[39m,
      p3p: [32m'CP="DSP CUR OTPi IND OTRi ONL FIN"'[39m,
      [32m'x-ms-request-id'[39m: [32m'03e4982b-f787-47a9-9fb3-5d8bd3293901'[39m,
      [32m'x-ms-ests-server'[39m: [32m'2.1.12851.7 - EUS ProdSlices'[39m,
      [32m'x-xss-protection'[39m: [32m'0'[39m,
      [32m'set-cookie'[39m: [
        [32m'fpc=AqG_dPVGSdFMq4n-ZNIvoUoGXCWpAQAAAJ8dPtoOAAAA; expires=Sun, 17-Jul-2022 07:00:48 GMT; path=/; secure; HttpOnly; SameSite=None'[39m,
        [32m'x-ms-gateway-slice=estsfd; path=/; secure; httponly'[39m,
        [32m'stsservicecookie=estsfd; path=/; secure; httponly'[39m
      ],
      date: [32m'Fri, 17 Jun 2022 07:00:47 GMT'[39m,
      connection: [32m'close'[39m,
      [32m'content-length'[39m: [32m'610'[39m
    },
payload: {
      error: [32m'invalid_grant'[39m,
      error_description: [32m'AADSTS70000: The request was denied because one or more scopes requested are unauthorized or expired. The user must first sign in and grant the client application access to the requested scope.\r\n'[39m +
        [32m'Trace ID: 03e4982b-f787-47a9-9fb3-5d8bd3293901\r\n'[39m +
        [32m'Correlation ID: bd6a6045-4bd9-4b37-88d2-ba231e3e636d\r\n'[39m +
        [32m'Timestamp: 2022-06-17 07:00:48Z'[39m,
      error_codes: [ [33m70000[39m ],
      timestamp: [32m'2022-06-17 07:00:48Z'[39m,
      trace_id: [32m'03e4982b-f787-47a9-9fb3-5d8bd3293901'[39m,
      correlation_id: [32m'bd6a6045-4bd9-4b37-88d2-ba231e3e636d'[39m,
      error_uri: [32m'https://login.microsoftonline.com/error?code=70000'[39m
    }
```

3

```
2022-06-17T07:00:44.794Z [31merror[39m: ejemplo.equip.cloud/events request returned errors: [host: ejemplo.equip.cloud, hostUserId: f8015576-329b-48f2-a00d-f1d2729ca950, localUserId: dd364f97-2492-45db-bdd1-daf67d7f23f9, error: [32m'User is not synced with the service outlook'[39m]
```

4

```
2022-06-17T07:00:41.284Z [31merror[39m: outlook-resubscription error when getting events from calendar: [host: d2c5-2800-150-10c-3240-b479-6295-bf3d-4eb5.ngrok.io, hostUserId: f072636e-af39-4bf3-b2cb-6a5c8cae7450, localUserId: d8831390-4c57-498b-9661-b5609962dba4, error: FetchError: invalid json response body at https://d2c5-2800-150-10c-3240-b479-6295-bf3d-4eb5.ngrok.io/api/getDate reason: Unexpected token < in JSON at position 0
    at /home/auth2/node_modules/[4mnode-fetch[24m/lib/index.js:273:32
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async getCalendarInfo (/home/auth2/dist/utils.js:336:9)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:143:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
  type: [32m'invalid-json'[39m
}]
```

5

```
2022-06-17T07:00:41.225Z [31merror[39m: renewOutlookSubscription error while creating new subscription: [host: d2c5-2800-150-10c-3240-b479-6295-bf3d-4eb5.ngrok.io, hostUserId: f072636e-af39-4bf3-b2cb-6a5c8cae7450, localUserId: d8831390-4c57-498b-9661-b5609962dba4] error: {
  error: GraphError: CompactToken validation failed with reason code: 80049228.
      at new GraphError (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphError.js:31:28)
      at Function.GraphErrorHandler.constructErrorFromResponse (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphErrorHandler.js:61:22)
      at Function.<anonymous> (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphErrorHandler.js:92:48)
      at step (/home/auth2/node_modules/[4mtslib[24m/tslib.js:141:27)
      at Object.next (/home/auth2/node_modules/[4mtslib[24m/tslib.js:122:57)
      at /home/auth2/node_modules/[4mtslib[24m/tslib.js:115:75
      at new Promise (<anonymous>)
      at Object.__awaiter (/home/auth2/node_modules/[4mtslib[24m/tslib.js:111:16) {
    statusCode: [33m401[39m,
    code: [32m'InvalidAuthenticationToken'[39m,
    requestId: [32m'272dab6e-ec93-452b-a59f-4547facec80a'[39m,
    date: [35m2022-06-17T11:00:41.000Z[39m,
    body: [32m'{"code":"InvalidAuthenticationToken","message":"CompactToken validation failed with reason code: 80049228.","innerError":{"date":"2022-06-17T07:00:41","request-id":"272dab6e-ec93-452b-a59f-4547facec80a","client-request-id":"b8b80b0a-0eb6-b030-ad8a-0d0afae1bb9c"}}'[39m
  }
}
```


6
```
2022-06-17T07:00:41.108Z [31merror[39m: renewOutlookSubscription error executing validateToken: [host: d2c5-2800-150-10c-3240-b479-6295-bf3d-4eb5.ngrok.io, hostUserId: f072636e-af39-4bf3-b2cb-6a5c8cae7450, localUserId: d8831390-4c57-498b-9661-b5609962dba4, error: Error: Response Error: 400 Bad Request
    at internals.Client._shortcut (/home/auth2/node_modules/[4mwreck[24m/lib/index.js:635:11)
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async Object.request (/home/auth2/node_modules/[4msimple-oauth2[24m/lib/core.js:64:20)
    at async AccessToken.refresh (/home/auth2/node_modules/[4msimple-oauth2[24m/lib/access-token/index.js:35:24)
    at async validateToken (/home/auth2/dist/utils.js:243:15)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:63:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
payload: {
      error: [32m'invalid_grant'[39m,
      error_description: [32m'AADSTS70000: The request was denied because one or more scopes requested are unauthorized or expired. The user must first sign in and grant the client application access to the requested scope.\r\n'[39m +
        [32m'Trace ID: c5eaa08b-06da-4c6f-bedf-c09b86e6fe00\r\n'[39m +
        [32m'Correlation ID: 5921ae95-dc10-4cec-987b-7d97b7d11317\r\n'[39m +
        [32m'Timestamp: 2022-06-17 07:00:41Z'[39m,
      error_codes: [ [33m70000[39m ],
      timestamp: [32m'2022-06-17 07:00:41Z'[39m,
      trace_id: [32m'c5eaa08b-06da-4c6f-bedf-c09b86e6fe00'[39m,
      correlation_id: [32m'5921ae95-dc10-4cec-987b-7d97b7d11317'[39m,
      error_uri: [32m'https://login.microsoftonline.com/error?code=70000'[39m
    }
```

7

```
2022-06-17T07:00:40.841Z [31merror[39m: outlook-resubscription error when getting events from calendar: [host: 4beb-2800-150-10c-3240-d857-51e9-6423-2c70.ngrok.io, hostUserId: f072636e-af39-4bf3-b2cb-6a5c8cae7450, localUserId: bbfbc5ac-be0a-45a4-930f-bae997b64b09, error: FetchError: invalid json response body at https://4beb-2800-150-10c-3240-d857-51e9-6423-2c70.ngrok.io/api/getDate reason: Unexpected token < in JSON at position 0
    at /home/auth2/node_modules/[4mnode-fetch[24m/lib/index.js:273:32
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async getCalendarInfo (/home/auth2/dist/utils.js:336:9)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:143:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
  type: [32m'invalid-json'[39m
}]
```

8

```
2022-06-17T07:00:40.784Z [31merror[39m: renewOutlookSubscription error while creating new subscription: [host: 4beb-2800-150-10c-3240-d857-51e9-6423-2c70.ngrok.io, hostUserId: f072636e-af39-4bf3-b2cb-6a5c8cae7450, localUserId: bbfbc5ac-be0a-45a4-930f-bae997b64b09] error: {
  error: GraphError: CompactToken validation failed with reason code: 80049228.
      at new GraphError (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphError.js:31:28)
      at Function.GraphErrorHandler.constructErrorFromResponse (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphErrorHandler.js:61:22)
      at Function.<anonymous> (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphErrorHandler.js:92:48)
      at step (/home/auth2/node_modules/[4mtslib[24m/tslib.js:141:27)
      at Object.next (/home/auth2/node_modules/[4mtslib[24m/tslib.js:122:57)
      at /home/auth2/node_modules/[4mtslib[24m/tslib.js:115:75
      at new Promise (<anonymous>)
      at Object.__awaiter (/home/auth2/node_modules/[4mtslib[24m/tslib.js:111:16) {
    statusCode: [33m401[39m,
    code: [32m'InvalidAuthenticationToken'[39m,
    requestId: [32m'a7f3d4ca-9a0a-4c51-ad39-49fb4e1ddd47'[39m,
    date: [35m2022-06-17T11:00:40.000Z[39m,
    body: [32m'{"code":"InvalidAuthenticationToken","message":"CompactToken validation failed with reason code: 80049228.","innerError":{"date":"2022-06-17T07:00:40","request-id":"a7f3d4ca-9a0a-4c51-ad39-49fb4e1ddd47","client-request-id":"9b01f4a2-7b12-891a-50da-dc16e8276d37"}}'[39m
  }
}
```

9

```
2022-06-17T07:00:40.582Z [31merror[39m: renewOutlookSubscription error executing validateToken: [host: 4beb-2800-150-10c-3240-d857-51e9-6423-2c70.ngrok.io, hostUserId: f072636e-af39-4bf3-b2cb-6a5c8cae7450, localUserId: bbfbc5ac-be0a-45a4-930f-bae997b64b09, error: Error: Response Error: 400 Bad Request
    at internals.Client._shortcut (/home/auth2/node_modules/[4mwreck[24m/lib/index.js:635:11)
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async Object.request (/home/auth2/node_modules/[4msimple-oauth2[24m/lib/core.js:64:20)
    at async AccessToken.refresh (/home/auth2/node_modules/[4msimple-oauth2[24m/lib/access-token/index.js:35:24)
    at async validateToken (/home/auth2/dist/utils.js:243:15)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:63:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
payload: {
      error: [32m'invalid_grant'[39m,
      error_description: [32m'AADSTS70000: The request was denied because one or more scopes requested are unauthorized or expired. The user must first sign in and grant the client application access to the requested scope.\r\n'[39m +
        [32m'Trace ID: 6320037c-79d8-4f0f-a4b0-5adb1d403a02\r\n'[39m +
        [32m'Correlation ID: 36a12e13-e402-4b96-bae8-a1a222d953c7\r\n'[39m +
        [32m'Timestamp: 2022-06-17 07:00:40Z'[39m,
      error_codes: [ [33m70000[39m ],
      timestamp: [32m'2022-06-17 07:00:40Z'[39m,
      trace_id: [32m'6320037c-79d8-4f0f-a4b0-5adb1d403a02'[39m,
      correlation_id: [32m'36a12e13-e402-4b96-bae8-a1a222d953c7'[39m,
      error_uri: [32m'https://login.microsoftonline.com/error?code=70000'[39m
    }
```

10

```
2022-06-17T07:00:40.201Z [31merror[39m: outlook-resubscription error when getting events from calendar: [host: b751-2800-150-10c-3240-51f0-ab96-d842-1203.ngrok.io, hostUserId: 64c54e9d-10c9-4fb4-8681-e8741336e792, localUserId: b5e59f87-ee77-40d3-a48b-eba89094f244, error: FetchError: invalid json response body at https://b751-2800-150-10c-3240-51f0-ab96-d842-1203.ngrok.io/api/getDate reason: Unexpected token < in JSON at position 0
    at /home/auth2/node_modules/[4mnode-fetch[24m/lib/index.js:273:32
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async getCalendarInfo (/home/auth2/dist/utils.js:336:9)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:143:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
  type: [32m'invalid-json'[39m
}]
```

11

```
2022-06-17T07:00:40.145Z [31merror[39m: renewOutlookSubscription error while creating new subscription: [host: b751-2800-150-10c-3240-51f0-ab96-d842-1203.ngrok.io, hostUserId: 64c54e9d-10c9-4fb4-8681-e8741336e792, localUserId: b5e59f87-ee77-40d3-a48b-eba89094f244] error: {
  error: GraphError: CompactToken validation failed with reason code: 80049228.
      at new GraphError (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphError.js:31:28)
      at Function.GraphErrorHandler.constructErrorFromResponse (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphErrorHandler.js:61:22)
      at Function.<anonymous> (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphErrorHandler.js:92:48)
      at step (/home/auth2/node_modules/[4mtslib[24m/tslib.js:141:27)
      at Object.next (/home/auth2/node_modules/[4mtslib[24m/tslib.js:122:57)
      at /home/auth2/node_modules/[4mtslib[24m/tslib.js:115:75
      at new Promise (<anonymous>)
      at Object.__awaiter (/home/auth2/node_modules/[4mtslib[24m/tslib.js:111:16) {
    statusCode: [33m401[39m,
    code: [32m'InvalidAuthenticationToken'[39m,
    requestId: [32m'9f5d2f1f-0029-48d8-809d-a17f93044fe6'[39m,
    date: [35m2022-06-17T11:00:40.000Z[39m,
    body: [32m'{"code":"InvalidAuthenticationToken","message":"CompactToken validation failed with reason code: 80049228.","innerError":{"date":"2022-06-17T07:00:40","request-id":"9f5d2f1f-0029-48d8-809d-a17f93044fe6","client-request-id":"a83aa340-3656-5879-12c6-762757e072c1"}}'[39m
  }
}
```

12

```
2022-06-17T07:00:40.035Z [31merror[39m: renewOutlookSubscription error executing validateToken: [host: b751-2800-150-10c-3240-51f0-ab96-d842-1203.ngrok.io, hostUserId: 64c54e9d-10c9-4fb4-8681-e8741336e792, localUserId: b5e59f87-ee77-40d3-a48b-eba89094f244, error: Error: Response Error: 400 Bad Request
    at internals.Client._shortcut (/home/auth2/node_modules/[4mwreck[24m/lib/index.js:635:11)
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async Object.request (/home/auth2/node_modules/[4msimple-oauth2[24m/lib/core.js:64:20)
    at async AccessToken.refresh (/home/auth2/node_modules/[4msimple-oauth2[24m/lib/access-token/index.js:35:24)
    at async validateToken (/home/auth2/dist/utils.js:243:15)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:63:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
payload: {
      error: [32m'invalid_grant'[39m,
      error_description: [32m'AADSTS70000: The request was denied because one or more scopes requested are unauthorized or expired. The user must first sign in and grant the client application access to the requested scope.\r\n'[39m +
        [32m'Trace ID: eaeffdaa-21cb-4d7e-80b8-cb8b426c2e02\r\n'[39m +
        [32m'Correlation ID: f47f4ad6-9733-435d-8e79-ae15c019c0f1\r\n'[39m +
        [32m'Timestamp: 2022-06-17 07:00:39Z'[39m,
      error_codes: [ [33m70000[39m ],
      timestamp: [32m'2022-06-17 07:00:39Z'[39m,
      trace_id: [32m'eaeffdaa-21cb-4d7e-80b8-cb8b426c2e02'[39m,
      correlation_id: [32m'f47f4ad6-9733-435d-8e79-ae15c019c0f1'[39m,
      error_uri: [32m'https://login.microsoftonline.com/error?code=70000'[39m
    }
```

13

```
2022-06-17T07:00:39.702Z [31merror[39m: outlook-resubscription error when getting events from calendar: [host: f85f-2800-150-10c-3240-54a9-3adf-d04e-7ecf.ngrok.io, hostUserId: f072636e-af39-4bf3-b2cb-6a5c8cae7450, localUserId: b4da4526-f903-44b7-84c2-bff20ae7582c, error: FetchError: invalid json response body at https://f85f-2800-150-10c-3240-54a9-3adf-d04e-7ecf.ngrok.io/api/getDate reason: Unexpected token < in JSON at position 0
    at /home/auth2/node_modules/[4mnode-fetch[24m/lib/index.js:273:32
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async getCalendarInfo (/home/auth2/dist/utils.js:336:9)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:143:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
  type: [32m'invalid-json'[39m
}]
```

14

```
2022-06-17T07:00:39.636Z [31merror[39m: renewOutlookSubscription error while creating new subscription: [host: f85f-2800-150-10c-3240-54a9-3adf-d04e-7ecf.ngrok.io, hostUserId: f072636e-af39-4bf3-b2cb-6a5c8cae7450, localUserId: b4da4526-f903-44b7-84c2-bff20ae7582c] error: {
  error: GraphError: CompactToken validation failed with reason code: 80049228.
      at new GraphError (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphError.js:31:28)
      at Function.GraphErrorHandler.constructErrorFromResponse (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphErrorHandler.js:61:22)
      at Function.<anonymous> (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphErrorHandler.js:92:48)
      at step (/home/auth2/node_modules/[4mtslib[24m/tslib.js:141:27)
      at Object.next (/home/auth2/node_modules/[4mtslib[24m/tslib.js:122:57)
      at /home/auth2/node_modules/[4mtslib[24m/tslib.js:115:75
      at new Promise (<anonymous>)
      at Object.__awaiter (/home/auth2/node_modules/[4mtslib[24m/tslib.js:111:16) {
    statusCode: [33m401[39m,
    code: [32m'InvalidAuthenticationToken'[39m,
    requestId: [32m'243c990f-327e-4e1f-96de-8daace78d11b'[39m,
    date: [35m2022-06-17T11:00:39.000Z[39m,
    body: [32m'{"code":"InvalidAuthenticationToken","message":"CompactToken validation failed with reason code: 80049228.","innerError":{"date":"2022-06-17T07:00:39","request-id":"243c990f-327e-4e1f-96de-8daace78d11b","client-request-id":"a4dcac62-b2c4-2246-ae06-4bb2709a83a4"}}'[39m
  }
}
```

15

```
payload: {
      error: [32m'invalid_grant'[39m,
      error_description: [32m'AADSTS70000: The request was denied because one or more scopes requested are unauthorized or expired. The user must first sign in and grant the client application access to the requested scope.\r\n'[39m +
        [32m'Trace ID: 3131fae2-dc9d-44e7-aeb2-2ba45bf14601\r\n'[39m +
        [32m'Correlation ID: 07610e97-1bec-4397-94e5-3d34e845f3a6\r\n'[39m +
        [32m'Timestamp: 2022-06-17 07:00:39Z'[39m,
      error_codes: [ [33m70000[39m ],
      timestamp: [32m'2022-06-17 07:00:39Z'[39m,
      trace_id: [32m'3131fae2-dc9d-44e7-aeb2-2ba45bf14601'[39m,
      correlation_id: [32m'07610e97-1bec-4397-94e5-3d34e845f3a6'[39m,
      error_uri: [32m'https://login.microsoftonline.com/error?code=70000'[39m
    }
    
```

16

```
2022-06-17T07:00:39.470Z [31merror[39m: renewOutlookSubscription error executing validateToken: [host: f85f-2800-150-10c-3240-54a9-3adf-d04e-7ecf.ngrok.io, hostUserId: f072636e-af39-4bf3-b2cb-6a5c8cae7450, localUserId: b4da4526-f903-44b7-84c2-bff20ae7582c, error: Error: Response Error: 400 Bad Request
    at internals.Client._shortcut (/home/auth2/node_modules/[4mwreck[24m/lib/index.js:635:11)
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async Object.request (/home/auth2/node_modules/[4msimple-oauth2[24m/lib/core.js:64:20)
    at async AccessToken.refresh (/home/auth2/node_modules/[4msimple-oauth2[24m/lib/access-token/index.js:35:24)
    at async validateToken (/home/auth2/dist/utils.js:243:15)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:63:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
```

17

```
2022-06-17T07:00:39.176Z [31merror[39m: outlook-resubscription error when getting events from calendar: [host: 908b-2800-150-10c-3240-d4fd-b483-e794-2e86.ngrok.io, hostUserId: f072636e-af39-4bf3-b2cb-6a5c8cae7450, localUserId: aeed68d7-a214-4fc9-9c61-c9a182243c58, error: FetchError: invalid json response body at https://908b-2800-150-10c-3240-d4fd-b483-e794-2e86.ngrok.io/api/getDate reason: Unexpected token < in JSON at position 0
    at /home/auth2/node_modules/[4mnode-fetch[24m/lib/index.js:273:32
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async getCalendarInfo (/home/auth2/dist/utils.js:336:9)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:143:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
  type: [32m'invalid-json'[39m
}]
```

18

```
2022-06-17T07:00:39.115Z [31merror[39m: renewOutlookSubscription error while creating new subscription: [host: 908b-2800-150-10c-3240-d4fd-b483-e794-2e86.ngrok.io, hostUserId: f072636e-af39-4bf3-b2cb-6a5c8cae7450, localUserId: aeed68d7-a214-4fc9-9c61-c9a182243c58] error: {
  error: GraphError: CompactToken validation failed with reason code: 80049228.
      at new GraphError (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphError.js:31:28)
      at Function.GraphErrorHandler.constructErrorFromResponse (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphErrorHandler.js:61:22)
      at Function.<anonymous> (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphErrorHandler.js:92:48)
      at step (/home/auth2/node_modules/[4mtslib[24m/tslib.js:141:27)
      at Object.next (/home/auth2/node_modules/[4mtslib[24m/tslib.js:122:57)
      at /home/auth2/node_modules/[4mtslib[24m/tslib.js:115:75
      at new Promise (<anonymous>)
      at Object.__awaiter (/home/auth2/node_modules/[4mtslib[24m/tslib.js:111:16) {
    statusCode: [33m401[39m,
    code: [32m'InvalidAuthenticationToken'[39m,
    requestId: [32m'34e56fa5-bcfa-434c-86c5-7b9edb50f189'[39m,
    date: [35m2022-06-17T11:00:39.000Z[39m,
    body: [32m'{"code":"InvalidAuthenticationToken","message":"CompactToken validation failed with reason code: 80049228.","innerError":{"date":"2022-06-17T07:00:39","request-id":"34e56fa5-bcfa-434c-86c5-7b9edb50f189","client-request-id":"49c380b5-afd9-ee29-65cf-3e22ac7a42a2"}}'[39m
  }
}
```

19

```
2022-06-17T07:00:38.983Z [31merror[39m: renewOutlookSubscription error executing validateToken: [host: 908b-2800-150-10c-3240-d4fd-b483-e794-2e86.ngrok.io, hostUserId: f072636e-af39-4bf3-b2cb-6a5c8cae7450, localUserId: aeed68d7-a214-4fc9-9c61-c9a182243c58, error: Error: Response Error: 400 Bad Request
    at internals.Client._shortcut (/home/auth2/node_modules/[4mwreck[24m/lib/index.js:635:11)
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async Object.request (/home/auth2/node_modules/[4msimple-oauth2[24m/lib/core.js:64:20)
    at async AccessToken.refresh (/home/auth2/node_modules/[4msimple-oauth2[24m/lib/access-token/index.js:35:24)
    at async validateToken (/home/auth2/dist/utils.js:243:15)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:63:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
payload: {
      error: [32m'invalid_grant'[39m,
      error_description: [32m'AADSTS70000: The request was denied because one or more scopes requested are unauthorized or expired. The user must first sign in and grant the client application access to the requested scope.\r\n'[39m +
        [32m'Trace ID: 1ce0d0ac-03d0-44ca-9393-30f0fa8d4601\r\n'[39m +
        [32m'Correlation ID: dccd9c4c-9c6b-4f65-aa04-eacef5e68f8f\r\n'[39m +
        [32m'Timestamp: 2022-06-17 07:00:38Z'[39m,
      error_codes: [ [33m70000[39m ],
      timestamp: [32m'2022-06-17 07:00:38Z'[39m,
      trace_id: [32m'1ce0d0ac-03d0-44ca-9393-30f0fa8d4601'[39m,
      correlation_id: [32m'dccd9c4c-9c6b-4f65-aa04-eacef5e68f8f'[39m,
      error_uri: [32m'https://login.microsoftonline.com/error?code=70000'[39m
    }
```

20

```
2022-06-17T07:00:38.072Z [32minfo[39m: renewOutlookSubscription got new subscription successfully: [host: demo.equipco.app, hostUserId: dc4b1647-f27f-45bb-9951-bf3babe5c8d5, localUserId: a224b717-5f62-4468-9bac-1242e41b4654]
2022-06-17T07:00:38.611Z [31merror[39m: demo.equipco.app/events request returned errors: [host: demo.equipco.app, hostUserId: dc4b1647-f27f-45bb-9951-bf3babe5c8d5, localUserId: a224b717-5f62-4468-9bac-1242e41b4654, error: [32m'User is not synced with the service outlook'[39m]
```

21
```
2022-06-17T07:00:36.817Z [31merror[39m: outlook-resubscription error when getting events from calendar: [host: 3589-2800-150-10c-3240-5144-49ac-8168-2123.ngrok.io, hostUserId: 64c54e9d-10c9-4fb4-8681-e8741336e792, localUserId: 974bcf2a-99be-442d-99c9-6b3e82b18be8, error: FetchError: invalid json response body at https://3589-2800-150-10c-3240-5144-49ac-8168-2123.ngrok.io/api/getDate reason: Unexpected token < in JSON at position 0
    at /home/auth2/node_modules/[4mnode-fetch[24m/lib/index.js:273:32
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async getCalendarInfo (/home/auth2/dist/utils.js:336:9)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:143:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
  type: [32m'invalid-json'[39m
}]
```

22

```
2022-06-17T07:00:36.757Z [32minfo[39m: renewOutlookSubscription got new subscription successfully: [host: 3589-2800-150-10c-3240-5144-49ac-8168-2123.ngrok.io, hostUserId: 64c54e9d-10c9-4fb4-8681-e8741336e792, localUserId: 974bcf2a-99be-442d-99c9-6b3e82b18be8]
```

23

```
2022-06-17T07:00:34.881Z [31merror[39m: ejemplo.equip.cloud/events request returned errors: [host: ejemplo.equip.cloud, hostUserId: 177fabf8-6fc3-45d2-b23d-cf2a2d27ef78, localUserId: 8c0435fd-6179-4e93-b4a7-3191726386bb, error: [32m'User is not synced with the service outlook'[39m]
```

24

```
2022-06-17T07:00:30.602Z [31merror[39m: outlook-resubscription error when getting events from calendar: [host: 4beb-2800-150-10c-3240-d857-51e9-6423-2c70.ngrok.io, hostUserId: 64c54e9d-10c9-4fb4-8681-e8741336e792, localUserId: 75fda962-f69e-4099-a367-ea0a71548cb5, error: FetchError: invalid json response body at https://4beb-2800-150-10c-3240-d857-51e9-6423-2c70.ngrok.io/api/getDate reason: Unexpected token < in JSON at position 0
    at /home/auth2/node_modules/[4mnode-fetch[24m/lib/index.js:273:32
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async getCalendarInfo (/home/auth2/dist/utils.js:336:9)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:143:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
  type: [32m'invalid-json'[39m
}]
```

25
```
2022-06-17T07:00:29.304Z [31merror[39m: outlook-resubscription error when getting events from calendar: [host: d2c5-2800-150-10c-3240-b479-6295-bf3d-4eb5.ngrok.io, hostUserId: 64c54e9d-10c9-4fb4-8681-e8741336e792, localUserId: 69cb57a5-82bc-4381-87a3-1a5ac7058316, error: FetchError: invalid json response body at https://d2c5-2800-150-10c-3240-b479-6295-bf3d-4eb5.ngrok.io/api/getDate reason: Unexpected token < in JSON at position 0
    at /home/auth2/node_modules/[4mnode-fetch[24m/lib/index.js:273:32
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async getCalendarInfo (/home/auth2/dist/utils.js:336:9)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:143:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
  type: [32m'invalid-json'[39m
}]
```

26

```
2022-06-17T07:00:25.962Z [31merror[39m: outlook-resubscription error when getting events from calendar: [host: f85f-2800-150-10c-3240-54a9-3adf-d04e-7ecf.ngrok.io, hostUserId: 64c54e9d-10c9-4fb4-8681-e8741336e792, localUserId: 5d44db2f-3923-4617-b5ac-d2c8707ff6f9, error: FetchError: invalid json response body at https://f85f-2800-150-10c-3240-54a9-3adf-d04e-7ecf.ngrok.io/api/getDate reason: Unexpected token < in JSON at position 0
    at /home/auth2/node_modules/[4mnode-fetch[24m/lib/index.js:273:32
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async getCalendarInfo (/home/auth2/dist/utils.js:336:9)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:143:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
  type: [32m'invalid-json'[39m
}]
```

27
```
2022-06-17T07:00:24.506Z [31merror[39m: nico1.equip.cloud/events request returned errors: [host: nico1.equip.cloud, hostUserId: f072636e-af39-4bf3-b2cb-6a5c8cae7450, localUserId: 55220402-12b8-4fdc-bc94-04f464e60362, error: [32m'User is not synced with the service outlook'[39m]
```
28
```
2022-06-17T07:00:19.026Z [31merror[39m: ejemplo.equip.cloud/events request returned errors: [host: ejemplo.equip.cloud, hostUserId: f06b72ff-2937-48b6-afde-af91c12aa5fa, localUserId: 5192c483-555c-487a-84eb-cf7e7afc5be4, error: [32m'User is not synced with the service outlook'[39m]
```
29
```
2022-06-17T07:00:14.893Z [31merror[39m: outlook-resubscription error when getting events from calendar: [host: a56f-2800-150-10c-3240-119f-161e-923-4764.ngrok.io, hostUserId: 64c54e9d-10c9-4fb4-8681-e8741336e792, localUserId: 3a519c2b-a034-4405-a893-d1dcf9a97d0a, error: FetchError: invalid json response body at https://a56f-2800-150-10c-3240-119f-161e-923-4764.ngrok.io/api/getDate reason: Unexpected token < in JSON at position 0
    at /home/auth2/node_modules/[4mnode-fetch[24m/lib/index.js:273:32
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async getCalendarInfo (/home/auth2/dist/utils.js:336:9)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:143:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
  type: [32m'invalid-json'[39m
}]
```

30
```
2022-06-17T07:00:12.853Z [31merror[39m: outlook-resubscription error when getting events from calendar: [host: 3589-2800-150-10c-3240-5144-49ac-8168-2123.ngrok.io, hostUserId: f072636e-af39-4bf3-b2cb-6a5c8cae7450, localUserId: 300416cb-516f-4858-9a46-7c3f40ad07e9, error: FetchError: invalid json response body at https://3589-2800-150-10c-3240-5144-49ac-8168-2123.ngrok.io/api/getDate reason: Unexpected token < in JSON at position 0
    at /home/auth2/node_modules/[4mnode-fetch[24m/lib/index.js:273:32
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async getCalendarInfo (/home/auth2/dist/utils.js:336:9)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:143:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
  type: [32m'invalid-json'[39m
}]
```

31

```
}]
2022-06-17T07:00:12.787Z [31merror[39m: renewOutlookSubscription error while creating new subscription: [host: 3589-2800-150-10c-3240-5144-49ac-8168-2123.ngrok.io, hostUserId: f072636e-af39-4bf3-b2cb-6a5c8cae7450, localUserId: 300416cb-516f-4858-9a46-7c3f40ad07e9] error: {
  error: GraphError: CompactToken validation failed with reason code: 80049228.
      at new GraphError (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphError.js:31:28)
      at Function.GraphErrorHandler.constructErrorFromResponse (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphErrorHandler.js:61:22)
      at Function.<anonymous> (/home/auth2/node_modules/[4m@microsoft[24m/microsoft-graph-client/lib/src/GraphErrorHandler.js:92:48)
      at step (/home/auth2/node_modules/[4mtslib[24m/tslib.js:141:27)
      at Object.next (/home/auth2/node_modules/[4mtslib[24m/tslib.js:122:57)
      at /home/auth2/node_modules/[4mtslib[24m/tslib.js:115:75
      at new Promise (<anonymous>)
      at Object.__awaiter (/home/auth2/node_modules/[4mtslib[24m/tslib.js:111:16) {
    statusCode: [33m401[39m,
    code: [32m'InvalidAuthenticationToken'[39m,
    requestId: [32m'029bb6b4-cd10-4b37-9a7a-d8a3803936a8'[39m,
    date: [35m2022-06-17T11:00:12.000Z[39m,
    body: [32m'{"code":"InvalidAuthenticationToken","message":"CompactToken validation failed with reason code: 80049228.","innerError":{"date":"2022-06-17T07:00:12","request-id":"029bb6b4-cd10-4b37-9a7a-d8a3803936a8","client-request-id":"0c8d70f7-ae7d-0c1b-9c33-febf37e6c803"}}'[39m
  }
}
```

32
```

payload: {
      error: [32m'invalid_grant'[39m,
      error_description: [32m'AADSTS70000: The request was denied because one or more scopes requested are unauthorized or expired. The user must first sign in and grant the client application access to the requested scope.\r\n'[39m +
        [32m'Trace ID: 61e9c80d-bd8a-4cd1-9f9f-ccf61c5d1e00\r\n'[39m +
        [32m'Correlation ID: ff65eb62-9bfa-4d4d-aa1e-cff1d096dfc6\r\n'[39m +
        [32m'Timestamp: 2022-06-17 07:00:12Z'[39m,
      error_codes: [ [33m70000[39m ],
      timestamp: [32m'2022-06-17 07:00:12Z'[39m,
      trace_id: [32m'61e9c80d-bd8a-4cd1-9f9f-ccf61c5d1e00'[39m,
      correlation_id: [32m'ff65eb62-9bfa-4d4d-aa1e-cff1d096dfc6'[39m,
      error_uri: [32m'https://login.microsoftonline.com/error?code=70000'[39m
    }
```

33

```
2022-06-17T07:00:12.631Z [31merror[39m: renewOutlookSubscription error executing validateToken: [host: 3589-2800-150-10c-3240-5144-49ac-8168-2123.ngrok.io, hostUserId: f072636e-af39-4bf3-b2cb-6a5c8cae7450, localUserId: 300416cb-516f-4858-9a46-7c3f40ad07e9, error: Error: Response Error: 400 Bad Request
    at internals.Client._shortcut (/home/auth2/node_modules/[4mwreck[24m/lib/index.js:635:11)
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async Object.request (/home/auth2/node_modules/[4msimple-oauth2[24m/lib/core.js:64:20)
    at async AccessToken.refresh (/home/auth2/node_modules/[4msimple-oauth2[24m/lib/access-token/index.js:35:24)
    at async validateToken (/home/auth2/dist/utils.js:243:15)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:63:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
```

34

```
2022-06-17T07:00:12.215Z [31merror[39m: nico.equip.cloud/events request returned errors: [host: nico.equip.cloud, hostUserId: db8261ea-c0f1-4f3b-9938-0bcdc2fa8dd2, localUserId: 1b2bff07-de96-4ab5-9649-a7cbe2129d1f, error: [32m'User is not synced with the service outlook'[39m]
```
35
```
2022-06-17T07:00:09.499Z [31merror[39m: nico.equip.cloud/events request returned errors: [host: nico.equip.cloud, hostUserId: 9a1fc5a5-83a7-44d9-90de-9c024137889d, localUserId: 14cdd6a2-7115-4809-9c44-2a2599f46571, error: [32m'User is not synced with the service outlook'[39m]
```
36
```
2022-06-17T07:00:05.646Z [31merror[39m: outlook-resubscription error when getting events from calendar: [host: b751-2800-150-10c-3240-51f0-ab96-d842-1203.ngrok.io, hostUserId: db8261ea-c0f1-4f3b-9938-0bcdc2fa8dd2, localUserId: 0bf5868f-4158-4135-b5c2-1f561c54bae9, error: FetchError: invalid json response body at https://b751-2800-150-10c-3240-51f0-ab96-d842-1203.ngrok.io/api/getDate reason: Unexpected token < in JSON at position 0
    at /home/auth2/node_modules/[4mnode-fetch[24m/lib/index.js:273:32
[90m    at processTicksAndRejections (internal/process/task_queues.js:97:5)[39m
    at async getCalendarInfo (/home/auth2/dist/utils.js:336:9)
    at async renewOutlookSubscription (/home/auth2/dist/outlook-resubscribe/index.js:143:15)
    at async Timeout.checkDateBeforeCallback [as _onTimeout] (/home/auth2/dist/libs/cron/index.js:101:9) {
  type: [32m'invalid-json'[39m
}]
```