Saturday, May 28, 2022

Fix: ‘Failed To Download File, The File Contents Differ From What Was Expected’ Minecraft Error

When you get the error “Failed to download a file, and the file contents differ from what was expected” on Minecraft, then follow this article to find the solutions.

The problem is quite common and there are plenty of solutions available.

What To Do When You Have Failed To Download File Minecraft?

Perform all the solutions given below when you get the error failed to download the file on Minecraft.

Also read: An Existing Connection Was Forcibly Closed By The Remote Host Minecraft.

1) Update Minecraft

When you find that Minecraft is unable to download, then try updating your Minecraft launcher.

An outdated Minecraft launcher can be the reason behind this problem. So, follow the steps and update the launcher:

  • Open Minecraft Launcher and click on Options.
  • Next, click on the Force Update option and wait till the process gets finished.

Now try to download and check if Minecraft can download now.

2) Open Minecraft Through Vanilla Launcher

If Minecraft failed to download a file due to a glitch in a mod that was applied to some non-vanilla launcher, then open Minecraft via Vanilla Launcher.

Follow the steps to do so:

  • Close the previous launcher and then open Minecraft Vanilla Launcher.
  • Click on the Play option and run it till you see Create Game screen option.

create_gamescreen_minecraft

  • Now close Vanilla Launcher. Make sure to close it from the system tray.
  • Open the normal launcher and check if you can run it now.

3) Get Rid Of The Corrupted Mod

If the mod you are using is corrupted then this can create a problem with Minecraft downloads. So, remove the corrupted Mod and check.

Follow the process to remove the corrupted Mod:

  • Close Minecraft Launcher. Make sure you have closed it from the system tray also.
  • Now open the Run utility and enter the following in the dialog box:
%appdata%

appdata

  • Press the Enter key to run the command.
  • Open Minecraft and double-click on the Mods folder.

mods_folder_minecraft

  • Copy the Mods and save them to some other location.
  • Now delete the Mods folder. Open your Minecraft Launcher and check if it is working properly now.

If you find there is no problem then close the launcher.

  • Now copy the mods one by one and paste them to the Mods folder. Open the Minecraft launcher each time to check if it is working fine.
  • Repeat the process till you find the problematic Mod. This way you will be able to detect the corrupted Mod.
  • Once the Mod is detected, update the Mod or contact the developer to solve the problem.

4) Set Java For Opening .Jar Extension

After performing the above steps if you have still failed to download the file on Minecraft, then set Java as the default application for opening .Java or .Jar file extensions.

Follow the steps to make the changes:

  • Press Win + R hotkeys and launch Run command.
  • Enter the following in the dialog box and press the Enter key:
%appdata%\.minecraft\assets\indexes\

appdata_minecraft_assets

  • Find .Java or .Jar file extensions and right-click on it. Select Properties.
  • Now click on the Change option for Open with. Select OpenJK Platform Binary or Java.
  • Click on the Apply button to save your changes and open the launcher. Now check if you can download without having any issues.

5) Check If Firewall Is Interfering

Sometimes firewall can interfere with Minecraft and prevent it from downloading necessary files, which can lead to the error failed to download file on Minecraft.

So, disable your Firewall protection and check if this helps. Follow the steps to turn off Windows Defender Firewall:

  • Enter Windows Defender Firewall in the Search Menu and select the top option.
  • Click on the Turn Windows Defender Firewall on or off as shown below.

Turnon_Windows_Firewall

  • Next click on the buttons to Turn off Windows Defender Firewall (not recommended option) for both Private and Public network settings.

Turn_off_windows_defender_firewall

If you are using any other antivirus, then disable it also for the time being.

6) Reinstall Minecraft

If none of the above processes could help you when you failed to download a file on Minecraft, then reinstall Minecraft.

Follow the steps to do so:

  • Go to the Start Menu and type Control Panel. Select the top option.
  • Now select the Programs and Features
  • Locate Minecraft and right-click on it. Select uninstall.
  • Reinstall Minecraft and then connect the server. Hope this time you can run it without any error.

Closing Up

Hope you have found a suitable solution for the error “Failed to download a file, and the file contents differ from what was expected” on Minecraft. For any further queries, comment in the section given below.

Sanchita Das
Creative and focused. Always ready to learn new techniques and improvise accordingly. Loves to meet new challenges and explore new possibilities.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles