fxsth / pledo

pledo - Plex downloader. An alternative to PlexRipper
MIT License
16 stars 2 forks source link

failing to download on some movies #37

Open bleriaf opened 3 months ago

bleriaf commented 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

it's a better thing to retry when such things happen