You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I will initiate a lot of transactions at the same time. Due to the instability of testnet RPC, failures often occur. I have written a lot of catch codes, but not all exceptions can be caught.
Exception Info:
/root/berachain-tools/node_modules/ethers/lib.commonjs/utils/errors.js:129
error = new Error(message);
^
Error: response body is not valid JSON (operation="bodyJson", info={ "response": { } }, code=UNSUPPORTED_OPERATION, version=6.12.0)
at makeError (/root/berachain-tools/node_modules/ethers/lib.commonjs/utils/errors.js:129:21)
at assert (/root/berachain-tools/node_modules/ethers/lib.commonjs/utils/errors.js:149:15)
at get bodyJson [as bodyJson] (/root/berachain-tools/node_modules/ethers/lib.commonjs/utils/fetch.js:729:36)
at JsonRpcProvider._send (/root/berachain-tools/node_modules/ethers/lib.commonjs/providers/provider-jsonrpc.js:887:29)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /root/berachain-tools/node_modules/ethers/lib.commonjs/providers/provider-jsonrpc.js:281:40 {
code: 'UNSUPPORTED_OPERATION',
operation: 'bodyJson',
info: { response: FetchResponse {} },
shortMessage: 'response body is not valid JSON'
}
Code Snippet
No response
Contract ABI
No response
Errors
/root/berachain-tools/node_modules/ethers/lib.commonjs/utils/errors.js:129
error = new Error(message);
^
Error: response body is not valid JSON (operation="bodyJson", info={ "response": { } }, code=UNSUPPORTED_OPERATION, version=6.12.0)
at makeError (/root/berachain-tools/node_modules/ethers/lib.commonjs/utils/errors.js:129:21)
at assert (/root/berachain-tools/node_modules/ethers/lib.commonjs/utils/errors.js:149:15)
at get bodyJson [as bodyJson] (/root/berachain-tools/node_modules/ethers/lib.commonjs/utils/fetch.js:729:36)
at JsonRpcProvider._send (/root/berachain-tools/node_modules/ethers/lib.commonjs/providers/provider-jsonrpc.js:887:29)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /root/berachain-tools/node_modules/ethers/lib.commonjs/providers/provider-jsonrpc.js:281:40 {
code: 'UNSUPPORTED_OPERATION',
operation: 'bodyJson',
info: { response: FetchResponse {} },
shortMessage: 'response body is not valid JSON'
}
Environment
No response
Environment (Other)
No response
The text was updated successfully, but these errors were encountered:
Ethers Version
6.12.0
Search Terms
No response
Describe the Problem
I will initiate a lot of transactions at the same time. Due to the instability of testnet RPC, failures often occur. I have written a lot of catch codes, but not all exceptions can be caught.
Exception Info:
Code Snippet
No response
Contract ABI
No response
Errors
Environment
No response
Environment (Other)
No response
The text was updated successfully, but these errors were encountered: