Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GF-Huang opened this issue Feb 24, 2023 · 8 comments
Open

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

GF-Huang opened this issue Feb 24, 2023 · 8 comments

Comments

@GF-Huang
Copy link

image

@YXHXianYu
Copy link

YXHXianYu commented Apr 23, 2023

+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
Copy link

I found the reason!

http needs to be upgrade to https.

reference: gorilla-devs/GDLauncher#1513

@Start1w
Copy link

Start1w commented May 17, 2023

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

@tinshou
Copy link

tinshou commented Dec 1, 2023

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
Copy link

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
Copy link

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
Copy link

+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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants