Hi
We're encountering another uncaught exception coming from the SDK. This time when we use the blochamin.getTransactionCount() API
Error: RangeError: Maximum call stack size exceeded
at Messenger.<anonymous>
(/path/crypto_royale/node_modules/@harmony-js/network/dist/messenger/messenger.js:82:35)
at step (/path/crypto_royale/node_modules/tslib/tslib.js:143:27)
at Object.throw (/path/crypto_royale/node_modules/tslib/tslib.js:124:57)
at rejected (/path/crypto_royale/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Here is try-catch block in which the exception occurs:
try {
let count = await hmy.blockchain.getTransactionCount({ address: MAIN_ACCOUNT })
nonce = parseInt(count.result);
while (nonce in transactionsInProgress) {
nonce += 1;
}
transactionsInProgress[nonce] = true;
} catch (err) {
resolve({ success: false, error: `Nonce creation error` });
return;
}
Once this happens once, it keeps occuring until we restart the process.
Any thoughts/fixes/workarounds appreciated.
Hi
We're encountering another uncaught exception coming from the SDK. This time when we use the
blochamin.getTransactionCount()APIHere is try-catch block in which the exception occurs:
Once this happens once, it keeps occuring until we restart the process.
Any thoughts/fixes/workarounds appreciated.