# Errors in auth-test ## Cron 2022-06-17 1 ``` 2022-06-17T07:00:48.352Z error: 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/@microsoft/microsoft-graph-client/lib/src/GraphError.js:31:28) at Function.GraphErrorHandler.constructErrorFromResponse (/home/auth2/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:61:22) at Function.<anonymous> (/home/auth2/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:92:48) at step (/home/auth2/node_modules/tslib/tslib.js:141:27) at Object.next (/home/auth2/node_modules/tslib/tslib.js:122:57) at /home/auth2/node_modules/tslib/tslib.js:115:75 at new Promise (<anonymous>) at Object.__awaiter (/home/auth2/node_modules/tslib/tslib.js:111:16) { statusCode: 401, code: 'InvalidAuthenticationToken', requestId: '34662a79-b7b3-4bae-b1eb-a42825a6a207', date: 2022-06-17T11:00:48.000Z, body: '{"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 error: 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/wreck/lib/index.js:635:11)  at processTicksAndRejections (internal/process/task_queues.js:97:5) at async Object.request (/home/auth2/node_modules/simple-oauth2/lib/core.js:64:20) at async AccessToken.refresh (/home/auth2/node_modules/simple-oauth2/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: true, headers: { 'cache-control': 'no-store, no-cache', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-content-type-options': 'nosniff', p3p: 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id': '03e4982b-f787-47a9-9fb3-5d8bd3293901', 'x-ms-ests-server': '2.1.12851.7 - EUS ProdSlices', 'x-xss-protection': '0', 'set-cookie': [ 'fpc=AqG_dPVGSdFMq4n-ZNIvoUoGXCWpAQAAAJ8dPtoOAAAA; expires=Sun, 17-Jul-2022 07:00:48 GMT; path=/; secure; HttpOnly; SameSite=None', 'x-ms-gateway-slice=estsfd; path=/; secure; httponly', 'stsservicecookie=estsfd; path=/; secure; httponly' ], date: 'Fri, 17 Jun 2022 07:00:47 GMT', connection: 'close', 'content-length': '610' }, payload: { error: 'invalid_grant', error_description: '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' + 'Trace ID: 03e4982b-f787-47a9-9fb3-5d8bd3293901\r\n' + 'Correlation ID: bd6a6045-4bd9-4b37-88d2-ba231e3e636d\r\n' + 'Timestamp: 2022-06-17 07:00:48Z', error_codes: [ 70000 ], timestamp: '2022-06-17 07:00:48Z', trace_id: '03e4982b-f787-47a9-9fb3-5d8bd3293901', correlation_id: 'bd6a6045-4bd9-4b37-88d2-ba231e3e636d', error_uri: 'https://login.microsoftonline.com/error?code=70000' } ``` 3 ``` 2022-06-17T07:00:44.794Z error: ejemplo.equip.cloud/events request returned errors: [host: ejemplo.equip.cloud, hostUserId: f8015576-329b-48f2-a00d-f1d2729ca950, localUserId: dd364f97-2492-45db-bdd1-daf67d7f23f9, error: 'User is not synced with the service outlook'] ``` 4 ``` 2022-06-17T07:00:41.284Z error: 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/node-fetch/lib/index.js:273:32  at processTicksAndRejections (internal/process/task_queues.js:97:5) 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: 'invalid-json' }] ``` 5 ``` 2022-06-17T07:00:41.225Z error: 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/@microsoft/microsoft-graph-client/lib/src/GraphError.js:31:28) at Function.GraphErrorHandler.constructErrorFromResponse (/home/auth2/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:61:22) at Function.<anonymous> (/home/auth2/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:92:48) at step (/home/auth2/node_modules/tslib/tslib.js:141:27) at Object.next (/home/auth2/node_modules/tslib/tslib.js:122:57) at /home/auth2/node_modules/tslib/tslib.js:115:75 at new Promise (<anonymous>) at Object.__awaiter (/home/auth2/node_modules/tslib/tslib.js:111:16) { statusCode: 401, code: 'InvalidAuthenticationToken', requestId: '272dab6e-ec93-452b-a59f-4547facec80a', date: 2022-06-17T11:00:41.000Z, body: '{"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"}}' } } ``` 6 ``` 2022-06-17T07:00:41.108Z error: 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/wreck/lib/index.js:635:11)  at processTicksAndRejections (internal/process/task_queues.js:97:5) at async Object.request (/home/auth2/node_modules/simple-oauth2/lib/core.js:64:20) at async AccessToken.refresh (/home/auth2/node_modules/simple-oauth2/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: 'invalid_grant', error_description: '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' + 'Trace ID: c5eaa08b-06da-4c6f-bedf-c09b86e6fe00\r\n' + 'Correlation ID: 5921ae95-dc10-4cec-987b-7d97b7d11317\r\n' + 'Timestamp: 2022-06-17 07:00:41Z', error_codes: [ 70000 ], timestamp: '2022-06-17 07:00:41Z', trace_id: 'c5eaa08b-06da-4c6f-bedf-c09b86e6fe00', correlation_id: '5921ae95-dc10-4cec-987b-7d97b7d11317', error_uri: 'https://login.microsoftonline.com/error?code=70000' } ``` 7 ``` 2022-06-17T07:00:40.841Z error: 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/node-fetch/lib/index.js:273:32  at processTicksAndRejections (internal/process/task_queues.js:97:5) 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: 'invalid-json' }] ``` 8 ``` 2022-06-17T07:00:40.784Z error: 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/@microsoft/microsoft-graph-client/lib/src/GraphError.js:31:28) at Function.GraphErrorHandler.constructErrorFromResponse (/home/auth2/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:61:22) at Function.<anonymous> (/home/auth2/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:92:48) at step (/home/auth2/node_modules/tslib/tslib.js:141:27) at Object.next (/home/auth2/node_modules/tslib/tslib.js:122:57) at /home/auth2/node_modules/tslib/tslib.js:115:75 at new Promise (<anonymous>) at Object.__awaiter (/home/auth2/node_modules/tslib/tslib.js:111:16) { statusCode: 401, code: 'InvalidAuthenticationToken', requestId: 'a7f3d4ca-9a0a-4c51-ad39-49fb4e1ddd47', date: 2022-06-17T11:00:40.000Z, body: '{"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"}}' } } ``` 9 ``` 2022-06-17T07:00:40.582Z error: 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/wreck/lib/index.js:635:11)  at processTicksAndRejections (internal/process/task_queues.js:97:5) at async Object.request (/home/auth2/node_modules/simple-oauth2/lib/core.js:64:20) at async AccessToken.refresh (/home/auth2/node_modules/simple-oauth2/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: 'invalid_grant', error_description: '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' + 'Trace ID: 6320037c-79d8-4f0f-a4b0-5adb1d403a02\r\n' + 'Correlation ID: 36a12e13-e402-4b96-bae8-a1a222d953c7\r\n' + 'Timestamp: 2022-06-17 07:00:40Z', error_codes: [ 70000 ], timestamp: '2022-06-17 07:00:40Z', trace_id: '6320037c-79d8-4f0f-a4b0-5adb1d403a02', correlation_id: '36a12e13-e402-4b96-bae8-a1a222d953c7', error_uri: 'https://login.microsoftonline.com/error?code=70000' } ``` 10 ``` 2022-06-17T07:00:40.201Z error: 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/node-fetch/lib/index.js:273:32  at processTicksAndRejections (internal/process/task_queues.js:97:5) 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: 'invalid-json' }] ``` 11 ``` 2022-06-17T07:00:40.145Z error: 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/@microsoft/microsoft-graph-client/lib/src/GraphError.js:31:28) at Function.GraphErrorHandler.constructErrorFromResponse (/home/auth2/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:61:22) at Function.<anonymous> (/home/auth2/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:92:48) at step (/home/auth2/node_modules/tslib/tslib.js:141:27) at Object.next (/home/auth2/node_modules/tslib/tslib.js:122:57) at /home/auth2/node_modules/tslib/tslib.js:115:75 at new Promise (<anonymous>) at Object.__awaiter (/home/auth2/node_modules/tslib/tslib.js:111:16) { statusCode: 401, code: 'InvalidAuthenticationToken', requestId: '9f5d2f1f-0029-48d8-809d-a17f93044fe6', date: 2022-06-17T11:00:40.000Z, body: '{"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"}}' } } ``` 12 ``` 2022-06-17T07:00:40.035Z error: 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/wreck/lib/index.js:635:11)  at processTicksAndRejections (internal/process/task_queues.js:97:5) at async Object.request (/home/auth2/node_modules/simple-oauth2/lib/core.js:64:20) at async AccessToken.refresh (/home/auth2/node_modules/simple-oauth2/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: 'invalid_grant', error_description: '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' + 'Trace ID: eaeffdaa-21cb-4d7e-80b8-cb8b426c2e02\r\n' + 'Correlation ID: f47f4ad6-9733-435d-8e79-ae15c019c0f1\r\n' + 'Timestamp: 2022-06-17 07:00:39Z', error_codes: [ 70000 ], timestamp: '2022-06-17 07:00:39Z', trace_id: 'eaeffdaa-21cb-4d7e-80b8-cb8b426c2e02', correlation_id: 'f47f4ad6-9733-435d-8e79-ae15c019c0f1', error_uri: 'https://login.microsoftonline.com/error?code=70000' } ``` 13 ``` 2022-06-17T07:00:39.702Z error: 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/node-fetch/lib/index.js:273:32  at processTicksAndRejections (internal/process/task_queues.js:97:5) 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: 'invalid-json' }] ``` 14 ``` 2022-06-17T07:00:39.636Z error: 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/@microsoft/microsoft-graph-client/lib/src/GraphError.js:31:28) at Function.GraphErrorHandler.constructErrorFromResponse (/home/auth2/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:61:22) at Function.<anonymous> (/home/auth2/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:92:48) at step (/home/auth2/node_modules/tslib/tslib.js:141:27) at Object.next (/home/auth2/node_modules/tslib/tslib.js:122:57) at /home/auth2/node_modules/tslib/tslib.js:115:75 at new Promise (<anonymous>) at Object.__awaiter (/home/auth2/node_modules/tslib/tslib.js:111:16) { statusCode: 401, code: 'InvalidAuthenticationToken', requestId: '243c990f-327e-4e1f-96de-8daace78d11b', date: 2022-06-17T11:00:39.000Z, body: '{"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"}}' } } ``` 15 ``` payload: { error: 'invalid_grant', error_description: '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' + 'Trace ID: 3131fae2-dc9d-44e7-aeb2-2ba45bf14601\r\n' + 'Correlation ID: 07610e97-1bec-4397-94e5-3d34e845f3a6\r\n' + 'Timestamp: 2022-06-17 07:00:39Z', error_codes: [ 70000 ], timestamp: '2022-06-17 07:00:39Z', trace_id: '3131fae2-dc9d-44e7-aeb2-2ba45bf14601', correlation_id: '07610e97-1bec-4397-94e5-3d34e845f3a6', error_uri: 'https://login.microsoftonline.com/error?code=70000' } ``` 16 ``` 2022-06-17T07:00:39.470Z error: 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/wreck/lib/index.js:635:11)  at processTicksAndRejections (internal/process/task_queues.js:97:5) at async Object.request (/home/auth2/node_modules/simple-oauth2/lib/core.js:64:20) at async AccessToken.refresh (/home/auth2/node_modules/simple-oauth2/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 error: 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/node-fetch/lib/index.js:273:32  at processTicksAndRejections (internal/process/task_queues.js:97:5) 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: 'invalid-json' }] ``` 18 ``` 2022-06-17T07:00:39.115Z error: 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/@microsoft/microsoft-graph-client/lib/src/GraphError.js:31:28) at Function.GraphErrorHandler.constructErrorFromResponse (/home/auth2/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:61:22) at Function.<anonymous> (/home/auth2/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:92:48) at step (/home/auth2/node_modules/tslib/tslib.js:141:27) at Object.next (/home/auth2/node_modules/tslib/tslib.js:122:57) at /home/auth2/node_modules/tslib/tslib.js:115:75 at new Promise (<anonymous>) at Object.__awaiter (/home/auth2/node_modules/tslib/tslib.js:111:16) { statusCode: 401, code: 'InvalidAuthenticationToken', requestId: '34e56fa5-bcfa-434c-86c5-7b9edb50f189', date: 2022-06-17T11:00:39.000Z, body: '{"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"}}' } } ``` 19 ``` 2022-06-17T07:00:38.983Z error: 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/wreck/lib/index.js:635:11)  at processTicksAndRejections (internal/process/task_queues.js:97:5) at async Object.request (/home/auth2/node_modules/simple-oauth2/lib/core.js:64:20) at async AccessToken.refresh (/home/auth2/node_modules/simple-oauth2/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: 'invalid_grant', error_description: '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' + 'Trace ID: 1ce0d0ac-03d0-44ca-9393-30f0fa8d4601\r\n' + 'Correlation ID: dccd9c4c-9c6b-4f65-aa04-eacef5e68f8f\r\n' + 'Timestamp: 2022-06-17 07:00:38Z', error_codes: [ 70000 ], timestamp: '2022-06-17 07:00:38Z', trace_id: '1ce0d0ac-03d0-44ca-9393-30f0fa8d4601', correlation_id: 'dccd9c4c-9c6b-4f65-aa04-eacef5e68f8f', error_uri: 'https://login.microsoftonline.com/error?code=70000' } ``` 20 ``` 2022-06-17T07:00:38.072Z info: 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 error: demo.equipco.app/events request returned errors: [host: demo.equipco.app, hostUserId: dc4b1647-f27f-45bb-9951-bf3babe5c8d5, localUserId: a224b717-5f62-4468-9bac-1242e41b4654, error: 'User is not synced with the service outlook'] ``` 21 ``` 2022-06-17T07:00:36.817Z error: 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/node-fetch/lib/index.js:273:32  at processTicksAndRejections (internal/process/task_queues.js:97:5) 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: 'invalid-json' }] ``` 22 ``` 2022-06-17T07:00:36.757Z info: 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 error: ejemplo.equip.cloud/events request returned errors: [host: ejemplo.equip.cloud, hostUserId: 177fabf8-6fc3-45d2-b23d-cf2a2d27ef78, localUserId: 8c0435fd-6179-4e93-b4a7-3191726386bb, error: 'User is not synced with the service outlook'] ``` 24 ``` 2022-06-17T07:00:30.602Z error: 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/node-fetch/lib/index.js:273:32  at processTicksAndRejections (internal/process/task_queues.js:97:5) 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: 'invalid-json' }] ``` 25 ``` 2022-06-17T07:00:29.304Z error: 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/node-fetch/lib/index.js:273:32  at processTicksAndRejections (internal/process/task_queues.js:97:5) 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: 'invalid-json' }] ``` 26 ``` 2022-06-17T07:00:25.962Z error: 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/node-fetch/lib/index.js:273:32  at processTicksAndRejections (internal/process/task_queues.js:97:5) 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: 'invalid-json' }] ``` 27 ``` 2022-06-17T07:00:24.506Z error: nico1.equip.cloud/events request returned errors: [host: nico1.equip.cloud, hostUserId: f072636e-af39-4bf3-b2cb-6a5c8cae7450, localUserId: 55220402-12b8-4fdc-bc94-04f464e60362, error: 'User is not synced with the service outlook'] ``` 28 ``` 2022-06-17T07:00:19.026Z error: ejemplo.equip.cloud/events request returned errors: [host: ejemplo.equip.cloud, hostUserId: f06b72ff-2937-48b6-afde-af91c12aa5fa, localUserId: 5192c483-555c-487a-84eb-cf7e7afc5be4, error: 'User is not synced with the service outlook'] ``` 29 ``` 2022-06-17T07:00:14.893Z error: 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/node-fetch/lib/index.js:273:32  at processTicksAndRejections (internal/process/task_queues.js:97:5) 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: 'invalid-json' }] ``` 30 ``` 2022-06-17T07:00:12.853Z error: 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/node-fetch/lib/index.js:273:32  at processTicksAndRejections (internal/process/task_queues.js:97:5) 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: 'invalid-json' }] ``` 31 ``` }] 2022-06-17T07:00:12.787Z error: 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/@microsoft/microsoft-graph-client/lib/src/GraphError.js:31:28) at Function.GraphErrorHandler.constructErrorFromResponse (/home/auth2/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:61:22) at Function.<anonymous> (/home/auth2/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphErrorHandler.js:92:48) at step (/home/auth2/node_modules/tslib/tslib.js:141:27) at Object.next (/home/auth2/node_modules/tslib/tslib.js:122:57) at /home/auth2/node_modules/tslib/tslib.js:115:75 at new Promise (<anonymous>) at Object.__awaiter (/home/auth2/node_modules/tslib/tslib.js:111:16) { statusCode: 401, code: 'InvalidAuthenticationToken', requestId: '029bb6b4-cd10-4b37-9a7a-d8a3803936a8', date: 2022-06-17T11:00:12.000Z, body: '{"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"}}' } } ``` 32 ``` payload: { error: 'invalid_grant', error_description: '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' + 'Trace ID: 61e9c80d-bd8a-4cd1-9f9f-ccf61c5d1e00\r\n' + 'Correlation ID: ff65eb62-9bfa-4d4d-aa1e-cff1d096dfc6\r\n' + 'Timestamp: 2022-06-17 07:00:12Z', error_codes: [ 70000 ], timestamp: '2022-06-17 07:00:12Z', trace_id: '61e9c80d-bd8a-4cd1-9f9f-ccf61c5d1e00', correlation_id: 'ff65eb62-9bfa-4d4d-aa1e-cff1d096dfc6', error_uri: 'https://login.microsoftonline.com/error?code=70000' } ``` 33 ``` 2022-06-17T07:00:12.631Z error: 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/wreck/lib/index.js:635:11)  at processTicksAndRejections (internal/process/task_queues.js:97:5) at async Object.request (/home/auth2/node_modules/simple-oauth2/lib/core.js:64:20) at async AccessToken.refresh (/home/auth2/node_modules/simple-oauth2/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 error: nico.equip.cloud/events request returned errors: [host: nico.equip.cloud, hostUserId: db8261ea-c0f1-4f3b-9938-0bcdc2fa8dd2, localUserId: 1b2bff07-de96-4ab5-9649-a7cbe2129d1f, error: 'User is not synced with the service outlook'] ``` 35 ``` 2022-06-17T07:00:09.499Z error: nico.equip.cloud/events request returned errors: [host: nico.equip.cloud, hostUserId: 9a1fc5a5-83a7-44d9-90de-9c024137889d, localUserId: 14cdd6a2-7115-4809-9c44-2a2599f46571, error: 'User is not synced with the service outlook'] ``` 36 ``` 2022-06-17T07:00:05.646Z error: 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/node-fetch/lib/index.js:273:32  at processTicksAndRejections (internal/process/task_queues.js:97:5) 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: 'invalid-json' }] ```