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'm getting the following error on all tests in my project when running npx hardhat test <testfile>
TypeError: Cannot read properties of undefined (reading 'type')
at remoteReceiptToRpcReceiptOutput (node_modules/hardhat/src/internal/hardhat-network/provider/output.ts:357:33)
at ForkBlockchain._processRemoteReceipt (node_modules/hardhat/src/internal/hardhat-network/provider/fork/ForkBlockchain.ts:346:52)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at ForkBlockchain.getTransactionReceipt (node_modules/hardhat/src/internal/hardhat-network/provider/fork/ForkBlockchain.ts:185:23)
at HardhatNode.getTransactionReceipt (node_modules/hardhat/src/internal/hardhat-network/provider/node.ts:937:21)
at EthModule._getTransactionReceiptAction (node_modules/hardhat/src/internal/hardhat-network/provider/modules/eth.ts:860:21)
at HardhatNetworkProvider.request (node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
at EGRDataCollectionProvider.request (node_modules/hardhat-gas-reporter/src/providers.ts:30:28)
at validateStoredDeployment (node_modules/@openzeppelin/upgrades-core/src/deployment.ts:113:16)
at validateCached (node_modules/@openzeppelin/upgrades-core/src/deployment.ts:85:7)
I tried to set the "Caught Exceptions" breakpoint in visual code, and got the exception:
Exception has occurred: Error: ENOENT: no such file or directory, open '/Users/sudeep/repos/cqt-staking/cache/hardhat-network-fork/network-1/request-d4f378bdf1c533956333903f4cdaa2fe.json'
So the tx call from tests is trying to search in local cache, but not finding it there and giving out "no such file or directory". I tried removing the cache directory and retrying, same issue.
The search in local FS cache fails and then attempt is made to the http provider. But the request shouldn't ever go to http provider, right? It should all be handled in local filesystem itself.
Minimal reproduction steps
It's not reproducible. When I create a new clone of my project, the error is no more there. But after a while it comes back.
Search terms
No response
The text was updated successfully, but these errors were encountered:
This will be hard to diagnose without a way to reproduce it and without knowing more about the setup. We can take a look if you can give us access to the repo. Otherwise, we'll need an example repo with the error.
Version of Hardhat
2.10.1
What happened?
I'm getting the following error on all tests in my project when running
npx hardhat test <testfile>
I tried to set the "Caught Exceptions" breakpoint in visual code, and got the exception:
the stack being:
So the tx call from tests is trying to search in local cache, but not finding it there and giving out "no such file or directory". I tried removing the cache directory and retrying, same issue.
The search in local FS cache fails and then attempt is made to the http provider. But the request shouldn't ever go to http provider, right? It should all be handled in local filesystem itself.
Minimal reproduction steps
It's not reproducible. When I create a new clone of my project, the error is no more there. But after a while it comes back.
Search terms
No response
The text was updated successfully, but these errors were encountered: