Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Live instance of Break Solana is stuck Initializing... #1385

Open
denosaurtrain opened this issue Oct 15, 2022 · 0 comments
Open

Live instance of Break Solana is stuck Initializing... #1385

denosaurtrain opened this issue Oct 15, 2022 · 0 comments

Comments

@denosaurtrain
Copy link

When I visit https://break.solana.com/game, the page is stuck in an Initializing... state. Looking at the browser logs, the client is making a POST request to https://break-solana-mainnet.herokuapp.com/init and receives a 404 from the server. I had hoped to contribute a fix (full disclosure: because I'm job searching), but if my hypothesis is correct, only someone with access to the Heroku account can troubleshoot further. From what I can tell the most likely culprit is this line:

if (!process.env.DISABLE_API) {
  app.use(cors());
  app.use(express.json());
  ApiServer.start(app, httpServer);
}

Since ApiServer is responsible for handling the POST request to /init, it makes sense that the server would return 404 if the server had been initialized with DISABLE_API improperly set.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant