# Diagnóstico de errores con outlook en alfa ## 1. Falló una llamada, pero antes se ejecutó 6 veces correctamente y posteriormente 5 veces correctamente ### Evidencia logs de auth: ``` 2020-03-31T18:10:37.296Z error: /outlook-events call with errors: [error: FetchError: invalid json response body at https://alfatechnologies.equip.cloud/api/events/84dd67a7-be2d-48a0-97b3-2284add1e6ef reason: Unexpected token U in JSON at position 0 at /home/auth/node_modules/node-fetch/lib/index.js:272:32 at processTicksAndRejections (internal/process/task_queues.js:93:5) { message: 'invalid json response body at https://alfatechnologies.equip.cloud/api/events/84dd67a7-be2d-48a0-97b3-2284add1e6ef reason: Unexpected token U in JSON at position 0', type: 'invalid-json', [stack]: 'FetchError: invalid json response body at https://alfatechnologies.equip.cloud/api/events/84dd67a7-be2d-48a0-97b3-2284add1e6ef reason: Unexpected token U in JSON at position 0\n' + ' at /home/auth/node_modules/node-fetch/lib/index.js:272:32\n' + ' at processTicksAndRejections (internal/process/task_queues.js:93:5)' }] ``` ### Evidencia BD: - Hay 3 usuarios conectados con los ids: ``` - 624b3d86-8b13-4f31-84d7-e812fc7c91f9 (Mario Castro) - 84dd67a7-be2d-48a0-97b3-2284add1e6ef (Sandra Olguin) - a3efa7cc-ba70-414f-8683-5a554ecd2d74 (fernando diegidio) ``` ### Evidencia logs de alfa 1. De alguna manera Mario intentó confirmar un evento que vencía el 25, durante el 27. **Bug no reconocido: Un evento de días anteriores aparece en hoy** ``` 2020-03-27T17:45:24.465Z info: ::ffff:165.227.16.170 "agenda/CONFIRM_ATTENDANCE" "624b3d86-8b13-4f31-84d7-e812fc7c91f9" - POST /api/handleAction 200 8.05 2020-03-27T17:45:24.461Z warn: agenda/CONFIRM_ATTENDANCE 624b3d86-8b13-4f31-84d7-e812fc7c91f9 GetActionError found: { type: 'notLegit', message: 'El usuario no es dueño de este evento o este evento ya está vencido' } { type: 'agenda/CONFIRM_ATTENDANCE', payload: { id: 'a0f43c0a-636f-45c9-9444-35e59c88e6fe' }, lastUpdate: 1585331107861, localActionId: '761d55f3-2b2e-4e91-aab8-cfcc1c823e6c', appVersion: '0.18.17' } ``` 2. No sé qué sucedió, pero una siguiente llamada del mismo usuario retornó correctamente. ``` 2020-03-31T18:10:37.217Z warn: Received a bad request body: "events" is required 2020-03-31T18:10:37.219Z warn: ::ffff:165.227.16.170 - null - POST /api/events/84dd67a7-be2d-48a0-97b3-2284add1e6ef 422 3.39 2020-03-31T18:10:41.842Z info: ::ffff:165.227.16.170 - null - POST /api/events/84dd67a7-be2d-48a0-97b3-2284add1e6ef 200 210.54 ``` 3. Intentando salir... **Bug ya reconocido en doc.** ``` 2020-04-01T13:02:48.505Z warn: profile/OUTLOOK_LOGOUT 624b3d86-8b13-4f31-84d7-e812fc7c91f9 Repeating action 2020-04-01T13:03:14.587Z warn: profile/OUTLOOK_LOGOUT 624b3d86-8b13-4f31-84d7-e812fc7c91f9 Repeating action 2020-04-01T13:03:46.315Z warn: profile/OUTLOOK_LOGOUT 624b3d86-8b13-4f31-84d7-e812fc7c91f9 Repeating action 2020-04-01T15:21:26.277Z warn: profile/OUTLOOK_LOGOUT 624b3d86-8b13-4f31-84d7-e812fc7c91f9 Repeating action 2020-04-01T15:21:58.852Z warn: profile/OUTLOOK_LOGOUT 624b3d86-8b13-4f31-84d7-e812fc7c91f9 Repeating action ```