api icon indicating copy to clipboard operation
api copied to clipboard

TypeError: Converting circular structure to JSON - Uploading Contract

Open AlexD10S opened this issue 1 year ago • 4 comments

  • I'm submitting an error experimented when upload a Smart Contract using PolkadotJS UI
  • [X] Bug report
  • [ ] Feature request
  • [ ] Support request
  • [ ] Other
  • What is the current behavior and expected behavior?

I want to upload an ink! Smart contract using the PolkadotJS UI portal in a local node that runs with the pallet contracts on it. To replicate this issue the Substrate Contracts Node can be used.

When I click the button Upload & deploy code and upload the files the screen keeps loading, and in the Developer Console the following error appears:

TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'r'
    |     property '_events' -> object with constructor 's'
    |     property 'ready' -> object with constructor 'i'
    --- property 'context' closes the circle
    at JSON.stringify (<anonymous>)

I can upload the contract using other alternatives using Contracts UI and using the tool cargo-contract.

AlexD10S avatar Aug 01 '23 07:08 AlexD10S

any update in this issue @AlexD10S @jacogr?

ganesh1997oli avatar Aug 18 '23 05:08 ganesh1997oli

Also hitting this issue.

forgetso avatar Aug 30 '23 09:08 forgetso

The issue is still persisting. Something crucial like this shouldn't be unfixed for 2months+.

wottpal avatar Oct 11 '23 16:10 wottpal

The issue is still persisting. Something crucial like this shouldn't be unfixed for 2months+.

If its that crucial, I would suggest you help out and open a PR then.

TarikGul avatar Oct 11 '23 20:10 TarikGul