Invalid Answer From Server

Game development with Board Game Arena Studio
Post Reply
The Red Kite
Posts: 14
Joined: 31 August 2021, 18:30

Invalid Answer From Server

Post by The Red Kite »

Hi

Apologies if this has already been asked. Did a search and could not find it.

I recently started to see the following (red) message when I start the game I am developing in BGA Studio

Invalid Answer from server

Well I think that's what it says. It flashes up so quickly.
User avatar
thoun
Posts: 1619
Joined: 10 December 2020, 22:25

Re: Invalid Answer From Server

Post by thoun »

What is the project? Do you have the full error in the DevTool console?
The Red Kite
Posts: 14
Joined: 31 August 2021, 18:30

Re: Invalid Answer From Server

Post by The Red Kite »

I am investigating.

When I checked in my code to source control I got some suggestions about changes (such as removing states 1 and 99 from the state file, and remove some deprecated methods, delete the version.php etc) I could make as the platform has moved on since I last checked in.

I made some of the changes and then re-ran the game (express start). I got the nice messages such as 'you have enough players' and then the error.

I just rolled everything back prior to making the changes and the error has disappeared.

BTW: I looked in the Javascript console and couldn't see any errors.

I am assuming that during game setup something is sent back to the client and the client didn't like it.
The Red Kite
Posts: 14
Joined: 31 August 2021, 18:30

Re: Invalid Answer From Server

Post by The Red Kite »

The project is for the game Bazaar.

Looks like I got lucky and it started once without error. I am now getting the error again

Here is what the console shows

16:57:23.306 Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.
16:57:23.307 Uncaught (in promise) Error: Invalid answer from server
XB https://static.studio.boardgamearena.co ... index.js:1
sc https://static.studio.boardgamearena.co ... index.js:1
sc https://static.studio.boardgamearena.co ... index.js:1
startTable https://static.studio.boardgamearena.co ... index.js:1
onClick2 https://static.studio.boardgamearena.co ... index.js:2
e6e https://static.studio.boardgamearena.co ... index.js:2
Ma https://static.studio.boardgamearena.co ... index.js:1
Ma https://static.studio.boardgamearena.co ... index.js:1
DQ https://static.studio.boardgamearena.co ... index.js:1
ea https://static.studio.boardgamearena.co ... index.js:1
m https://static.studio.boardgamearena.co ... index.js:1
gB https://static.studio.boardgamearena.co ... index.js:1
m https://static.studio.boardgamearena.co ... index.js:2
m https://static.studio.boardgamearena.co ... index.js:2
m https://static.studio.boardgamearena.co ... index.js:2
m https://static.studio.boardgamearena.co ... index.js:2
p https://static.studio.boardgamearena.co ... index.js:2
Ua https://static.studio.boardgamearena.co ... index.js:1
Va https://static.studio.boardgamearena.co ... index.js:1
promise callback*ja https://static.studio.boardgamearena.co ... index.js:1
ctx https://static.studio.boardgamearena.co ... index.js:1
ctx https://static.studio.boardgamearena.co ... index.js:1
W https://static.studio.boardgamearena.co ... index.js:2
r8e https://static.studio.boardgamearena.co ... index.js:2
setTimeout handler*r8e/< https://static.studio.boardgamearena.co ... index.js:2
us https://static.studio.boardgamearena.co ... index.js:1
gB https://static.studio.boardgamearena.co ... index.js:1
Va https://static.studio.boardgamearena.co ... index.js:1
DB https://static.studio.boardgamearena.co ... index.js:1
BgaGamePanel https://static.studio.boardgamearena.co ... index.js:2
onLoad https://static.studio.boardgamearena.co ... asite.js:1
r https://static.studio.boardgamearena.co ... asite.js:1
hitch Dojo
__gotourl https://static.studio.boardgamearena.co ... asite.js:1
Dojo 7
__gotourl https://static.studio.boardgamearena.co ... asite.js:1
loadpagefromhash https://static.studio.boardgamearena.co ... asite.js:1
gotourl https://static.studio.boardgamearena.co ... asite.js:1
gotourl https://static.studio.boardgamearena.co ... asite.js:1
onCreateNewTable https://static.studio.boardgamearena.co ... asite.js:1
hitch Dojo
c https://static.studio.boardgamearena.co ... asite.js:1
Dojo 5
The Red Kite
Posts: 14
Joined: 31 August 2021, 18:30

Re: Invalid Answer From Server

Post by The Red Kite »

The error does not seem to happen in the Alpha version of the game.

Only seems to happen with the 'local' version which I am developing.

The game seems to play ok. The error doesn't seem to affect game play. But I will test to be sure that this is the case.

Neil
The Red Kite
Posts: 14
Joined: 31 August 2021, 18:30

Re: Invalid Answer From Server

Post by The Red Kite »

I think this is a browser problem.

I saw it in Firefox but not Chrome or Safari (on my iPhone).

Searching the web I see that this error is normally a 5xx HTTP error code from the server. I am thinking that something was cached in Firefox.
When I deleted my browser's cache the error seemed to go away.

Of course, if someone can think of another explanation, it would be good to know.

Well I have played my game a few times and haven't seen the error recur. Will continue to monitor in the next few days.
Post Reply

Return to “Developers”