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

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

Open
jordy25519 opened this issue May 27, 2021 · 3 comments
Open

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

jordy25519 opened this issue May 27, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@jordy25519
Copy link
Contributor

jordy25519 commented May 27, 2021

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()}`;
@jordy25519 jordy25519 added the bug Something isn't working label May 27, 2021
@KarishmaBothara
Copy link
Contributor

Interestingly... on the UI branch which uses latest CENNZnet API 1.4.0, I am able to connect to mainnet Azalea (v39) as well as Nikau(40)

@jordy25519
Copy link
Contributor Author

Seems to be occurring on Sylo android device

@jordy25519
Copy link
Contributor Author

jordy25519 commented Jun 4, 2021

could be solved by managing our own po[l|n]yfills i.e #325

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants