battlesnake CLI niot showing browser board #262
Replies: 2 comments 1 reply
-
Hi @Ghdhdhdh! I tried it myself, and didn't see the "Failed to Fetch error". Everything worked expected for me, so here are a few diagnostic questions that might help us figure out why you're seeing something different:
|
Beta Was this translation helpful? Give feedback.
-
Ahh, so you're using Replit. The problem is that the Battlesnake CLI is serving the board on 127.0.0.1 (i.e. localhost, i.e. your Replit instance), and then trying to use that address in the board URL publicly. But 127.0.0.1 in your browser resolves to your localhost, not Replit. I don't recall the solution on the top of my head, but I vaguely remember someone has seen this issue before in the live streams. |
Beta Was this translation helpful? Give feedback.
-
./battlesnake play -W 11 -H 11 --name "Snake Starter Project" --url "https://example.com" -g solo --browser
The command works when I run it without the --browser flag. With it, it just shows a browser that says "Failed to Fetch"
Beta Was this translation helpful? Give feedback.
All reactions