Setup.bat dependency download failing for windows 5.1, cant find anything on this anywhere.

Hello,

I just submitted a bug report on this one. It seems that the following commit,

Updating GitDependencies · EpicGames/UnrealEngine@ca70302 (github.com)

, modified the download facility to .NET’s HttpClient. Now HttpClient has a default timeout of 100s, so if a download cannot be completed within this time, the task will be canceled. It is not a nice design from the .NET side (also see Bug in HttpClient.GetAsync should throw WebException, not TaskCanceledException (microsoft.com))

Fortunately, it can be trivially fixed by increasing the timeout and maybe a program option can be also introduced to modify it at will.

For a Quick fix one can

  1. Pull out Engine/Source/Programs/GitDependencies to a separate directory

  2. Open with VS Studio as a C# project

  3. In Engine/Source/Programs/GitDependencies/Program.cs andunder
    HttpClient Client = new HttpClient(Handler);
    add:
    Client .Timeout = TimeSpan.FromSeconds(1000);

  4. Compile and run the produced GitDependencies.exe before running Setup.bat

I will submit a pull request in the next few days with suggested changes.

3 Likes