Jump to content

Errors using Download to/folder sync plugin


Recommended Posts

Posted

I have a number of STRM files that I’ve been using the folder sync plugin to download local copies of.  Recently on a couple different machines every download is erroring out.  If I take the same URL and paste it into a browser window things download without issue.  In the log I see:

2025-05-15 11:47:03.955 Info HttpClient: GET http://www.somesite.com:8080/movie/abc123/abc123/1117552.mkv
2025-05-15 11:47:12.147 Error TaskManager: Error
    *** Error Report ***
    Version: 4.8.11.0
    Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
    Operating system: Linux version 6.12.24-Unraid (root@Develop) (gcc (GCC) 14.2.0, GNU ld version 2.44-slack151) #1 SMP PREEMPT_DYNAMIC Sat May  3 00:12:52 PDT 2025
    Framework: .NET 6.0.36
    OS/Process: x64/x64
    Runtime: system/System.Private.CoreLib.dll
    Processor count: 32
    Data path: /config
    Application path: /system
    System.IO.IOException: System.IO.IOException: The response ended prematurely.
       at System.Net.Http.HttpConnection.FillAsync(Boolean async)
       at System.Net.Http.HttpConnection.CopyToContentLengthAsync(Stream destination, Boolean async, UInt64 length, Int32 bufferSize, CancellationToken cancellationToken)
       at System.Net.Http.HttpConnection.ContentLengthReadStream.CompleteCopyToAsync(Task copyTask, CancellationToken cancellationToken)
       at Emby.Server.Sync.SyncJobProcessor.DownloadFile(SyncJobItem jobItem, String inputPath, MediaProtocol inputProtocol, ReadOnlyMemory`1 container, IDictionary`2 requestHeaders, CancellationToken cancellationToken)
       at Emby.Server.Sync.SyncJobProcessor.SyncVideo(SyncJobItem jobItem, SyncJob job, Video item, User user, Boolean enableConversion, Boolean forceConversion, SyncOptions syncOptions, ISyncProvider provider, IProgress`1 progress, CancellationToken cancellationToken)
       at Emby.Server.Sync.SyncJobProcessor.ProcessJobItem(SyncJobItem jobItem, Boolean enableConversion, IProgress`1 progress, CancellationToken cancellationToken)
       at Emby.Server.Sync.SyncJobProcessor.SyncJobItems(Int64[] jobItemIds, Boolean enableConversion, IProgress`1 progress, CancellationToken cancellationToken)
       at Emby.Server.Sync.SyncJobProcessor.Sync(IProgress`1 progress, CancellationToken cancellationToken)
       at Emby.Server.Sync.SyncConvertScheduledTask.Execute(TaskOptions options, IProgress`1 progress, CancellationToken cancellationToken)
       at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
    Source: System.Net.Http
    TargetSite: Void MoveNext()

 

is this reading like something ffmpeg related?  I’m having trouble determining where to start tracking this one down.  I’ve also tried with the latest beta and receive the same result.  Appreciate any thoughts folks have!

Posted
Quote


    System.IO.IOException: System.IO.IOException: The response ended prematurely.

Hi, a likely cause of this is that the site hosting the video is sending back incorrect http response headers. For example, the headers might say the content length is one thing, but then the actual content is shorter or longer than that. 

 

Posted

Thanks!  I’m assuming there’s nothing I can do to compensate for that/copy the media anyway?

Posted

Can you use a browser debugger to confirm?

Posted

In a browser window everything comes down ok when I just paste the link in and download.  Given that would I actually see anything in the debug?  Apologies, I don’t do much in the browser debugger.

  • 3 weeks later...
Posted
On 5/15/2025 at 1:42 PM, goin3d said:

In a browser window everything comes down ok when I just paste the link in and download.  Given that would I actually see anything in the debug?  Apologies, I don’t do much in the browser debugger.

@goin3din the network tab of the browser debug console you'll be able to see the response headers sent back by the remote server. Can you get those?

Posted

In other words, try putting that somesite url into the browser address bar, and then looking in the browser debug console. Thanks !

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...