Open lvlask opened 7 months ago
I’m unsure what the cause could be for this. I can’t reproduce the bug in my browser, it works for me (uploading a Highscore for the number-guess
game).
I am noticing two things:
Melisa
, however it suggested that it set your name permanently to Mahdi
. Is this a copy mistake or is there a bug happening somewhere? I can’t reproduce that either.If the issue persists, I’d be happy if you could provide a few more details:
…/get_highscores.php
. Does it look like valid JSON?I could reproduce the error by taking away access to the API and then doing a request eg.
Makes sense. I was concerned it might have something to do with my php outputting something shady (happy to be wrong here!).
Fixed the issue by adding a custom error message telling the user the potential cause directly (see commit 147d791). Hope this helps!
Greetings Noel. What a beautiful project!
i was wondering how is it possible that scores gets uploaded. Exmp:
guess: 708 you got it! it took you 7 tries [highscores] Do you want to upload your score? [y/N] y [highscores] Your name: Melisa Tip: You can set your username permanently using name set Mahdi SyntaxError: Unexpected token '<', " <h"... is not valid JSON
that's what it shows once scored. Appericate if you help me out with it! Danke!