Skip to content

Unable to initialize the API: undefined is not a function #317

@jordy25519

Description

@jordy25519

reports of 1.4.0 release being unable to connect with mainnet

Unable to initialize the API: undefined is not a function

Debugging shows this line may be the cause
https://github.com/polkadot-js/api/blob/033cba718d31e8bbd8b90ece99b7e9e6a7db579d/packages/api/src/base/Init.ts#L250

    const metadataKey = `${this._genesisHash?.toHex() || '0x'}-${runtimeVersion.specVersion.toString()}`;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions