错误503服务暂时不可用

时间:2020-01-05 16:04:28

标签: javascript wavesplatform

我正在测试网络(https://nodes-testnet.wavesnodes.com)上使用NODE API,当我从调用脚本发出多个请求时,出现以下错误: 503服务暂时不可用

此错误并不总是出现,即使减少请求的数量,在恒定情况下仍然会出现该错误。

有人知道如何解决这个问题吗?

    for (let i = 1; i < bets.length; i++) {
      const paramsProv = {
        fee: 500000,
        dApp: config.roulette.contract,
        call: {
          function: 'playRoulette',
          args: [
            { type: 'integer', value: bets[i] },
            { type: 'string', value: signedScript.id }
          ]
        },
        payment: [{ assetId: config.asset.wbet, amount: amounts[i] * 100000000 }],
        version: 1,
        chainId: config.waves.chain
      }
      const signedRoletteScript = invokeScript(paramsProv, seed);
      roulettePlays.push(broadcast(signedRoletteScript, config.waves.node));
    }

    await Promise.all(roulettePlays);

1 个答案:

答案 0 :(得分:1)

公共节点(https://nodes-testnet.wavesnodes.com)的每秒请求数有限制。您可以在此处找到确切的数字-https://docs.wavesplatform.com/en/waves-node/api-limitations-of-the-pool-of-public-nodes

对于您的端点,一个IP地址是每秒100。