TV-Rename / tvrename

Organise your TV & Movie videos with ease
http://www.tvrename.com
Other
290 stars 36 forks source link

Catch TaskCanceledException in standard database handlers #986

Closed SirSparkles closed 11 months ago

SirSparkles commented 11 months ago

| 4.9.8 |FATAL| UNHANDLED EXCEPTION IN DOWNLOAD THREAD System.Threading.Tasks.TaskCanceledException: A task was canceled. at System.Threading.Tasks.Task.GetExceptions(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at TVRename.HttpHelper.TaskObtainStringFromUrl(String url, HttpClient client) at TVRename.HttpHelper.HttpRequest(String method, String url, String postContent, String contentType, String token, String lang) at TVRename.TheTVDB.API.<>c__DisplayClass18_0.<JsonHttpGetRequest>g__Operation|0() at TVRename.HttpHelper.RetryOnException(Int32 times, TimeSpan delay, String url, Func2 retryableException, Action operation, Action updateOperation) at TVRename.TheTVDB.API.JsonHttpGetRequest(String url, Dictionary2 parameters, TokenProvider authToken, String lang, Boolean retry) at TVRename.TheTVDB.API.GetShowUpdatesSinceV4(Int64 time, String lang, Int32 page) at TVRename.TheTVDB.LocalCache.GetUpdatesJson(Int64 updateFromEpochTime, Int32 page) at TVRename.TheTVDB.LocalCache.GetUpdatesV4(Int64 updateFromEpochTime, CancellationToken cts) at TVRename.TheTVDB.LocalCache.GetUpdates(List1 ss, Boolean showErrorMsgBox, CancellationToken cts) at TVRename.CacheUpdater.Downloader(Object token) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location ---