Voyager icon indicating copy to clipboard operation
Voyager copied to clipboard

ERR_CONNECTION_REFUSED.

Open Cubey42 opened this issue 2 years ago • 12 comments

I get this Creating Minecraft server Please open https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize?client_id=(removed)&response_type=code&redirect_uri=https%3A%2F%2F127.0.0.1%2Fauth-response&response_mode=query&scope=XboxLive.signin+offline_access&state=tRhwbidsvxBh7YfKKpBlBg&code_challenge=S0y5aMT54UHd34jK3HTFoPeEyJs8xxLvVJua-OoldnI&code_challenge_method=S256 in your browser and copy the url you are redirected into the prompt below. (removed is the client_id I created) but I just get a connection refusal each time, not sure what I've done wrong

Cubey42 avatar May 29 '23 00:05 Cubey42

Do you have any error message?

Depending on the error message, It could be you didn't add the redirect url to the white list in the app.

If you just saw the redirection failed, that's expected, copy the redicted url to the terminal and hit enter to continue.

taoisu avatar May 29 '23 01:05 taoisu

Hi, thanks for your interest in this project! For connection refused, you can check this section in FAQ.md

xieleo5 avatar May 29 '23 02:05 xieleo5

Okay so I see the code it mentions per the faq, what do I do with it?

Cubey42 avatar May 29 '23 02:05 Cubey42

You just need to copy the whole link in your browser and paste it to your terminal, then hit the Enter key.

xieleo5 avatar May 29 '23 02:05 xieleo5

I understand I wasn't reading the prompt in the window, sorry for the confusion.

Cubey42 avatar May 29 '23 03:05 Cubey42

Hi, to protect your personal information, I edit your response. The link you just paste is the correct one. You just need to paste that one to your terminal but not your browser.

xieleo5 avatar May 29 '23 03:05 xieleo5

Traceback (most recent call last): File "H:\AI MC\Voyager\run.py", line 13, in voyager = Voyager( File "H:\AI MC\Voyager\voyager\voyager.py", line 102, in init self.env = VoyagerEnv( File "H:\AI MC\Voyager\voyager\env\bridge.py", line 42, in init self.mc_instance = self.get_mc_instance() File "H:\AI MC\Voyager\voyager\env\bridge.py", line 67, in get_mc_instance return MinecraftInstance( File "H:\AI MC\Voyager\voyager\env\minecraft_launcher.py", line 36, in init self.mc_command = self.get_mc_command() File "H:\AI MC\Voyager\voyager\env\minecraft_launcher.py", line 89, in get_mc_command login_data = minecraft_launcher_lib.microsoft_account.complete_login( File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\minecraft_launcher_lib\microsoft_account.py", line 261, in complete_login token = token_request["access_token"] KeyError: 'access_token'

Cubey42 avatar May 29 '23 03:05 Cubey42

Traceback (most recent call last): File "H:\AI MC\Voyager\run.py", line 13, in voyager = Voyager( File "H:\AI MC\Voyager\voyager\voyager.py", line 102, in init self.env = VoyagerEnv( File "H:\AI MC\Voyager\voyager\env\bridge.py", line 42, in init self.mc_instance = self.get_mc_instance() File "H:\AI MC\Voyager\voyager\env\bridge.py", line 67, in get_mc_instance return MinecraftInstance( File "H:\AI MC\Voyager\voyager\env\minecraft_launcher.py", line 36, in init self.mc_command = self.get_mc_command() File "H:\AI MC\Voyager\voyager\env\minecraft_launcher.py", line 89, in get_mc_command login_data = minecraft_launcher_lib.microsoft_account.complete_login( File "C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\site-packages\minecraft_launcher_lib\microsoft_account.py", line 261, in complete_login token = token_request["access_token"] KeyError: 'access_token'

I'm also getting thi serror.

DamascusGit avatar May 29 '23 03:05 DamascusGit

Hi, all. Make sure you log in to the correct Microsoft Account and set everything correctly in App Registration. You can see #18 for further information.

xieleo5 avatar May 29 '23 04:05 xieleo5

May be a proxy issue?

yhyu13 avatar May 29 '23 05:05 yhyu13

Works for me if you set the secret_value to "" in the azure_login options:

azure_login = { "client_id": "...", "redirect_url": "https://127.0.0.1/auth-response", "secret_value": "", "version": "fabric-loader-0.14.21-1.19.4", # the version Voyager is tested on }

ahaslam avatar May 31 '23 01:05 ahaslam

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jun 07 '23 02:06 github-actions[bot]