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

Contracts Tab shows uncaught error #9907

Open
2 of 6 tasks
tadeohepperle opened this issue Sep 26, 2023 · 2 comments
Open
2 of 6 tasks

Contracts Tab shows uncaught error #9907

tadeohepperle opened this issue Sep 26, 2023 · 2 comments

Comments

@tadeohepperle
Copy link

  • I'm submitting a ...
  • Bug report
  • Feature request
  • Support request
  • Other

What is the current behavior and expected behavior?

Current behavior:

When running a substrate-contracts-node locally and navigating to the Contracts tab, this is shown:

image

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.

Cannot read properties of undefined (reading 'keys')

TypeError: Cannot read properties of undefined (reading 'keys')
at https://polkadot.js.org/apps/page.52e72cfdfbfee15a.js:739:5722
at os (https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:106322)
at Bu (https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:126444)
at https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:125186
at Cu (https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:125251)
at uu (https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:119007)
at $o (https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:59735)
at https://polkadot.js.org/apps/modu.7e3c157f7ba748aa.js:2:116412

Expected behavior:
I could think of multiple solutions:

  • showing an error message explaining what exactly is going wrong
  • not showing the Contracts Tab in the menu in case there is an error
  • fixing the root cause of the error and showing the Contracts Tab

What is the motivation for changing the behavior?

It would be nice, to not have an uncaught exception displayed anymore :)

Please tell us about your environment:

I setup the contracts-node locally which is mentioned in the substrate smart contracts documentation.

I installed it with:

cargo install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git

I ran it with:

substrate-contracts-node --log info,runtime::contracts=debug 2>&1
@wottpal
Copy link

wottpal commented Oct 11, 2023

We're able to find a work around or the reason for this issue? We're having it as well :/

@vampik33
Copy link
Contributor

vampik33 commented Oct 16, 2023

@tadeohepperle
The issue was resolved in:
#9901

Please try with the latest changes from master branch.

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