Mido icon indicating copy to clipboard operation
Mido copied to clipboard

[Bug] Windows 11 download returns error 403

Open kroese opened this issue 10 months ago • 6 comments

For a while (a month) I havent been able to download Windows 11 via Mido anymore. I can succesfully download all other versions (8, 10, etc) but not 11. It always returns HTTP error 403.

At first I thought I just had been blocked, but I tried from many different IP addresses and they all result in error 403. So I am starting to think the problem is not on my end, but some change in the query parameter format for example.

Can someone please confirm wether Win11 download is still working for them?

kroese avatar Apr 13 '24 15:04 kroese

Possibly related: https://github.com/pbatard/Fido/issues/88#issuecomment-1932124133

kroese avatar Apr 13 '24 15:04 kroese

I cannot reproduce this anymore.. Seems Microsoft changed something again, but at least it works now.

kroese avatar Apr 21 '24 20:04 kroese

And the error has returned.. I still think it has something to do with https://github.com/pbatard/Fido/issues/88#issuecomment-1932124133

kroese avatar Apr 24 '24 04:04 kroese

Just tried this and I am also seeing the same 403 error code.

DLopezJr avatar Apr 30 '24 04:04 DLopezJr

This is the same issue I found a couple of weeks ago. https://github.com/quickemu-project/quickemu/pull/1102

lj3954 avatar May 03 '24 00:05 lj3954

@lj3954 I believe what you're directly referring to is the $iso_download_link variable.

Your commit in quickemu removes the truncating of the output to 512 characters.

So from this:

local iso_download_link="$(echo "$iso_download_link_html" | grep -o "https://software.download.prss.microsoft.com.*IsoX64" | cut -d '"' -f 1 | sed 's/&/\&/g' | tr -cd '[:alnum:][:punct:]' | head -c 512)"

to

local iso_download_link="$(echo "$iso_download_link_html" | grep -o "https://software.download.prss.microsoft.com.*IsoX64" | cut -d '"' -f 1 | sed 's/&/\&/g' | tr -cd '[:alnum:][:punct:]')"

I just confirmed this fixes the Windows 11 issue with Mido (by editing Line 391).

Although I do get a checksum error: (but this is most likely a separate issue?)

[!] 1 of the downloaded Windows media did NOT match the expected checksum! This means either that the media is a newer release than our current checksum (stored in Mido), was corrupted during download, or that is has been (potentially maliciously) modified! Please manually verify the Windows media before use: win11x64.iso

EDIT: Just saw @kroese pull request, which I can confirm works.

DLopezJr avatar May 03 '24 06:05 DLopezJr