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

ERR_CONNECTION_REFUSED. #28

Closed
Cubey42 opened this issue May 29, 2023 · 12 comments
Closed

ERR_CONNECTION_REFUSED. #28

Cubey42 opened this issue May 29, 2023 · 12 comments
Labels

Comments

@Cubey42
Copy link

Cubey42 commented May 29, 2023

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

@taoisu
Copy link

taoisu commented May 29, 2023

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.

@xieleo5
Copy link
Collaborator

xieleo5 commented May 29, 2023

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

@Cubey42
Copy link
Author

Cubey42 commented May 29, 2023

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

@xieleo5
Copy link
Collaborator

xieleo5 commented May 29, 2023

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

@Cubey42
Copy link
Author

Cubey42 commented May 29, 2023

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

@xieleo5
Copy link
Collaborator

xieleo5 commented May 29, 2023

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.

@Cubey42
Copy link
Author

Cubey42 commented May 29, 2023

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'

@DamascusGit
Copy link

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.

@xieleo5
Copy link
Collaborator

xieleo5 commented May 29, 2023

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.

@yhyu13
Copy link

yhyu13 commented May 29, 2023

May be a proxy issue?

@ahaslam
Copy link

ahaslam commented May 31, 2023

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 }

@github-actions
Copy link

github-actions bot commented Jun 7, 2023

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

@github-actions github-actions bot added the stale label Jun 7, 2023
@Cubey42 Cubey42 closed this as completed Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants