MineDojo / Voyager

An Open-Ended Embodied Agent with Large Language Models
https://voyager.minedojo.org/
MIT License
5.4k stars 493 forks source link

ERR_CONNECTION_REFUSED. #28

Closed Cubey42 closed 1 year ago

Cubey42 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

Cubey42 commented 1 year ago

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

xieleo5 commented 1 year ago

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

Cubey42 commented 1 year ago

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

xieleo5 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

May be a proxy issue?

ahaslam commented 1 year ago

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[bot] commented 1 year ago

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