Unreal source file corrupted

Hi. I downloaded UE4 source code from GitHub, and when I try to extract it it says “unexpected end of archive file” and when I try to re-download it again or from other browser it shows the same problem. When I try to repair it WinRAR says its corrupted file and no file is repaired. Any solution for this? Thanks in advance

Retrying until it works is the only thing I can think of, but you can always try to pull the code with git instead of downloading the zip file.

“try to pull the code with git instead of downloading the zip file”

how to do that?

Download and install git, open the git command line in the folder where you want to download UE into and type one of these commands:

git clone git@github.com:EpicGames/UnrealEngine.git if you’ve set up SSH keys for your github account, git clone https://github.com/EpicGames/UnrealEngine.git otherwise.

Getting data from github, either using git or downloading a zip file, can go wrong so easy. A single hiccup in your internet connection can corrupt your whole proccess.
You have to download it again, and if it’s corrupted, you can’t do anything but try downloading it again!
Now, if you’re not having a fast and steady internet connection, Don’t use git. Because it’s gonna download gigabytes of data (I think almost 10GB) and it usually fails to do so after getting some. Instead, download the .zip file from github, it’s usually 400~700 MB. And if it’s corrupted, download it again.

Thanks, downloading it again and again worked. Download itself was incomplete and not all part of zip was downloaded, so after sometime it successfully downloaded all of them and now it’s not corrupted.

Thanks, downloading it again and again worked.

SOLVED: downloading zip file again worked. Initial download was incomplete and next tries downloaded all of them.