Application crashes on startup
Asked by Hugo Fonseca:

Environment: Windows 11

Version: 3.4.18

Symptoms: Application crashes \~1sec after startup. From the logs it appears that it can't handle a connection issue to the servers.

Reporting here, as it appears that you can't submit a bug report for SourceTree through the support channels.

Log:  
ERROR \[2024-06-04 08:37:17,380\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - POST Interaction submission FAILED  
Refit.ApiException: Response status code does not indicate success: 502 (Bad Gateway).  
at Refit.RequestBuilderImplementation\`1.\<\>c__DisplayClass13_0\`1.\<\<BuildCancellableTaskFuncForMethod\>b__0\>d.MoveNext() in D:\\a\\1\\s\\Refit\\RequestBuilderImplementation.cs:line 258  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at Atlassian.AnalyticsService.Client.AnalyticsServiceClient.\<Post\>d__12.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at SourceTree.Analytics.Services.AnalyticsService.\<SubmitBatch\>d__15.MoveNext()  
ERROR \[2024-06-04 08:37:17,396\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - Response status code does not indicate success: 502 (Bad Gateway). Bad Gateway  
ERROR \[2024-06-04 08:37:17,396\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - 502  
ERROR \[2024-06-04 08:37:17,396\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - Bad Gateway  
ERROR \[2024-06-04 08:37:17,396\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - \[null\]  
ERROR \[2024-06-04 08:37:17,569\] \[PriorityScheduler: 0\] \[SourceTree.Repo.RepoHandlerGitOld\] \[Log\] - Unable to get Git-Lfs version: git: 'lfs' is not a git command. See 'git --help'.  
The most similar command is  
flow  
ERROR \[2024-06-04 08:37:19,228\] \[2\] \[SourceTree.App\] \[Log\] - A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.  
System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---\> System.NullReferenceException: Object reference not set to an instance of an object.  
at SourceTree.Analytics.Services.AnalyticsService.\<SubmitBatch\>d__15.MoveNext()  
--- End of inner exception stack trace ---  
---\> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.  
at SourceTree.Analytics.Services.AnalyticsService.\<SubmitBatch\>d__15.MoveNext()\<---  
ERROR \[2024-06-04 08:37:21,014\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - POST MAU submission FAILED  
Refit.ApiException: Response status code does not indicate success: 502 (Bad Gateway).  
at Refit.RequestBuilderImplementation\`1.\<\>c__DisplayClass13_0\`1.\<\<BuildCancellableTaskFuncForMethod\>b__0\>d.MoveNext() in D:\\a\\1\\s\\Refit\\RequestBuilderImplementation.cs:line 258  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at Atlassian.AnalyticsService.Client.AnalyticsServiceClient.\<Post\>d__12.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at SourceTree.Analytics.Emau.EMauSubmissionService.\<SubmitBatch\>d__40.MoveNext()  
ERROR \[2024-06-04 08:37:21,014\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - Response status code does not indicate success: 502 (Bad Gateway). Bad Gateway  
ERROR \[2024-06-04 08:37:21,014\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - 502  
ERROR \[2024-06-04 08:37:21,014\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - Bad Gateway  
ERROR \[2024-06-04 08:37:21,014\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - \[null\]  
ERROR \[2024-06-04 08:37:21,028\] \[12\] \[SourceTree.App\] \[Log\] - Object reference not set to an instance of an object. The application is terminating.  
System.NullReferenceException: Object reference not set to an instance of an object.  
at SourceTree.Analytics.Emau.EMauSubmissionService.\<SubmitBatch\>d__40.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at SourceTree.Analytics.Emau.EMauSubmissionService.\<Submit\>d__39.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at SourceTree.Analytics.Emau.EMauSubmissionService.\<SubmissionTimer_Elapsed\>d__37.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()  
at System.Threading.ThreadPoolWorkQueue.Dispatch()  
ERROR \[2024-06-04 08:37:35,765\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - POST Interaction submission FAILED  
Refit.ApiException: Response status code does not indicate success: 502 (Bad Gateway).  
at Refit.RequestBuilderImplementation\`1.\<\>c__DisplayClass13_0\`1.\<\<BuildCancellableTaskFuncForMethod\>b__0\>d.MoveNext() in D:\\a\\1\\s\\Refit\\RequestBuilderImplementation.cs:line 258  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at Atlassian.AnalyticsService.Client.AnalyticsServiceClient.\<Post\>d__12.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at SourceTree.Analytics.Services.AnalyticsService.\<SubmitBatch\>d__15.MoveNext()  
ERROR \[2024-06-04 08:37:35,781\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - Response status code does not indicate success: 502 (Bad Gateway). Bad Gateway  
ERROR \[2024-06-04 08:37:35,781\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - 502  
ERROR \[2024-06-04 08:37:35,781\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - Bad Gateway  
ERROR \[2024-06-04 08:37:35,781\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - \[null\]  
ERROR \[2024-06-04 08:37:36,031\] \[PriorityScheduler: 0\] \[SourceTree.Repo.RepoHandlerGitOld\] \[Log\] - Unable to get Git-Lfs version: git: 'lfs' is not a git command. See 'git --help'.  
The most similar command is  
flow  
ERROR \[2024-06-04 08:37:36,756\] \[2\] \[SourceTree.App\] \[Log\] - A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.  
System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---\> System.NullReferenceException: Object reference not set to an instance of an object.  
at SourceTree.Analytics.Services.AnalyticsService.\<SubmitBatch\>d__15.MoveNext()  
--- End of inner exception stack trace ---  
---\> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.  
at SourceTree.Analytics.Services.AnalyticsService.\<SubmitBatch\>d__15.MoveNext()\<---  
ERROR \[2024-06-04 08:37:39,559\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - POST MAU submission FAILED  
Refit.ApiException: Response status code does not indicate success: 502 (Bad Gateway).  
at Refit.RequestBuilderImplementation\`1.\<\>c__DisplayClass13_0\`1.\<\<BuildCancellableTaskFuncForMethod\>b__0\>d.MoveNext() in D:\\a\\1\\s\\Refit\\RequestBuilderImplementation.cs:line 258  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at Atlassian.AnalyticsService.Client.AnalyticsServiceClient.\<Post\>d__12.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at SourceTree.Analytics.Emau.EMauSubmissionService.\<SubmitBatch\>d__40.MoveNext()  
ERROR \[2024-06-04 08:37:39,737\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - Response status code does not indicate success: 502 (Bad Gateway). Bad Gateway  
ERROR \[2024-06-04 08:37:39,737\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - 502  
ERROR \[2024-06-04 08:37:39,737\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - Bad Gateway  
ERROR \[2024-06-04 08:37:39,738\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - \[null\]  
ERROR \[2024-06-04 08:37:39,739\] \[14\] \[SourceTree.App\] \[Log\] - Object reference not set to an instance of an object. The application is terminating.  
System.NullReferenceException: Object reference not set to an instance of an object.  
at SourceTree.Analytics.Emau.EMauSubmissionService.\<SubmitBatch\>d__40.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at SourceTree.Analytics.Emau.EMauSubmissionService.\<Submit\>d__39.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at SourceTree.Analytics.Emau.EMauSubmissionService.\<SubmissionTimer_Elapsed\>d__37.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()  
at System.Threading.ThreadPoolWorkQueue.Dispatch()  
2024-06-04T08:41:15: LogHost: Initializing to normal mode  
ERROR \[2024-06-04 08:41:20,563\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - POST Interaction submission FAILED  
Refit.ApiException: Response status code does not indicate success: 502 (Bad Gateway).  
at Refit.RequestBuilderImplementation\`1.\<\>c__DisplayClass13_0\`1.\<\<BuildCancellableTaskFuncForMethod\>b__0\>d.MoveNext() in D:\\a\\1\\s\\Refit\\RequestBuilderImplementation.cs:line 258  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at Atlassian.AnalyticsService.Client.AnalyticsServiceClient.\<Post\>d__12.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at SourceTree.Analytics.Services.AnalyticsService.\<SubmitBatch\>d__15.MoveNext()  
ERROR \[2024-06-04 08:41:20,563\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - Response status code does not indicate success: 502 (Bad Gateway). Bad Gateway  
ERROR \[2024-06-04 08:41:20,563\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - 502  
ERROR \[2024-06-04 08:41:20,563\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - Bad Gateway  
ERROR \[2024-06-04 08:41:20,563\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - \[null\]  
ERROR \[2024-06-04 08:41:20,799\] \[2\] \[SourceTree.App\] \[Log\] - A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.  
System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---\> System.NullReferenceException: Object reference not set to an instance of an object.  
at SourceTree.Analytics.Services.AnalyticsService.\<SubmitBatch\>d__15.MoveNext()  
--- End of inner exception stack trace ---  
---\> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.  
at SourceTree.Analytics.Services.AnalyticsService.\<SubmitBatch\>d__15.MoveNext()\<---  
ERROR \[2024-06-04 08:41:20,815\] \[PriorityScheduler: 0\] \[SourceTree.Repo.RepoHandlerGitOld\] \[Log\] - Unable to get Git-Lfs version: git: 'lfs' is not a git command. See 'git --help'.  
The most similar command is  
flow  
ERROR \[2024-06-04 08:41:23,596\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - POST MAU submission FAILED  
Refit.ApiException: Response status code does not indicate success: 502 (Bad Gateway).  
at Refit.RequestBuilderImplementation\`1.\<\>c__DisplayClass13_0\`1.\<\<BuildCancellableTaskFuncForMethod\>b__0\>d.MoveNext() in D:\\a\\1\\s\\Refit\\RequestBuilderImplementation.cs:line 258  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at Atlassian.AnalyticsService.Client.AnalyticsServiceClient.\<Post\>d__12.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at SourceTree.Analytics.Emau.EMauSubmissionService.\<SubmitBatch\>d__40.MoveNext()  
ERROR \[2024-06-04 08:41:23,596\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - Response status code does not indicate success: 502 (Bad Gateway). Bad Gateway  
ERROR \[2024-06-04 08:41:23,596\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - 502  
ERROR \[2024-06-04 08:41:23,596\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - Bad Gateway  
ERROR \[2024-06-04 08:41:23,596\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - \[null\]  
ERROR \[2024-06-04 08:41:23,596\] \[26\] \[SourceTree.App\] \[Log\] - Object reference not set to an instance of an object. The application is terminating.  
System.NullReferenceException: Object reference not set to an instance of an object.  
at SourceTree.Analytics.Emau.EMauSubmissionService.\<SubmitBatch\>d__40.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at SourceTree.Analytics.Emau.EMauSubmissionService.\<Submit\>d__39.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at SourceTree.Analytics.Emau.EMauSubmissionService.\<SubmissionTimer_Elapsed\>d__37.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()  
at System.Threading.ThreadPoolWorkQueue.Dispatch()  
ERROR \[2024-06-04 08:43:17,952\] \[PriorityScheduler: 0\] \[SourceTree.Repo.RepoHandlerGitOld\] \[Log\] - Unable to get Git-Lfs version: git: 'lfs' is not a git command. See 'git --help'.  
The most similar command is  
flow  
ERROR \[2024-06-04 08:43:18,055\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - POST Interaction submission FAILED  
Refit.ApiException: Response status code does not indicate success: 502 (Bad Gateway).  
at Refit.RequestBuilderImplementation\`1.\<\>c__DisplayClass13_0\`1.\<\<BuildCancellableTaskFuncForMethod\>b__0\>d.MoveNext() in D:\\a\\1\\s\\Refit\\RequestBuilderImplementation.cs:line 258  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at Atlassian.AnalyticsService.Client.AnalyticsServiceClient.\<Post\>d__12.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at SourceTree.Analytics.Services.AnalyticsService.\<SubmitBatch\>d__15.MoveNext()  
ERROR \[2024-06-04 08:43:18,060\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - Response status code does not indicate success: 502 (Bad Gateway). Bad Gateway  
ERROR \[2024-06-04 08:43:18,060\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - 502  
ERROR \[2024-06-04 08:43:18,061\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - Bad Gateway  
ERROR \[2024-06-04 08:43:18,061\] \[7\] \[SourceTree.Analytics.Services.AnalyticsService\] \[Log\] - \[null\]  
ERROR \[2024-06-04 08:43:18,403\] \[2\] \[SourceTree.App\] \[Log\] - A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.  
System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---\> System.NullReferenceException: Object reference not set to an instance of an object.  
at SourceTree.Analytics.Services.AnalyticsService.\<SubmitBatch\>d__15.MoveNext()  
--- End of inner exception stack trace ---  
---\> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.  
at SourceTree.Analytics.Services.AnalyticsService.\<SubmitBatch\>d__15.MoveNext()\<---  
ERROR \[2024-06-04 08:43:21,569\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - POST MAU submission FAILED  
Refit.ApiException: Response status code does not indicate success: 502 (Bad Gateway).  
at Refit.RequestBuilderImplementation\`1.\<\>c__DisplayClass13_0\`1.\<\<BuildCancellableTaskFuncForMethod\>b__0\>d.MoveNext() in D:\\a\\1\\s\\Refit\\RequestBuilderImplementation.cs:line 258  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at Atlassian.AnalyticsService.Client.AnalyticsServiceClient.\<Post\>d__12.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at SourceTree.Analytics.Emau.EMauSubmissionService.\<SubmitBatch\>d__40.MoveNext()  
ERROR \[2024-06-04 08:43:21,570\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - Response status code does not indicate success: 502 (Bad Gateway). Bad Gateway  
ERROR \[2024-06-04 08:43:21,570\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - 502  
ERROR \[2024-06-04 08:43:21,571\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - Bad Gateway  
ERROR \[2024-06-04 08:43:21,571\] \[30\] \[SourceTree.Analytics.Emau.EMauSubmissionService\] \[Log\] - \[null\]  
ERROR \[2024-06-04 08:43:21,572\] \[27\] \[SourceTree.App\] \[Log\] - Object reference not set to an instance of an object. The application is terminating.  
System.NullReferenceException: Object reference not set to an instance of an object.  
at SourceTree.Analytics.Emau.EMauSubmissionService.\<SubmitBatch\>d__40.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at SourceTree.Analytics.Emau.EMauSubmissionService.\<Submit\>d__39.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter\`1.GetResult()  
at SourceTree.Analytics.Emau.EMauSubmissionService.\<SubmissionTimer_Elapsed\>d__37.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()  
at System.Threading.ThreadPoolWorkQueue.Dispatch()


Answers:
author: tdennis
body: I'm also getting this error.


author: Keith
body: Yes we've started getting this as of about an hour ago.