Closed kyuranger closed 5 months ago
The value of the MaximumBytesPerSecond
is so low and not reachable speed to the server. Please set it to zero and test it again.
The value of the
MaximumBytesPerSecond
is so low and not reachable speed to the server. Please set it to zero and test it again.
All right, I just want to test download and I cannot find a file large enough, so I have to do it like this.
To test the download you can use your own file API like the Downloader.DummyHttpServer
project. Which can provide any size of file to download. For a usage sample, please see the Downloader.Sample
project which executes the API server before downloading and creates the download links in DownloadList.json
.
Also, you can use the below web server to provide large-size files: File Example
To test the download you can use your own file API like the
Downloader.DummyHttpServer
project. Which can provide any size of file to download. For a usage sample, please see theDownloader.Sample
project which executes the API server before downloading and creates the download links inDownloadList.json
.Also, you can user the below web server to provide large size files: File Example
Thank you so much. I consider it should post the https://file-examples.com/ in the project home page. This would help so many people to test their sample project.
I am afraid for reopening this issue again. I have been busy and haven't developed for a long time. Now I tried to modify the MaximumBytesPerSecond from 1 to 1024 1024 2. However, the error "The downloader cannot continue downloading because the network or server failed to download in range." still throws in DownloadFileCompleted event and cannot download the file successfully.
@kyuranger Take it easy and make sure you can open it again whenever you have a problem. I will check it and answer here. it takes a few days because now I'm busy.
Thank you very much for your hard work
{"ClassName":"System.Net.WebException" "Message":"The operation has timed out." "Data":null "InnerException":null "HelpURL":null "StackTraceString":" at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.WebRequest.<>c.<GetResponseAsync>b__68_2(IAsyncResult iar)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar Func`2 endFunction Action`1 endAction Task`1 promise Boolean requiresSynchronization)
--- End of stack trace from previous location ---
at Downloader.Request.FetchResponseHeaders(Boolean addRange) in D:\Programming\Personal\Downloader\src\Downloader\Request.cs:line 101
at Downloader.Request.IsSupportDownloadInRange() in D:\Programming\Personal\Downloader\src\Downloader\Request.cs:line 181
at Downloader.Request.GetFileSize() in D:\Programming\Personal\Downloader\src\Downloader\Request.cs:line 162
at Downloader.DownloadService.StartDownload() in D:\Programming\Personal\Downloader\src\Downloader\DownloadService.cs:line 186" "RemoteStackTraceString":null "RemoteStackIndex":0 "ExceptionMethod":null "HResult":-2146233079 "Source":"System.Net.Requests" "WatsonBuckets":null}
does this error is the same issues ?
im not sure.but its throw on windows 7, but not on windows 10 by .net 6.0
@sgf we can't realize the main of your issue with this data. Please give more info and the URL and configs.
@sgf we can't realize the main of your issue with this data. Please give more info and the URL and configs.
This problem occurs on a customer's machine, and I will continue to keep an eye on it. If the same thing happens next time, I will report it here to add more details. If it doesn't happen again, please ignore my submission.
I am a beginner and I want to create a sample project to test.
Here is the URL(but the server not support range download): https://cdn.pixabay.com/vimeo/576083058/Hello%20-%2081605.mp4?width=1920&hash=e6f56273dcd2f28fd1a9fe6e77f66d7e157b33f6&download=1
And here is my code:
However, even I set the RangeDownload to false, ChunkCount to 1, ParallelDownload to false, ParallelCount to 1 and Package.IsSupportDownloadInRange to false. The DownloadCompleted event still report the error "The downloader cannot continue downloading because the network or server failed to download in range." and can not download the file.
What's wrong with my code? Thank you.