Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quick game with wasm build stuck on connecting screen #9

Open
georgeoma opened this issue Mar 15, 2022 · 3 comments
Open

quick game with wasm build stuck on connecting screen #9

georgeoma opened this issue Mar 15, 2022 · 3 comments

Comments

@georgeoma
Copy link

georgeoma commented Mar 15, 2022

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?

@BurntNail
Copy link

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
Copy link

This was for vanilla Windows

@Zebreu
Copy link

Zebreu commented Jan 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants