Se presenta el siguiente error al momento de generar planilla en Evolution 1.19.1.11 alt text

Nota: Las tareas estan levantadas y tambien se validó reciclando el pool

A continuación se detalle los archivo log del GenPlaApi y AppJob:

DETALLE DEL ARCHIVO LOG DEL GenPlaApi

2023-03-22 11:01:58,720 [1] INFO  Aseinfo.VH4.MicroServices.GenPla.Api.Program - Generador de Planillas API ... Starting ...
2023-03-22 11:01:58,844 [1] INFO  Aseinfo.VH4.MicroServices.GenPla.Api.Startup - Generador de Planillas API ... Starting ...
2023-03-22 11:01:58,860 [1] INFO  Aseinfo.VH4.MicroServices.GenPla.Api.Startup - Adding Services ...
2023-03-22 11:01:59,219 [1] INFO  Aseinfo.VH4.MicroServices.GenPla.Api.Startup - Configure HTTP request pipeline ...
2023-03-22 11:02:13,175 [13] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST http://localhost:8004/api/GenerarPlanilla/start application/json; charset=utf-8 2525
2023-03-22 11:02:13,406 [13] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.RequireHttpsAttribute'.
2023-03-22 11:02:13,418 [13] INFO  Microsoft.AspNetCore.Mvc.StatusCodeResult - Executing HttpStatusCodeResult, setting HTTP status code 403
2023-03-22 11:02:13,422 [13] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Executed action Aseinfo.VH4.MicroServices.GenPla.Api.Controllers.GenerarPlanillaController.Iniciar (GenPlaAPI) in 20.9802ms
2023-03-22 11:02:13,464 [6] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request finished in 291.1395ms 403 
2023-03-22 11:34:56,474 [7] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST http://localhost:8004/api/GenerarPlanilla/start application/json; charset=utf-8 2525
2023-03-22 11:34:56,493 [7] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.RequireHttpsAttribute'.
2023-03-22 11:34:56,498 [7] INFO  Microsoft.AspNetCore.Mvc.StatusCodeResult - Executing HttpStatusCodeResult, setting HTTP status code 403
2023-03-22 11:34:56,504 [7] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Executed action Aseinfo.VH4.MicroServices.GenPla.Api.Controllers.GenerarPlanillaController.Iniciar (GenPlaAPI) in 11.0331ms
2023-03-22 11:34:56,511 [7] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request finished in 21.6647ms 403 
2023-03-22 11:37:12,277 [7] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:8004/swagger/GenerarPlanilla/createandstart  
2023-03-22 11:37:12,280 [7] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request finished in 2.9728ms 404 
2023-03-22 11:37:20,360 [6] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:8004/GenerarPlanilla/createandstart  
2023-03-22 11:37:20,363 [6] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request finished in 2.3033ms 404 
2023-03-22 11:37:33,247 [7] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:8004/Api/GenerarPlanilla/createandstart  
2023-03-22 11:37:33,251 [7] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request finished in 3.9436ms 404 
2023-03-22 11:38:53,756 [18] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:8004/api/GenerarPlanilla/progress  
2023-03-22 11:38:53,761 [18] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.RequireHttpsAttribute'.
2023-03-22 11:38:53,778 [18] INFO  Microsoft.AspNetCore.Mvc.Internal.RedirectResultExecutor - Executing RedirectResult, redirecting to https://localhost/api/GenerarPlanilla/progress.
2023-03-22 11:38:53,781 [18] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Executed action Aseinfo.VH4.MicroServices.GenPla.Api.Controllers.GenerarPlanillaController.ListaPeriodosEnGeneracion (GenPlaAPI) in 20.4838ms
2023-03-22 11:38:53,786 [18] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request finished in 29.936ms 302 
2023-03-22 11:39:19,006 [20] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:8004/api/GenerarPlanilla/progress  
2023-03-22 11:39:19,008 [20] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.RequireHttpsAttribute'.
2023-03-22 11:39:19,015 [20] INFO  Microsoft.AspNetCore.Mvc.Internal.RedirectResultExecutor - Executing RedirectResult, redirecting to https://localhost/api/GenerarPlanilla/progress.
2023-03-22 11:39:19,021 [20] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Executed action Aseinfo.VH4.MicroServices.GenPla.Api.Controllers.GenerarPlanillaController.ListaPeriodosEnGeneracion (GenPlaAPI) in 12.6977ms
2023-03-22 11:39:19,039 [20] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request finished in 33.283ms 302 
2023-03-22 11:39:32,192 [7] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:8004/api/GenerarPlanilla/progress  
2023-03-22 11:39:32,194 [7] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.RequireHttpsAttribute'.
2023-03-22 11:39:32,200 [7] INFO  Microsoft.AspNetCore.Mvc.Internal.RedirectResultExecutor - Executing RedirectResult, redirecting to https://localhost/api/GenerarPlanilla/progress.
2023-03-22 11:39:32,207 [7] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Executed action Aseinfo.VH4.MicroServices.GenPla.Api.Controllers.GenerarPlanillaController.ListaPeriodosEnGeneracion (GenPlaAPI) in 12.4766ms
2023-03-22 11:42:55,065 [20] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST http://localhost:8004/api/GenerarPlanilla/start application/json-patch+json 2
2023-03-22 11:42:55,068 [20] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.RequireHttpsAttribute'.
2023-03-22 11:42:55,075 [20] INFO  Microsoft.AspNetCore.Mvc.StatusCodeResult - Executing HttpStatusCodeResult, setting HTTP status code 403
2023-03-22 11:42:55,082 [20] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Executed action Aseinfo.VH4.MicroServices.GenPla.Api.Controllers.GenerarPlanillaController.Iniciar (GenPlaAPI) in 13.5787ms
2023-03-22 11:42:55,088 [20] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request finished in 23.0268ms 403 
2023-03-22 11:44:35,282 [24] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST http://localhost:8004/api/GenerarPlanilla/start application/json; charset=utf-8 2525
2023-03-22 11:44:35,282 [24] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.RequireHttpsAttribute'.
2023-03-22 11:44:35,304 [24] INFO  Microsoft.AspNetCore.Mvc.StatusCodeResult - Executing HttpStatusCodeResult, setting HTTP status code 403
2023-03-22 11:44:35,311 [24] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Executed action Aseinfo.VH4.MicroServices.GenPla.Api.Controllers.GenerarPlanillaController.Iniciar (GenPlaAPI) in 13.8614ms
2023-03-22 11:44:35,318 [19] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request finished in 23.7171ms 403 
2023-03-22 11:57:51,021 [25] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST http://localhost:8004/api/GenerarPlanilla/createandstart application/json-patch+json 2
2023-03-22 11:57:51,024 [25] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.RequireHttpsAttribute'.
2023-03-22 11:57:51,030 [25] INFO  Microsoft.AspNetCore.Mvc.StatusCodeResult - Executing HttpStatusCodeResult, setting HTTP status code 403
2023-03-22 11:57:51,036 [25] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Executed action Aseinfo.VH4.MicroServices.GenPla.Api.Controllers.GenerarPlanillaController.CrearIniciar (GenPlaAPI) in 11.8628ms
2023-03-22 11:57:51,042 [25] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request finished in 20.5113ms 403 
2023-03-22 11:58:24,204 [13] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST http://localhost:8004/api/GenerarPlanilla/start application/json-patch+json 2
2023-03-22 11:58:24,206 [13] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.RequireHttpsAttribute'.
2023-03-22 11:58:24,213 [13] INFO  Microsoft.AspNetCore.Mvc.StatusCodeResult - Executing HttpStatusCodeResult, setting HTTP status code 403
2023-03-22 11:58:24,220 [13] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Executed action Aseinfo.VH4.MicroServices.GenPla.Api.Controllers.GenerarPlanillaController.Iniciar (GenPlaAPI) in 13.6965ms
2023-03-22 11:58:24,226 [13] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request finished in 21.9893ms 403 
2023-03-22 11:58:54,283 [19] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:8004/api/GenerarPlanilla/progress  
2023-03-22 11:58:54,286 [19] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.RequireHttpsAttribute'.
2023-03-22 11:58:54,292 [19] INFO  Microsoft.AspNetCore.Mvc.Internal.RedirectResultExecutor - Executing RedirectResult, redirecting to https://localhost/api/GenerarPlanilla/progress.
2023-03-22 11:58:54,298 [19] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Executed action Aseinfo.VH4.MicroServices.GenPla.Api.Controllers.GenerarPlanillaController.ListaPeriodosEnGeneracion (GenPlaAPI) in 12.2928ms
2023-03-22 11:58:54,306 [19] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request finished in 22.7364ms 302 
2023-03-22 12:04:07,112 [7] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST http://localhost:8004/api/GenerarPlanilla/createandstart application/json-patch+json 2
2023-03-22 12:04:07,114 [7] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.RequireHttpsAttribute'.
2023-03-22 12:04:07,122 [7] INFO  Microsoft.AspNetCore.Mvc.StatusCodeResult - Executing HttpStatusCodeResult, setting HTTP status code 403
2023-03-22 12:04:07,128 [7] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Executed action Aseinfo.VH4.MicroServices.GenPla.Api.Controllers.GenerarPlanillaController.CrearIniciar (GenPlaAPI) in 13.5092ms
2023-03-22 12:04:07,134 [7] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request finished in 22.772ms 403 
2023-03-22 12:16:12,345 [24] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST http://localhost:8004/api/GenerarPlanilla/start application/json; charset=utf-8 2525
2023-03-22 12:16:12,345 [24] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.RequireHttpsAttribute'.
2023-03-22 12:16:12,345 [24] INFO  Microsoft.AspNetCore.Mvc.StatusCodeResult - Executing HttpStatusCodeResult, setting HTTP status code 403
2023-03-22 12:16:12,360 [24] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Executed action Aseinfo.VH4.MicroServices.GenPla.Api.Controllers.GenerarPlanillaController.Iniciar (GenPlaAPI) in 12.7199ms
2023-03-22 12:16:12,360 [18] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request finished in 21.4251ms 403

