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
When I try to broadcast a transaction that was broadcasted a moment ago, I receive an error: {"error":{"message":"Cannot read properties of null (reading 'id')","stack":"TypeError: Cannot read properties of null (reading 'id')\n at /***modules/ethers/src.ts/providers/provider-jsonrpc.ts:549:66\n at Array.filter (<anonymous>)\n at /***modules/ethers/src.ts/providers/provider-jsonrpc.ts:549:49\n at processTicksAndRejections (node:internal/process/task_queues:95:5)"}
As I understand it means that the provider didn't return the response"id", but I didn't find a place where you check that a response payload from a provider has a property "id". Maybe need to check it and throw some standard error.
Notes:
I have disabled batch request: "batchMaxCount: 1"
I reproduce this case only when I send a request to the QuickNode ETH provider(https://www.quicknode.com/)
I didn't reproduce this case on testnet, only on mainnet
Code Snippet
// When on the second iteration I use quickNode provider, it throws an error that I added to the issue description. // So I think the problem occurred when I tried to broadcast the transaction via quickNode node which was broadcasted.// this._broadcastTransactionCount = 2for(leti=0;i<this._broadcastTransactionCount;i++){awaitbroadcastTx(txData,provider);}
Contract ABI
No response
Errors
{"error":{"message":"Cannot read properties of null (reading 'id')","stack":"TypeError: Cannot read properties of null (reading 'id')\n at /***modules/ethers/src.ts/providers/provider-jsonrpc.ts:549:66\n at Array.filter (<anonymous>)\n at /***modules/ethers/src.ts/providers/provider-jsonrpc.ts:549:49\n at processTicksAndRejections (node:internal/process/task_queues:95:5)"}
Environment
node.js (v12 or newer)
Environment (Other)
No response
The text was updated successfully, but these errors were encountered:
Ethers Version
6.11.1
Search Terms
Cannot read properties of null
Describe the Problem
When I try to broadcast a transaction that was broadcasted a moment ago, I receive an error:
{"error":{"message":"Cannot read properties of null (reading 'id')","stack":"TypeError: Cannot read properties of null (reading 'id')\n at /***modules/ethers/src.ts/providers/provider-jsonrpc.ts:549:66\n at Array.filter (<anonymous>)\n at /***modules/ethers/src.ts/providers/provider-jsonrpc.ts:549:49\n at processTicksAndRejections (node:internal/process/task_queues:95:5)"}
As I understand it means that the provider didn't return the response"id", but I didn't find a place where you check that a response payload from a provider has a property "id". Maybe need to check it and throw some standard error.
Notes:
Code Snippet
Contract ABI
No response
Errors
Environment
node.js (v12 or newer)
Environment (Other)
No response
The text was updated successfully, but these errors were encountered: