When opening up Source Tree crash at D:\a\1\s\Refit\RequestBuilderImplementation.cs:line 258
Asked by alexman1488:

Hi guys, my Source Tree was working yesterday and since this morning it crash every single time when I start up the app (win 10)

I have uninstall and reinstall the app, cleared the user local folders, but still have no luck

It is crashing at D:\\a\\1\\s\\Refit\\RequestBuilderImplementation.cs:line 258

any help will be appreciated, thanks

```
2024-06-04T08:36:09: LogHost: Initializing to normal mode
ERROR [2024-06-04 08:36:19,576] [1] [SourceTree.Exceptions.RemoteHostException] [Log] - Failed to get user details
ERROR [2024-06-04 08:36:19,594] [1] [SourceTree.Exceptions.RemoteHostException] [Log] - Unable to get secret
2024-06-04T08:37:16: LogHost: Initializing to normal mode
ERROR [2024-06-04 08:37:27,372] [1] [SourceTree.Notifications.NotificationsManager] [Log] - Unable to set owner as parent is not visible or non-existent
ERROR [2024-06-04 08:37:32,866] [7] [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:32,881] [7] [SourceTree.Analytics.Emau.EMauSubmissionService] [Log] - Response status code does not indicate success: 502 (Bad Gateway). Bad Gateway
ERROR [2024-06-04 08:37:32,881] [7] [SourceTree.Analytics.Emau.EMauSubmissionService] [Log] - 502
ERROR [2024-06-04 08:37:32,881] [7] [SourceTree.Analytics.Emau.EMauSubmissionService] [Log] - Bad Gateway
ERROR [2024-06-04 08:37:32,881] [7] [SourceTree.Analytics.Emau.EMauSubmissionService] [Log] - [null]
ERROR [2024-06-04 08:37:32,881] [11] [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: alexman1488
body: the issue has been resolved AUTOMATICALLY when I logged in the next day

I did not do anything to fix it and it works now