Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.6.0)

Error: could not detect network (event=“noNetwork”, code=NETWORK_ERROR, version=providers/5.6.0)
at Logger.makeError node_modules/@ethersproject/logger/src.ts/index.ts:261:28)
node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
reason: ‘could not detect network’,
code: ‘NETWORK_ERROR’,
event: ‘noNetwork’
}

##CODE##

const Moralis = require(“moralis-v1/node”);

    await Moralis.start({ moralisSecret:moralisSecret });
    await Moralis.enableWeb3({
      chainId: 0x38,
      privateKey: priKey
    });

const options = {
                type: "erc20",
                amount: Moralis.Units.Token("500", 18),
                receiver: trans_info.from,
                contractAddress: "0x137e3BD8dabd7F53e014a31ED36Ca591739d7c24"
              };
              let pay_airdrop = await Moralis.transfer(options);

Do you still have access to speedy nodes i.e. you were a pro plan user before July 11th? If you don’t, then you won’t be able to use privateKey with enableWeb3(). You would need to use ethers.js or web3.js directly for making transactions.