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 on connection to LAOS networks #10954

Open
asiniscalchi opened this issue Sep 25, 2024 · 6 comments
Open

Error on connection to LAOS networks #10954

asiniscalchi opened this issue Sep 25, 2024 · 6 comments

Comments

@asiniscalchi
Copy link
Contributor

all laos network are experiencing the following error on connection:

Uncaught error. Something went wrong with the query and rendering of this component. Please supply all the details below when logging an issue, it may help in tracing the cause.

createType(AccountId):: Invalid AccountId provided, expected 32 bytes, found 20

Error: createType(AccountId):: Invalid AccountId provided, expected 32 bytes, found 20
at o (https://polkadot.js.org/apps/modu.6724c4c4ec0fc7a7.js:1:87040)
at J.createType (https://polkadot.js.org/apps/modu.d704469d4359a33d.js:2:48759)
at Array.<anonymous> (https://polkadot.js.org/apps/comm.bf3973086a259e8c.js:693:1230)
at D (https://polkadot.js.org/apps/comm.bf3973086a259e8c.js:693:1820)
at P (https://polkadot.js.org/apps/comm.bf3973086a259e8c.js:693:2176)
at https://polkadot.js.org/apps/comm.bf3973086a259e8c.js:743:195
at Object.zi [as useState] (https://polkadot.js.org/apps/modu.bd8f3266470441f0.js:2:80363)
at https://polkadot.js.org/apps/modu.bd8f3266470441f0.js:2:223782
at https://polkadot.js.org/apps/comm.bf3973086a259e8c.js:743:189
at _i (https://polkadot.js.org/apps/modu.bd8f3266470441f0.js:2:77446)

https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Flaos-rpc.dwellir.com#/accounts
image

https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.laossigma.laosfoundation.io#/accounts
image

@asiniscalchi
Copy link
Contributor Author

it seems it's the api the problem:
I run locally polkadot.js and it works with the following:
image

but the one published is not working with:
image


So it seems
v10.12.6 working.
v13.2.1 not working.

@asiniscalchi
Copy link
Contributor Author

find out that we are missing some metadata LAOS side:
2024-09-26 11:26:37 PORTABLEREGISTRY: Unable to determine runtime Call type, cannot inspect sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic

@asiniscalchi
Copy link
Contributor Author

the error was exposed by this delta : polkadot-js/api@v13.0.1...v13.1.1

It should be the usage of metadata V15.

@piggydoughnut
Copy link
Contributor

Thank you for such a great debug 🙏🏽 The update to v15 is in the works. So hopefully soon all will be 🚀 😊

@asiniscalchi
Copy link
Contributor Author

asiniscalchi commented Sep 27, 2024

Hi @piggydoughnut is there any tool that could check if our metadata is correct ?
I really scared that the problem is our side but I dunno how to verify it.
( and it's a kind of critic bug for us ... our users can't interact with the chain )

@asiniscalchi
Copy link
Contributor Author

The line that is failing:

: statics.registry.createType('AccountId', addr as string).toU8a();

@asiniscalchi asiniscalchi changed the title Error on connection to laos networks Error on connection to LAOS networks Sep 27, 2024
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