Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Can not run "sqd typegen" #134

Open
saltict opened this issue Aug 11, 2023 · 0 comments
Open

Can not run "sqd typegen" #134

saltict opened this issue Aug 11, 2023 · 0 comments

Comments

@saltict
Copy link

saltict commented Aug 11, 2023

Describe the bug
Hi Subsquid team,
I cloned your repository and try to run it from my computer. After run sqd typegen after I got this error:

11:02:01 INFO  sqd:substrate-typegen downloading spec versions from https://kusama.archive.subsquid.io/graphql
11:02:08 FATAL sqd:substrate-typegen Error: Identity.IdentitySubRemoved is not defined by the chain metadata
                                         at /Volumes/MacData/Workspace/data/giant-squid-main/node_modules/@subsquid/substrate-typegen/lib/typegen.js:313:23
                                         at Set.forEach (<anonymous>)
                                         at Typegen.collectItems (/Volumes/MacData/Workspace/data/giant-squid-main/node_modules/@subsquid/substrate-typegen/lib/typegen.js:311:20)
                                         at Typegen.generateEnums (/Volumes/MacData/Workspace/data/giant-squid-main/node_modules/@subsquid/substrate-typegen/lib/typegen.js:73:26)
                                         at Typegen.generate (/Volumes/MacData/Workspace/data/giant-squid-main/node_modules/@subsquid/substrate-typegen/lib/typegen.js:57:14)
                                         at Typegen.generate (/Volumes/MacData/Workspace/data/giant-squid-main/node_modules/@subsquid/substrate-typegen/lib/typegen.js:48:30)
                                         at /Volumes/MacData/Workspace/data/giant-squid-main/node_modules/@subsquid/substrate-typegen/lib/main.js:34:27
                                         at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

To Reproduce
Steps to reproduce the behavior:

  1. Init project
  2. Run npm install
  3. Run sqd codegen
  4. See the error

Expected behavior
Generate successfully and can use sqd process after that

Screenshots
image.

Environment (please complete the following information):

  • I check out the lastest version of giant-squid-main
  • node.js version: 18
  • OS version: Mac OS Ventura

Applicable to decoding issues:

  • chain name: kusama, also with polkadot

Additional context
I also got a keygen error code 526 on some other networks like unique, and quartz when I remove polkadot.json and kusama.json from typegen folder for skipping polkadot and kusama error
image
After remove all network that get this error from CHAIN_NAMES and typegen folder, I can run sqd keygen successfully but It will get error with sqd process

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

No branches or pull requests

1 participant