tgstation / Tgstation.Server.ControlPanel

Official client for tgstation-server
GNU General Public License v3.0
7 stars 11 forks source link

Pressing Refresh after Connect at the Login Screen crashes entire the client #84

Open martinlyra opened 2 years ago

martinlyra commented 2 years ago

https://user-images.githubusercontent.com/13331724/151192169-cf26687f-f434-47a9-aac8-6cde68c7d5fc.mp4

Read out from the terminal when this happens

PS C:\Users\matly\Downloads\Tgstation.Server.ControlPanel> .\Tgstation.Server.ControlPanel.exe
Unhandled exception. System.Threading.Tasks.TaskCanceledException: The operation was canceled.
 ---> System.IO.IOException: Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request..
 ---> System.Net.Sockets.SocketException (995): The I/O operation has been aborted because of either a thread exit or an application request.
   --- End of inner exception stack trace ---
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
   at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
   at Tgstation.Server.Client.ApiClient.RunRequest[TResult](String route, HttpContent content, HttpMethod method, Nullable`1 instanceId, Boolean tokenRefresh, CancellationToken cancellationToken)
   at Tgstation.Server.ControlPanel.ViewModels.AdministrationViewModel.Refresh(CancellationToken cancellationToken) in S:\Documents\Actual Documents\DA Git\Tgstation.Server.ControlPanel\src\Tgstation.Server.ControlPanel\ViewModels\AdministrationViewModel.cs:line 157
   at Tgstation.Server.ControlPanel.ViewModels.AdministrationViewModel.<.ctor>g__InitialLoad|73_1() in S:\Documents\Actual Documents\DA Git\Tgstation.Server.ControlPanel\src\Tgstation.Server.ControlPanel\ViewModels\AdministrationViewModel.cs:line 140
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_1(Object state)
   at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Occurs on version 3.1.0.0.0