Detalle del archivo log del AppJob

    2023-03-22 09:08:52,201 [16] INFO  Aseinfo.VH4.MicroServices.AppJobs.QuartzJobs.GenerarPlanillaJob - Execute('GeneracionesPlanilla', '22/03/2023 09:08:52 - Quincenal  - 20230302 (16/03/2023 00:00:00 - 31/03/2023 00:00:00)')
2023-03-22 09:08:52,260 [16] INFO  Aseinfo.VH4.MicroServices.AppJob.Common.Tasks.GenerarPlanillaTask - Inicia la ejecución para la Generación de Planilla: 22/03/2023 09:08:52 - Quincenal  - 20230302 (16/03/2023 00:00:00 - 31/03/2023 00:00:00)
2023-03-22 09:08:52,262 [16] INFO  Aseinfo.VH4.MicroServices.AppJob.Common.Tasks.GenerarPlanillaTask - Este período de planilla se procesa vía: Api
2023-03-22 09:08:52,267 [16] INFO  Aseinfo.VH4.MicroServices.AppJob.Common.Tasks.GenerarPlanillaTask - Reconfigurando el contenedor de Unity para la Generación de Planilla: 22/03/2023 09:08:52 - Quincenal  - 20230302 (16/03/2023 00:00:00 - 31/03/2023 00:00:00)
2023-03-22 09:09:11,184 [9] ERROR Aseinfo.VH4.MicroServices.AppJob.Common.Tasks.GenerarPlanillaTask - Error al enviar el período al generador de planilla especificado (Api) - 22/03/2023 09:08:52 - Quincenal  - 20230302 (16/03/2023 00:00:00 - 31/03/2023 00:00:00). Se procederá a notificar al solicitante y a los administradores
Aseinfo.Infrastructure.Base.Exceptions.GeneracionPlanillaException: Error al enviar al API la orden de ejecución de la planilla Error: HTTP 403 [Forbidden] 
   at Aseinfo.VH4.MicroServices.AppJob.Common.Tasks.GenerarPlanillaTask.<IniciarGeneracionPlanillaAsync>d__25.MoveNext() in C:\vh4\VH4\MicroServices\AppJob\Common\Tasks\GenerarPlanillaTask.cs:line 707
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Aseinfo.VH4.MicroServices.AppJob.Common.Tasks.GenerarPlanillaTask.<ExecuteAsync>d__11.MoveNext() in C:\vh4\VH4\MicroServices\AppJob\Common\Tasks\GenerarPlanillaTask.cs:line 214
2023-03-22 09:09:17,140 [18] INFO  EmailNotificatorService - Notificación enviada a ( <gustavoa_mazariegos@bantrab.net.gt>):  La Generación de la Planilla 22/03/2023 09:08:52 - Quincenal  - 20230302 (16/03/2023 00:00:00 - 31/03/2023 00:00:00) -  de la empresa  finalizó con errores

