Voyager icon indicating copy to clipboard operation
Voyager copied to clipboard

access_token = account_request["access_token"] KeyError: 'access_token'

Open ItsBean opened this issue 1 year ago • 15 comments

Upon trying to authenticate with the Minecraft API via Xbox, I'm encountering a 'FORBIDDEN' error. Here's the returned value:

account_request: {'path': '/authentication/login_with_xbox', 'error': 'FORBIDDEN'}

Could anyone provide some insight into why this may be occurring, and offer potential solutions to resolve this issue?

ItsBean avatar Jun 01 '23 10:06 ItsBean

Do you buy the Minecraft game in that account?

xieleo5 avatar Jun 01 '23 12:06 xieleo5

YES

ItsBean avatar Jun 01 '23 12:06 ItsBean

Seems to be same issue as #54, let's just leave the discussion there.

xieleo5 avatar Jun 01 '23 12:06 xieleo5

hi, i can give you my account, can you help me verify whether or not it's my account's problem

ItsBean avatar Jun 01 '23 12:06 ItsBean

and there are multiple edition for minecraft and which one should i buy

ItsBean avatar Jun 01 '23 12:06 ItsBean

Emm, I don't think it's a good idea to give accounts to others on the Internet. Let's just wait for DeveloperHarris's investigation. Also, you can try to use mc_port to run. You just need to manually resume if it crashes.

xieleo5 avatar Jun 01 '23 12:06 xieleo5

while not self.mineflayer.is_running:

        print("Mineflayer process has exited, restarting")
        self.mineflayer.run()
        print('self.mineflayer.run() done --bean')
        if not self.mineflayer.is_running:
            if retry > 3:
                raise RuntimeError("Mineflayer process failed to start")
            else:
                continue
        print('self.mineflayer.ready_line:', self.mineflayer.ready_line)
        print('start post, info are:', self.server, self.reset_options, self.request_timeout)
        res = requests.post(
            f"{self.server}/start",
            json=self.reset_options,
            timeout=self.request_timeout / 10,
        )`
        

the error is shown below (post timeout) self.mineflayer.run() done --bean self.mineflayer.ready_line: Server started on port 3000 start post, info are: http://localhost:3000 {'port': 36409, 'reset': 'hard', 'inventory': {}, 'equipment': [], 'spread': False, 'waitTicks': 20, 'position': None} 600 Traceback (most recent call last):

can you tell me how to solve this problem

ItsBean avatar Jun 01 '23 12:06 ItsBean

I'm trying to use mc_port instead of Azure_login to run voyager. but voyagerEnv server is set to localhost at port 3000. However, it seems nothing is listening at this port. I suspect there might be some essential steps missing in the setup instructions for users who are using mc_port with Voyager. Could you please provide any additional steps or requirements needed to correctly utilize the mc_port parameter?

ItsBean avatar Jun 01 '23 12:06 ItsBean

Can you try to run node index.js under voyager/env/mineflayer directory? After doing so, could you also check is there something listening at port 3000?

xieleo5 avatar Jun 01 '23 13:06 xieleo5

(voyager) xxxx@xxxx:~/bean/Voyager/voyager/env/mineflayer$ node index.js Server started on port 3000 { port: 36409, reset: 'hard', inventory: {}, equipment: [], spread: false, waitTicks: 20, position: null }

ok. then what is the next step

ItsBean avatar Jun 01 '23 13:06 ItsBean

Seems that the node js starts normally. Before you continue, make sure you kill all the processes you just started. Then, start your Minecraft game through the official launcher. Open the world to LAN and record the port number. Finally, you can run Voyager with mc_port you just recorded.

xieleo5 avatar Jun 01 '23 13:06 xieleo5

Hello, i restart my ubuntu and do as you said, and the problem still exist!

(voyager) xxxx@xxxx:~/bean/Voyager$ python start_game.py Init Voyager Resetting environment --bean Starting Mineflayer process --bean Mineflayer process has exited, restarting Subprocess mineflayer started with PID 6788. self.mineflayer.run() done --bean self.mineflayer.ready_line: Server started on port 3000 start post, info are: http://localhost:3000 {'port': 33625, 'reset': 'hard', 'inventory': {}, 'equipment': [], 'spread': False, 'waitTicks': 20, 'position': None} 600

Error is: socket.timeout: timed out urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='localhost', port=3000): Read timed out. (read timeout=60.0)

ItsBean avatar Jun 01 '23 13:06 ItsBean

I met the same problem, please tell me how you solved it.

BrunoFANG1 avatar Jun 02 '23 22:06 BrunoFANG1

no clearly explained tutorial bro, just explore the code yourself and you will get it

ItsBean avatar Jun 07 '23 05:06 ItsBean

Same issue with Azure. Even using 'web' for the callback, it still cannot address the problem.

GoingMyWay avatar Jun 07 '23 06:06 GoingMyWay

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

github-actions[bot] avatar Jul 08 '23 02:07 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

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