JobIntegracaoLean.SincronizarCotacoesOpme

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

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

Parameters

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

State

09/11/2026 14:09:06 (+3.210s) Failed

An exception occurred during performance of the job.

Inpart.Integracao.Lean.Exceptions.LeanAutenticacaoException (04215d0982ac.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.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

+44ms Processing

Server:
04215d0982ac.staging:1
Worker:
fb478e4b

+10ms Enqueued

Triggered by recurring job scheduler

Queue:
lean-jobs

09/11/2026 14:09:03 Created