JobIntegracaoLean.SincronizarCotacoesOpme

// Id: #9627445
using Inpart.Integracao.GerenciadorJobs.Services;

var jobIntegracaoLean = Activate<JobIntegracaoLean>();
await jobIntegracaoLean.SincronizarCotacoesOpme();

Parameters

CurrentCulture
""
RecurringJobId
"lean-sincronizacao-cotacoes-opme"
Time
1788289923

State

09/01/2026 19:12:29 (+26.417s) Failed

An exception occurred during performance of the job.

Inpart.Integracao.Lean.Exceptions.LeanAutenticacaoException (f275b79876d6.staging:1)

Autenticação Lean rejeitada (HTTP 401).

Inpart.Integracao.Lean.Exceptions.LeanAutenticacaoException: Autenticação Lean rejeitada (HTTP 401).
   at Inpart.Integracao.Lean.Client.LeanAuthClient.AutenticarAsync(CancellationToken cancellationToken)
   at Inpart.Integracao.Lean.Client.LeanAuthClient.GetAccessTokenAsync(Boolean forcarRenovacao, CancellationToken cancellationToken)
   at Inpart.Integracao.Lean.Client.LeanCotacaoOpmeClient.EnviarAsync(Func`1 requestFactory, Boolean renovarToken, CancellationToken cancellationToken)
   at Inpart.Integracao.Lean.Client.LeanCotacaoOpmeClient.EnviarComReautenticacaoAsync(Func`1 requestFactory, CancellationToken cancellationToken)
   at Inpart.Integracao.Lean.Client.LeanCotacaoOpmeClient.ConsultarCotacoesOpmeAsync(Int32 pageIndex, Nullable`1 pageSize, String situacao, Nullable`1 identificadorCotacao, String numeroGuiaOperadora, Nullable`1 dataHoraInicial, Nullable`1 dataHoraFinal, CancellationToken cancellationToken)
   at Inpart.Integracao.Lean.Services.IntegracaoLeanService.SincronizarCotacoesOpmeAsync(Func`4 processarCotacaoAsync, CancellationToken cancellationToken)
   at Inpart.Integracao.Lean.Services.IntegracaoLeanService.SincronizarCotacoesOpmeAsync(Func`4 processarCotacaoAsync, CancellationToken cancellationToken)
   at InvokeStub_TaskAwaiter`1.GetResult(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+27ms Processing

Server:
f275b79876d6.staging:1
Worker:
15d1693a

+6ms Enqueued

Triggered by recurring job scheduler

Queue:
lean-jobs

09/01/2026 19:12:03 Created