我正在测试网络(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);
答案 0 :(得分:1)
公共节点(https://nodes-testnet.wavesnodes.com)的每秒请求数有限制。您可以在此处找到确切的数字-https://docs.wavesplatform.com/en/waves-node/api-limitations-of-the-pool-of-public-nodes
对于您的端点,一个IP地址是每秒100。