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

Error shows when initializing the game #16

Open
hcho1989 opened this issue Jul 11, 2022 · 2 comments
Open

Error shows when initializing the game #16

hcho1989 opened this issue Jul 11, 2022 · 2 comments

Comments

@hcho1989
Copy link

hcho1989 commented Jul 11, 2022

on the self hosted web client, after I keyed in my game name and click return, on the grid page, the console shows the following

INFO web/client/src/game.rs:190 Game session does not exist, initializing game
near-api-js.js:78 Receipt: 58oXRHbFopLNwKeQTtzbC6CuRJ1596qmBCpU42SkXcCM

The tx seemed to have failed

https://explorer.testnet.near.org/transactions/BdrbQJrCPZvCKye8rWqUC2xPQUHkSgqogZBKxfvoUP8#58oXRHbFopLNwKeQTtzbC6CuRJ1596qmBCpU42SkXcCM

An error message shows on the frontend

new_game: JsValue(Error: Error happened during instantiation Error: Error happened during instantiation at Object.parseResultError (https://cdn.jsdelivr.net/npm/[email protected]/dist/near-api-js.js:3611:29) at ConnectedWalletAccount.signAndSendTransactionV2 (https://cdn.jsdelivr.net/npm/[email protected]/dist/near-api-js.js:163:36) at async ConnectedWalletAccount._signAndSendTransaction (https://cdn.jsdelivr.net/npm/[email protected]/dist/near-api-js.js:4055:24) at async Contract._changeMethod (https://cdn.jsdelivr.net/npm/[email protected]/dist/near-api-js.js:1076:27))

@hcho1989
Copy link
Author

P.S. I deployed my contracts following the README, and updated web/client/near.js#L16

@84matte84
Copy link

on the self hosted web client, after I keyed in my game name and click return, on the grid page, the console shows the following

INFO web/client/src/game.rs:190 Game session does not exist, initializing game
near-api-js.js:78 Receipt: 58oXRHbFopLNwKeQTtzbC6CuRJ1596qmBCpU42SkXcCM

The tx seemed to have failed

https://explorer.testnet.near.org/transactions/BdrbQJrCPZvCKye8rWqUC2xPQUHkSgqogZBKxfvoUP8#58oXRHbFopLNwKeQTtzbC6CuRJ1596qmBCpU42SkXcCM

An error message shows on the frontend

new_game: JsValue(Error: Error happened during instantiation Error: Error happened during instantiation at Object.parseResultError (https://cdn.jsdelivr.net/npm/[email protected]/dist/near-api-js.js:3611:29) at ConnectedWalletAccount.signAndSendTransactionV2 (https://cdn.jsdelivr.net/npm/[email protected]/dist/near-api-js.js:163:36) at async ConnectedWalletAccount._signAndSendTransaction (https://cdn.jsdelivr.net/npm/[email protected]/dist/near-api-js.js:4055:24) at async Contract._changeMethod (https://cdn.jsdelivr.net/npm/[email protected]/dist/near-api-js.js:1076:27))

Hi hcho1989, have you found a way to fix it? Cause I am also having same issue.....

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

2 participants