Had this issue after downloading the launcher and attempting to log in. Tried pretty much all the other solutions given in other threads with similar issues. Seems to be something with authentication, even though I am using the proper version of Minecraft.
Attached below is the launcher log.
Linked issues
duplicates 1
Attachments
Comments 3

That's not really a solution we can spread as you need your host file.
It's more likely the issue was caused by something in your hosts file, hence why removing the file all together fixed your problem.
Thank you for your report!
We're actually already tracking this issue in MCL-11510, so I resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Solved by deleting %SystemRoot%\System32\drivers\etc\hosts