Abstrat-Technologies / rustedanvil

A project aiming to revive and create patches for abandoned Forge versions
Other
4 stars 1 forks source link

ConnectionError(e, request=request) #7

Open Unloaded123456 opened 1 year ago

Unloaded123456 commented 1 year ago

I have downloaded "requests" with pip, but there is still a problem:

requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=25566): Max retries exceeded with url: /Minecraft.Download/indexes/legacy.json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002144092F190>: Failed to establish a new connection: [WinError 10061] '))

arek-kwapis commented 1 year ago

The script you are trying to run isn't meant to be run without prior setup. You need a XAMPP server configured in a way so that SSL is port 25566, and you need to place the "legacy.json" file on the server with the proper folder structure.

The error is more or less telling you no server exists on localhost:25566, and thus it can't find the file required.

Ran without prior setup of the workspace, this is the correct outcome.

Unloaded123456 commented 1 year ago

1- What is XAMPP? Do I need to install manually? 2- How to set up? I could not find any script for that kind of setup. 3- If I need to set up manually, how to do that? I need a tutorial, it really does not matter for me if there is one step or one thosuand step.

arek-kwapis commented 1 year ago
  1. XAMPP is a developmental webserver toolkit that we're temporarily using to essentially emulate a webserver
  2. There is no script and there won't be one. In Milestone 2, we will stop using XAMPP in favour of a native implementation (a nodejs local private webserver that will be made during setup, and then destroyed once setup is finished, making it more secure and less risky for users)
  3. Setup is as easy as running the provided XAMPP installer provided in the redist folder and allocating SSL of the Apache webserver to port 25566. Do note that with XAMPP there are major security risks even if used properly. 3.1. Setting it up for the download script right now is kind of pointless - we use a custom legacy.json file only available on my local machine currently. Once we reach Milestone 2 and the need for it arises, It'll be uploaded to the Abstrat CDN for the scripts to use
Unloaded123456 commented 1 year ago

What version of XAMPP that I need? The latest, oldest or somewhere between it?

arek-kwapis commented 1 year ago

It's provided in the redist folder

https://github.com/Abstrat-Technologies/rustedanvil/tree/1.6.4_965/_REDIST

Unloaded123456 commented 1 year ago

Where should I put the legacy.json file? Does the built-in one work?

arek-kwapis commented 1 year ago

This is already covered in my comment from a few days ago

3.1. Setting it up for the download script right now is kind of pointless - we use a custom legacy.json file only available on my local machine currently. Once we reach Milestone 2 and the need for it arises, It'll be uploaded to the Abstrat CDN for the scripts to use