Error: Sorry, the Torus Network that powers Web3Auth is currently very busy

Please provide the following details too when asking for help in this category:

  • SDK Version:
  • Verifier Details:
    • Verifier Name:
    • JWKS Endpoint:
    • Sample idToken(JWT)

Hi i am trying to get a private key at the backend using web3Auth node sfa sdk with version 2.0.1 and 3.0.0. i am getting the following error
ERROR: Error in getSocialLoginShare: Error: Sorry, the Torus Network that powers Web3Auth is currently very busy.
We will generate your key in time. Pls try again later.

Only absolute URLs are supported

here is the code i have

const web3auth = new Web3Auth({
clientId: process.env.WEB3AUTH_CLIENT_ID,
web3AuthNetwork: process.env.WEB3AUTH_NETWORK,
});

  const ethereumProvider = new EthereumPrivateKeyProvider({
    config: {
      chainConfig: {
        chainNamespace: "eip155",
        chainId: process.env.WEB3AUTH_CHAIN_ID,
        rpcTarget: rpcUrl,
      },
    },
  });
  web3auth.init({provider: ethereumProvider});

  const provider = await web3auth.connect({
    verifier: process.env.WEB3AUTH_VERIFIER_NAME,
    verifierId: verifierId,
    idToken: idToken,
  });

  // logger.info(`provider: ${provider.toString()}`);

  let privateKey = await provider.request({method: "eth_private_key"});

I have tried both this snippet and the example at https://github.com/Web3Auth/web3auth-core-kit-examples/tree/main/node-sdk/node-backend-example but i still get either the error i describe above or the following

export * from “./interface”;
^^^^^^

SyntaxError: Unexpected token ‘export’
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1178:20)
at Module._compile (node:internal/modules/cjs/loader:1220:27)
at Module._extensions…js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at ModuleWrap. (node:internal/modules/esm/translators:169:29)
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)

Node.js v18.17.0

Please help me resolve this issue.

@abhisheksagu Thanks for reaching out.

Your issue has been forwarded to our Dev team and we will get back with further updates.

Hello @abhisheksagu
Thanks for letting us know web3auth node sdk is having some issue.
Me and our dev team is looking into this issue, will come back when this is resolved.

hi @pepper , can you please share an estimated timeline by which we can expect this bug to be resolved?

hi @pepper , any updates on this issue fix ?

Hi @abhisheksagu , we released a new node sdk, also fixed the example as well.

please refer to this example, upgrade your node sdk to v3.1.0 and make some changes regards to the jwt signing logic.

Thanks @pepper , can you please confirm what does privateKey represent here in this line in the example ?

var privateKey = fs.readFileSync(‘privateKey.pem’);

This example is about logging in by using jwks.
Since jwks is derived from your own custom JWT, you will need to convert your PEM file to JWKS.
and this privateKey.pem, PEM file’s role is to convert to JWKS.
For more information, please refer to this docs.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.