We run on ICP, It show 502 error when I connected (version 0.7)
The IC website is using a serviceworker.
But the same code on https://mora.app (that do not use serviceworker) is ok.
We run on ICP, It show 502 error when I connected (version 0.7)
The IC website is using a serviceworker.
But the same code on https://mora.app (that do not use serviceworker) is ok.
@Simit Welcome Aboard!
You will need to share more information:
@vjgee Hi
const chainConfig = {
chainId: '0x01',
rpcTarget: 'https://dashboard.internetcomputer.org',
chainNamespace: CHAIN_NAMESPACES.OTHER,
displayName: 'Internet Computer Mainnet',
blockExplorer: 'https://dashboard.internetcomputer.org',
ticker: 'ICP',
tickerName: 'Internet Computer',
};
const privateKeyProvider = new CommonPrivateKeyProvider({
config: {
chainConfig: chainConfig,
},
});
this.#web3 = new Web3AuthNoModal({
clientId: this.#config.clientId, // Get your Client ID from Web3Auth Dashboard
chainConfig: chainConfig,
web3AuthNetwork: 'mainnet',
});
const openloginAdapter = new OpenloginAdapter({
privateKeyProvider,
});
this.#web3.configureAdapter(openloginAdapter);
await this.#web3.connectTo({
loginProvider: 'email_passwordless',
extraLoginOptions: {
login_hint: email,
},
});
I see your Dapp is still using https://app.openlogin.com/v3/ which is deprecated. You need to upgrade openlogin to the latest version . Can you share your package.json file to make sure the SDK version and dependencies are updated?
sorry, the online version was overwritten by development yesterday and turned into an old version.
I have upgraded to v7 now, but still the problem with the same as above.
rr7k5-haaaa-aaaan-qdbsa-cai.ic0.app and mora.app run in different results!
"@web3auth/base": "^7.0.4",
"@web3auth/no-modal": "^7.0.4",
"@web3auth/openlogin-adapter": "^7.0.4",
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.