shinkuan/Akagi

Setup Issue: MJAI Not Responding To POST Requests

Closed this issue · 1 comments

Describe the bug
I get this bug when starting a friendly game in web browser
image

I get a Remote Disconnection error on the terminal when entering a game.

I started up my own docker instances from akagi.log and I can do GET request with 200 OK. But the code always fails when attempting this POST request:

[{"type": "start_game", "id": 2}]

I cannot do POST requests to my docker instances with the above payload (and neither can the code in player.py react function.

I think the MJAI Server is not setup properly or something?

To Reproduce
Steps to reproduce the behavior:

  1. Run python mitm_playwright.py
  2. Run Proxifier
  3. Run python client.py
  4. Start a friendly game with AI bots

Expected behavior
The client.py terminal to show the normal screen reading information for the game.

Screenshots
Full Error:

image

Docker instances:

image

MITM Running correctly:

image

Proxifier setup:

image image

Web browser playing the game from playwright:

image

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome

Additional context
I debugged the problem to the following:

Solved on discord. The user didn't have the correct bot.zip placed in the ./players folder.