Unable to parse JSON: SyntaxError: Unexpected end of JSON input

Hi,

I’m loading for my game a few data from database.
Everything is running fine on my local PC.
Transferring database & php-files to server and starting game, just 1 single value/variable didn’t work and the game stop (as it should).

Debugger: Unable to parse JSON: SyntaxError: Unexpected end of JSON input

The server returns the correct value:

image

But develop didn’t parse it on server - only on local PC.

Thank you.

Hi,
it seems that this above is a time issue.
When setting a “wait for 1 seconds”, the most times I get the result.
But the script is executing the scene with wrong gameplay. And no player will wait a couple of seconds for the game. Regardless of this, the script must also work when many players access the database.
So how to tell the scene to wait until all database results are back and parsed?