Open seinmyung25 opened 1 year ago
Are you able to provide complete reproduction steps?
error.tar.gz
This is the failed chain data snapshot(option --db
).
please check transaction 0x13652715b80a821ff9e3945e2c8b059b0cfec6fd4c65c6e0794348b2051146
.
Thanks. I'll try to check it out tomorrow.
Sorry, couldn't get to this today. I'll try again tomorrow! 😁
Do you have any update??.
Sorry, I forgot to check back in on this! Looking now!
The threshold for chunked JSON streaming is 100000 debug struct logs, but this transaction only has ~38000! I'm experimenting with a way of automatically falling back to chunking if normal JSON.stringify
fails due to this Invalid string length
error, but getting this fix in a release likely won't happen for a couple of weeks, as we've got a huge backlog of PRs as it is.
If you are OK with building ganache yourself while you wait on us you can change the BUFFERIFY_THRESHOLD
value in ./src/chains/ethereum/ethereum/src/connector.ts
to something low, like 10000
.
You only need Node.js installed to get it working.
You can run ganache in dev mode via npm run tsc && npm start -- --chain.vmErrorsOnRPCResponse=true --wallet.totalAccounts=10 --hardfork=istanbul --miner.blockGasLimit=12000000 --wallet.mnemonic=brownie --server.port=8545 --wallet.defaultBalance=1000000000
to start up the chain (notice the extra --
in the command after start: start -- --
, it is important).
See https://github.com/trufflesuite/ganache/blob/develop/CONTRIBUTING.md for more information about building ganache (note: you won't need to use Node v12.0.0 for any of this).
I've created a PR with a potential fix here: https://github.com/trufflesuite/ganache/pull/3997 and an issue for a possible better long term solution here: https://github.com/trufflesuite/ganache/issues/3998
i'm using ganache by brownie
ganache-cli --chain.vmErrorsOnRPCResponse true --wallet.totalAccounts 10 --hardfork istanbul --miner.blockGasLimit 12000000 --wallet.mnemonic brownie --server.port 8545 --wallet.defaultBalance 1000000000
brownie test error
brownie.exceptions.RPCRequestError: Invalid string length
correstponding ganache log
When i call an error transaction to eth_call, a revert message (testing...) in response.