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":"TypeError: Cannot read property 'api' of undefined"} #37

Open
stewartventures opened this issue Oct 12, 2021 · 1 comment
Open

Comments

@stewartventures
Copy link

stewartventures commented Oct 12, 2021

hi - I am now receiving this same error after no changes and the system was running fine until 12ET today. did the recent runtime upgrade affect this? here is the log output:

2021-10-12 18:46:36 RPC-CORE: getMetadata(at?: BlockHash): Metadata:: createType(Metadata):: decodeU8a: failed at 0x0e010b000c1c7370… on metadata:: decodeU8a: failed at 0xcc1853797374656d… on pallets: Vec:: decodeU8a: failed at 0x1853797374656d01… on : {"name":"Text","storage":"Option","calls":"Option","events":"Option","constants":"Vec","errors":"Option","index":"u8"}:: decodeU8a: failed at 0x011853797374656d… on storage: Option:: decodeU8a: failed at 0x401c4163636f756e… on items: Vec:: decodeU8a: failed at 0x04e8205468652066… on : {"name":"Text","modifier":"StorageEntryModifierV14","type":"StorageEntryTypeV14","fallback":"Bytes","docs":"Vec"}:: decodeU8a: failed at 0x68652066756c6c20… on modifier: {"_enum":{"Optional":0,"Default":1,"Required":2}}:: Unable to create Enum via index 104, in Optional, Default, Required
2021-10-12 18:46:36 API/INIT: Error: FATAL: Unable to initialize the API: createType(Metadata):: decodeU8a: failed at 0x0e010b000c1c7370… on metadata:: decodeU8a: failed at 0xcc1853797374656d… on pallets: Vec:: decodeU8a: failed at 0x1853797374656d01… on : {"name":"Text","storage":"Option","calls":"Option","events":"Option","constants":"Vec","errors":"Option","index":"u8"}:: decodeU8a: failed at 0x011853797374656d… on storage: Option:: decodeU8a: failed at 0x401c4163636f756e… on items: Vec:: decodeU8a: failed at 0x04e8205468652066… on : {"name":"Text","modifier":"StorageEntryModifierV14","type":"StorageEntryTypeV14","fallback":"Bytes","docs":"Vec"}:: decodeU8a: failed at 0x68652066756c6c20… on modifier: {"_enum":{"Optional":0,"Default":1,"Required":2}}:: Unable to create Enum via index 104, in Optional, Default, Required
at EventEmitter.value (/home/[removed]/polkadot_api_server/node_modules/@polkadot/api/base/Init.cjs:84:25)
at processTicksAndRejections (internal/process/task_queues.js:97:5)

Originally posted by @sekoyalabs in #23 (comment)

@dillu24
Copy link
Collaborator

dillu24 commented Oct 13, 2021

Most probably this is due to the latest upgrade on Kusama/Polkadot. Stay tuned for a new release.

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