microsoft / malmo

Project Malmo is a platform for Artificial Intelligence experimentation and research built on top of Minecraft. We aim to inspire a new generation of research into challenging new problems presented by this unique environment. --- For installation instructions, scroll down to *Getting Started* below, or visit the project page for more information:
https://www.microsoft.com/en-us/research/project/project-malmo/
MIT License
4.06k stars 601 forks source link

A lot HTTP 400 responses while run launchClient.bat #933

Open GF-Huang opened 1 year ago

GF-Huang commented 1 year ago

image

YXHXianYu commented 1 year ago

+1 It takes 30+min to download and show error messages every time i start a minecraft instance...... Sad TAT

I think this is because the website(resources.download.minecraft.net)'s links have changed (maybe since Feb) and i have no idea how to fix it.

YXHXianYu commented 1 year ago

I found the reason!

http needs to be upgrade to https.

reference: https://github.com/gorilla-devs/GDLauncher/issues/1513

Start1w commented 1 year ago

I encountered the same problem under the MineDojo project. In Mindojo Project, I see #55. Then I slove this problem.

tinshou commented 9 months ago

I found the reason!

http needs to be upgrade to https.

reference: gorilla-devs/GDLauncher#1513

Hi , could you help to point out where to change http protocol? I am facing the same issue, but can't find the place to change this, thank you so much!

YXHXianYu commented 9 months ago

I found the reason! http needs to be upgrade to https. reference: gorilla-devs/GDLauncher#1513

Hi , could you help to point out where to change http protocol? I am facing the same issue, but can't find the place to change this, thank you so much!

Reference:https://github.com/gorilla-devs/GDLauncher/issues/1513#issuecomment-1386022976。 Reference's Content: I'm seeing the same issue, just installed gd launcher from the website on a new windows 11 install. The issue seems to be that all of the minecraft resources are being requested as http, when they need to be https e.g. http://resources.download.minecraft.net/35/35804fade414c6d27ab36816569828d4d8483078 doesn't work in a browser, but will work if changed to https://resources.download.minecraft.net/35/35804fade414c6d27ab36816569828d4d8483078

I have forgotten the specific operational steps. According to the original text's description, you can try using an Integrated Development Environment (IDE) for a global search, searching for "resources.download.minecraft.net," and changing the "http" to "https" for all the URLs you find.

chrissound commented 6 months ago

This can be worked around via a proxy

For example:

user nginx;
pid /run/nginx.pid;

events {
    worker_connections 1024;
}

http {
    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    server {
        listen 80;
        server_name _;

        location / {
            proxy_pass https://resources.download.minecraft.net/;
            proxy_set_header Host resources.download.minecraft.net;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_ssl_verify off;
            proxy_ssl_session_reuse on;
        }
    }
}

Run that with nginx -c /absolute/path/to/above/nginx.confg, and then add it to yours hosts file:

echo "127.0.0.1 resources.download.minecraft.net" >> /etc/hosts
huidangling commented 4 months ago

+1 It takes 30+min to download and show error messages every time i start a minecraft instance...... Sad TAT

I think this is because the website(resources.download.minecraft.net)'s links have changed (maybe since Feb) and i have no idea how to fix it.

well, i accessed this website directly, and found the error page is :

<Error>
<Code>AccountRequiresHttps</Code>
<Message>The account being accessed does not support http. RequestId:0fd49aa8-201e-0065-0f6c-a017d8000000 Time:2024-05-07T10:51:57.6540960Z</Message>
<AccountName>resourcesdownloadminecra</AccountName>
</Error>

Add an 's' after p, it well work. Thank you for the ideas you provided.

huidangling commented 4 months ago

I found the reason! http needs to be upgrade to https. reference: gorilla-devs/GDLauncher#1513

Hi , could you help to point out where to change http protocol? I am facing the same issue, but can't find the place to change this, thank you so much!

Reference:https://github.com/gorilla-devs/GDLauncher/issues/1513#issuecomment-1386022976。 Reference's Content: I'm seeing the same issue, just installed gd launcher from the website on a new windows 11 install. The issue seems to be that all of the minecraft resources are being requested as http, when they need to be https e.g. http://resources.download.minecraft.net/35/35804fade414c6d27ab36816569828d4d8483078 doesn't work in a browser, but will work if changed to https://resources.download.minecraft.net/35/35804fade414c6d27ab36816569828d4d8483078

I have forgotten the specific operational steps. According to the original text's description, you can try using an Integrated Development Environment (IDE) for a global search, searching for "resources.download.minecraft.net," and changing the "http" to "https" for all the URLs you find.

I tried to find 'resources.download.minecraft.net', but it seems like not in the release package, I believe these resources are referencing external resources. Means I cant change the "http" to "https"... Are you sure you succeeded by this method?