Comments (18)
This change is the reason: https://help.minecraft.net/hc/en-us/articles/16254801392141
from voyager.
I went ahead and started diving into it, and at least for me, it seems to be an issue with the complete_login function of minecraft-launcher-lib. Specifically on line 355 in microsoft_account.py
account_request = authenticate_with_minecraft(userhash, xsts_token)
returns with a 403 FORBIDDEN.
I've tried completing the flow with and without the client secret, since it's now depreciated but no luck. Always {'path': '/authentication/login_with_xbox', 'error': 'FORBIDDEN'}
. Will continue looking into it.
from voyager.
Unfortunately the login guide from minecraft-launcher-lib doesn't provide any help here so I ended up digging through the code to try and debug, and while I narrowed it down to the authenticate_with_minecraft() call, I couldn't find any reason why minecraft-launcher-lib was getting a 403 Forbidden error during the Minecraft Oauth2 flow, especially because it successfully authenticated with Microsoft & Xbox, but couldn't authenticate with Minecraft's API.
I'm using my Microsoft account (attached to my Gmail). I recently had to link my Minecraft account to my Microsoft account, so maybe it has something to do with that? Unsure. Either way, I ended up just using the mc_port method to get it to work.
More info on the oauth2 flow can be found at https://wiki.vg/Microsoft_Authentication_Scheme
from voyager.
Don't know the reason. I saw in other issue that the author mentioned you have to restart the process manually if the process is disconnected somehow with mc_port
. Don't know if other factors are in the play.
from voyager.
Having this issue as well:
Traceback (most recent call last):
File "/Users/harris/src/voyager-test/main.py", line 12, in <module>
voyager = Voyager(
File "/Users/harris/src/Voyager/voyager/voyager.py", line 104, in __init__
self.env = VoyagerEnv(
File "/Users/harris/src/Voyager/voyager/env/bridge.py", line 42, in __init__
self.mc_instance = self.get_mc_instance()
File "/Users/harris/src/Voyager/voyager/env/bridge.py", line 67, in get_mc_instance
return MinecraftInstance(
File "/Users/harris/src/Voyager/voyager/env/minecraft_launcher.py", line 36, in __init__
self.mc_command = self.get_mc_command()
File "/Users/harris/src/Voyager/voyager/env/minecraft_launcher.py", line 74, in get_mc_command
code_url = input()
KeyboardInterrupt
Tried mobile & web but neither worked. Will dive into it to figure out why.
from voyager.
Turns out the error occurs on line 324 of the microsoft_account.py file in microsoft-launcher-lib. For some reason the get_authorization_token() function fails to return the expect JSON .
from voyager.
@DeveloperHarris Hi, thanks a lot for your investigation. Since I cannot reproduce this error on my machine. I cannot provide further help. Maybe you can try to read the original login guide from minecraft-launcher-lib or create an issue there. If you have any findings, welcome to share them here.
from voyager.
Also having this issue, curious are you using a third party microsoft account? E.g. through gmail
from voyager.
I have same issue.
C:\Users\xxxxx\anaconda3\lib\site-packages\minecraft_launcher_lib\microsoft_account.py
def authenticate_with_minecraft(userhash: str, xsts_token: str) -> MinecraftAuthenticateResponse:
"""
Authenticate with Minecraft
"""
parameters = {
"identityToken": f"XBL3.0 x={userhash};{xsts_token}"
}
header = {
"Content-Type": "application/json",
"user-agent": get_user_agent(),
"Accept": "application/json"
}
r = requests.post("https://api.minecraftservices.com/authentication/login_with_xbox", json=parameters, headers=header)
import pdb; pdb.set_trace()
return r.json()
(Pdb) r
--Return--
> c:\users\xxxxx\anaconda3\lib\site-packages\minecraft_launcher_lib\microsoft_account.py(230)authenticate_with_minecraft()->{'error': 'FORBIDDEN', 'path': '/authenticat...gin_with_xbox'}
-> return r.json()
from voyager.
Got the same error as well with both web
and Public client/native
. Start digging.
from voyager.
yse, I tried both conditions, but it' doesn't work.
Why we got 403 error?
Which authentication we couldn't pass?
from voyager.
Gave up and use mc_port
. Works.
from voyager.
Unfortunately the login guide from minecraft-launcher-lib doesn't provide any help here so I ended up digging through the code to try and debug, and while I narrowed it down to the authenticate_with_minecraft() call, I couldn't find any reason why minecraft-launcher-lib was getting a 403 Forbidden error during the Minecraft Oauth2 flow, especially because it successfully authenticated with Microsoft & Xbox, but couldn't authenticate with Minecraft's API.
I'm using my Microsoft account (attached to my Gmail). I recently had to link my Minecraft account to my Microsoft account, so maybe it has something to do with that? Unsure. Either way, I ended up just using the mc_port method to get it to work.
More info on the oauth2 flow can be found at https://wiki.vg/Microsoft_Authentication_Scheme
Hi, do you know how to make MC running in the backend via using the mc_port method? While running, I cannot move the mouse cursor out of the game.
from voyager.
@lukaemon
Thanks advice!! I counld start Voyager.
Do you know the difference of these ways to play? mc_port way is not recommended?
from voyager.
Don't know the reason. I saw in other issue that the author mentioned you have to restart the process manually if the process is disconnected somehow with
mc_port
. Don't know if other factors are in the play.
I guess that is the main reason. I ran all the iterations set in the code and did not reproduce the performance in the paper. BTW, did you manage to reproduce the results in the paper.
from voyager.
This change is the reason: https://help.minecraft.net/hc/en-us/articles/16254801392141
It seems we should apply for the permission.
from voyager.
This issue is stale because it has been open for 30 days with no activity.
from voyager.
This issue was closed because it has been inactive for 14 days since being marked as stale.
from voyager.
Related Issues (20)
- Error while python install
- Error while installing HOT 5
- ISSUE:Your last round rollout terminated due to error: list index out of range HOT 3
- Constant empty inventory HOT 1
- App Registration Entra Directives? HOT 6
- AssertionError [ERR_ASSERTION]: plugin needs to be a function HOT 11
- Implement a way test local models HOT 6
- the error on run "npx tsc" HOT 4
- Connection refused HOT 1
- UserWarning: Subprocess mineflayer failed to start. HOT 4
- module 'openai' has no attribute 'error' HOT 2
- Connect to OpenAI failes: requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) HOT 3
- npx tsc giving error when running it HOT 4
- Fails with small models including llama3-8b HOT 10
- Instructions for Replay Mod Recording HOT 2
- Voyager HOT 3
- Biome Field Empty String
- Setting up Voyager on llama3-70b and a question. HOT 2
- MC seeds used by Voyager's skill libraries HOT 4
- the bot join and left immidiatly HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from voyager.