fishgame-macroquad icon indicating copy to clipboard operation
fishgame-macroquad copied to clipboard

quick game with wasm build stuck on connecting screen

Open georgeoma opened this issue 2 years ago • 3 comments

the pre-compiled web build that comes in the web folder works fine but when i generate my own HTML5 build and i click on "quick game" it doesnt connect

I followed all these steps cargo build --target wasm32-unknown-unknown --release cp target/wasm32-unknown-unknown/release/fishgame.wasm web/fishgame.wasm wasm-strip web/fishgame.wasm

then i run devserver --path web

perhaps something with "build.rs" file? i'm on Linux

any clue about this problem?

georgeoma avatar Mar 15 '22 22:03 georgeoma

Same error here. I added a metric boatload of println! to my local nakama-rs, and I've managed to deduce that the server is giving a 401 Error: HttpError( UreqError( Status( 401, Response[status: 401, status_text: Unauthorized, url: http://not-doxxing-myself:7350/v2/account/authenticate/email?create=false&], ), ), )

BurntNail avatar Sep 19 '22 16:09 BurntNail

This was for vanilla Windows

BurntNail avatar Sep 19 '22 16:09 BurntNail

In the main.rs file, we can see that they have a default user already assumed to be existing for a quick game, and you have to create that user first. This is why it's unauthorized.

Zebreu avatar Jan 27 '23 21:01 Zebreu