alt text

asked 22 Mar '23, 12:41

Lester%20Jimenez's gravatar image

Lester Jimenez
561613
accept rate: 33%

edited 22 Mar '23, 14:07

Fernando%20Paz's gravatar image

Fernando Paz ♦♦
17.3k81635


La explicación esta en la parte importante del error:

2023-03-22 11:02:13,175 [13] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST http://localhost:8004/api/GenerarPlanilla/start application/json; charset=utf-8 2525
2023-03-22 11:02:13,406 [13] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.RequireHttpsAttribute'.
2023-03-22 11:02:13,418 [13] INFO  Microsoft.AspNetCore.Mvc.StatusCodeResult - Executing HttpStatusCodeResult, setting HTTP status code 403
2023-03-22 11:02:13,422 [13] INFO  Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker - Executed action Aseinfo.VH4.MicroServices.GenPla.Api.Controllers.GenerarPlanillaController.Iniciar (GenPlaAPI) in 20.9802ms
2023-03-22 11:02:13,464 [6] INFO  Microsoft.AspNetCore.Hosting.Internal.WebHost - Request finished in 291.1395ms 403

El request se hace a http://localhost:8004/api/GenerarPlanilla/start, por la manera en que está instalado y configurado el API redirecciona a HTTPS

Authorization failed for the request at filter Microsoft.AspNetCore.Mvc.RequireHttpsAttribute'

