Open bleriaf opened 3 months ago
sometimes, it fails to download some movies with the following error:
plex-downloader | Start download of next element in queue: A Single Shot plex-downloader | fail: Web.Services.DownloadService[0] plex-downloader | An error occured while downloading item A Single Shot plex-downloader | System.Net.Http.HttpIOException: The response ended prematurely, with at least 2660737837 additional bytes expected. (ResponseEnded) plex-downloader | at System.Net.Http.HttpConnection.ContentLengthReadStream.ReadAsync(Memory1 buffer, CancellationToken cancellationToken) plex-downloader | at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates1 shouldRetryResultPredicates, Func5 onRetryAsync, Int32 permittedRetryCount, IEnumerable1 sleepDurationsEnumerable, Func4 sleepDurationProvider, Boolean continueOnCapturedContext) plex-downloader | at Polly.AsyncPolicy1.ExecuteAsync(Func3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext) plex-downloader | at Web.Services.DownloadService.CopyToAsync(Stream source, Stream destination, DownloadElement downloadElement, IAsyncPolicy`1 policy, Int32 bufferSize) in /src/Web/Services/DownloadService.cs:line 456 plex-downloader | at Web.Services.DownloadService.DownloadFile(DownloadElement downloadElement) in /src/Web/Services/DownloadService.cs:line 429
1 buffer, CancellationToken cancellationToken) plex-downloader | at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func
1 shouldRetryResultPredicates, Func
1 sleepDurationsEnumerable, Func
1.ExecuteAsync(Func
it's a better thing to retry when such things happen
sometimes, it fails to download some movies with the following error:
plex-downloader | Start download of next element in queue: A Single Shot plex-downloader | fail: Web.Services.DownloadService[0] plex-downloader | An error occured while downloading item A Single Shot plex-downloader | System.Net.Http.HttpIOException: The response ended prematurely, with at least 2660737837 additional bytes expected. (ResponseEnded) plex-downloader | at System.Net.Http.HttpConnection.ContentLengthReadStream.ReadAsync(Memory
1 buffer, CancellationToken cancellationToken) plex-downloader | at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func
3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates1 shouldRetryResultPredicates, Func
5 onRetryAsync, Int32 permittedRetryCount, IEnumerable1 sleepDurationsEnumerable, Func
4 sleepDurationProvider, Boolean continueOnCapturedContext) plex-downloader | at Polly.AsyncPolicy1.ExecuteAsync(Func
3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext) plex-downloader | at Web.Services.DownloadService.CopyToAsync(Stream source, Stream destination, DownloadElement downloadElement, IAsyncPolicy`1 policy, Int32 bufferSize) in /src/Web/Services/DownloadService.cs:line 456 plex-downloader | at Web.Services.DownloadService.DownloadFile(DownloadElement downloadElement) in /src/Web/Services/DownloadService.cs:line 429it's a better thing to retry when such things happen