ProjectSyncTask.Execute

// Job ID: #638983
using Application.Sync;

var projectSyncTask = Activate<ProjectSyncTask>();
await projectSyncTask.Execute();
CurrentCulture
"en-US"
CurrentUICulture
"en-US"
RecurringJobId
"ProjectSyncTask"
RetryCount
10

State

1/24/2024 8:31:39 PM (+39.237s) Failed

An exception occurred during performance of the job.

Harvest.Net.HarvestException

Harvest.Net.HarvestException
   at Harvest.Net.Extensions.ThrowIfBadRequest(IRestResponse response)
   at Harvest.Net.HarvestRestClient.Execute[T](IRestRequest request)
   at Harvest.Net.HarvestRestClient.ListClients(Nullable`1 updatedSince)
   at Harvest.AccountRepository.<>c.<FindAll>b__1_0(IHarvestRestClient c) in C:\TeamServices\Agent\_work\395\s\Harvest\AccountRepository.cs:line 19
   at System.Reactive.Linq.ObservableImpl.SelectMany`2.EnumerableSelector._.OnNext(TSource value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\SelectMany.cs:line 1328
--- End of stack trace from previous location where exception was thrown ---
   at System.Reactive.PlatformServices.ExceptionServicesImpl.Rethrow(Exception exception) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\ExceptionServicesImpl.cs:line 16
   at System.Reactive.ExceptionHelpers.ThrowIfNotNull(Exception exception) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\ExceptionServices.cs:line 20
   at System.Reactive.Subjects.AsyncSubject`1.GetResult() in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Subjects\AsyncSubject.cs:line 437
   at Domain.ObservableExtensions.<>c__DisplayClass2_0`2.<<MatchWith>g__Match|0>d.MoveNext() in C:\TeamServices\Agent\_work\395\s\Domain\ObservableExtensions.cs:line 49
--- End of stack trace from previous location where exception was thrown ---
   at System.Reactive.PlatformServices.ExceptionServicesImpl.Rethrow(Exception exception) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\ExceptionServicesImpl.cs:line 16
   at System.Reactive.ExceptionHelpers.ThrowIfNotNull(Exception exception) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\ExceptionServices.cs:line 20
   at System.Reactive.Subjects.AsyncSubject`1.GetResult() in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Subjects\AsyncSubject.cs:line 437
   at Application.Sync.ProjectSyncTask.<Execute>d__4.MoveNext() in C:\TeamServices\Agent\_work\395\s\Application\Sync\ProjectSyncTask.cs:line 42

+6.130s Processing

Server:
ec2amaz-sbdjgq5.default:5812
Worker:
58c7c83f

+44.597s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+6ms Scheduled

Retry attempt 1 of 10: Authentication failed for API request.

Enqueue at:
1/24/2024 8:30:48 PM

+407ms Failed

An exception occurred during performance of the job.

Harvest.Net.HarvestException

Authentication failed for API request.

Harvest.Net.HarvestException: Authentication failed for API request.
   at Harvest.Net.Extensions.ThrowIfBadRequest(IRestResponse response)
   at Harvest.Net.HarvestRestClient.Execute[T](IRestRequest request)
   at Harvest.Net.HarvestRestClient.ListClients(Nullable`1 updatedSince)
   at Harvest.AccountRepository.<>c.<FindAll>b__1_0(IHarvestRestClient c) in C:\TeamServices\Agent\_work\395\s\Harvest\AccountRepository.cs:line 19
   at System.Reactive.Linq.ObservableImpl.SelectMany`2.EnumerableSelector._.OnNext(TSource value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\SelectMany.cs:line 1328
--- End of stack trace from previous location where exception was thrown ---
   at System.Reactive.PlatformServices.ExceptionServicesImpl.Rethrow(Exception exception) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\ExceptionServicesImpl.cs:line 16
   at System.Reactive.ExceptionHelpers.ThrowIfNotNull(Exception exception) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\ExceptionServices.cs:line 20
   at System.Reactive.Subjects.AsyncSubject`1.GetResult() in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Subjects\AsyncSubject.cs:line 437
   at Domain.ObservableExtensions.<>c__DisplayClass2_0`2.<<MatchWith>g__Match|0>d.MoveNext() in C:\TeamServices\Agent\_work\395\s\Domain\ObservableExtensions.cs:line 49
--- End of stack trace from previous location where exception was thrown ---
   at System.Reactive.PlatformServices.ExceptionServicesImpl.Rethrow(Exception exception) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\ExceptionServicesImpl.cs:line 16
   at System.Reactive.ExceptionHelpers.ThrowIfNotNull(Exception exception) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\ExceptionServices.cs:line 20
   at System.Reactive.Subjects.AsyncSubject`1.GetResult() in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Subjects\AsyncSubject.cs:line 437
   at Application.Sync.ProjectSyncTask.<Execute>d__4.MoveNext() in C:\TeamServices\Agent\_work\395\s\Application\Sync\ProjectSyncTask.cs:line 42

+9.007s Processing

Server:
ec2amaz-sbdjgq5.priority:5812
Worker:
e0761e92

+10ms Enqueued

Triggered by recurring job scheduler

Queue:
priority

1/24/2024 8:30:00 PM Created