Entonces se realiza la redirección:

Executing RedirectResult, redirecting to https://localhost/api/GenerarPlanilla/progress.

Lo que genera el HTTP 403, que indica que nadie está escucando en la URL a la cual se redirecciona.

link

answered 22 Mar '23, 14:21

Fernando%20Paz's gravatar image

Fernando Paz ♦♦
17.3k81635
accept rate: 51%

Gracias por su respuesta. Se identifico que en el archivo GenPlaAPI.appsettings.json en la etiqueta forceUseSSL lo tenia en true, se cambio a false y ya generó bien la planilla.

link

answered 23 Mar '23, 15:34

Lester%20Jimenez's gravatar image

Lester Jimenez
561613
accept rate: 33%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Evolution en BitBucket

En este sitio puede acceder al código fuente, centro de descargas y reportar bugs, propuestas y mejoras para Evolution.

Evolution en JIRA

En este sitio puedes sugerir nueva funcionalidad para Evolution, o puedes votar por la funcionalidad ya propuesta por otros usuarios.

Tags:

×1
×1
×1

Asked: 22 Mar '23, 12:41

Seen: 280 times

Last updated: 23 Mar '23, 15:34

Related questions

[Acerca de] [Preguntas Frecuentes] [Privacidad] [Soporte] [Contacto]
Copyright 2013-2018. Asesores en Informática