Closed ben-xo closed 6 years ago
System.Net.Http.HttpRequestException occurred
HResult=0x80131500
Message=An error occurred while sending the request.
Source=mscorlib
StackTrace:
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at LastFM.ApiClient.HttpClient.<PerformRequest>d__13
1.MoveNext() in C:\Users\datateam\Documents\GitHub\lastfm-windows-desktop\DesktopScrobbler\LastFMApi\HttpClient.cs:line 99
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at LastFM.ApiClient.HttpClient.<SendRequest>d__15
1.MoveNext() in C:\Users\datateam\Documents\GitHub\lastfm-windows-desktop\DesktopScrobbler\LastFMApi\HttpClient.cs:line 195
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at LastFM.ApiClient.LastFMClient.<UnauthenticatedGet>d__28
1.MoveNext() in C:\Users\datateam\Documents\GitHub\lastfm-windows-desktop\DesktopScrobbler\LastFMApi\LastFMClient.cs:line 318
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at LastFM.ApiClient.LastFMClient.<GetAuthToken>d__18.MoveNext() in C:\Users\datateam\Documents\GitHub\lastfm-windows-desktop\DesktopScrobbler\LastFMApi\LastFMClient.cs:line 92 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter
1.GetResult()
at LastFM.ApiClient.LastFMClient.
Inner Exception 1: WebException: Unable to connect to the remote server
Inner Exception 2: SocketException: No connection could be made because the target machine actively refused it 127.0.0.5:80
Fixed. The authentication process was missing exception handlers for token retrieval.
Needs to gracefully handle the site being unavailable during login / auth.
Expected:
Actual: