New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working with time using hardhat returns Error: Invalid JSON RPC response: "" #179
Comments
same with truffle |
Same issue with truffle Mine was working perfectly, then I moved the file (deleting the node_modules) folder, and after installing dependencies with yarn and npm, I get the invalid JSON Response. Nothing's changed except the node_modules |
After digging through the libraries, I realized the error is raised when a wrong HTTP provider rpc URL is passed, so I dug deeper, and in I'll update this if I figure a way to pass down the injected web3 object to @OpenZeppelin [UPDATE] Make sure to install @nomiclabs/hardhat-web3 and import it in your hardhat config, details here |
The issue seems to be because we are using ethers.js instead of web3.js |
Same issue with Truffle+Web3js+Ganche and setting the provider with require('@openzeppelin/test-helpers/configure')({
provider: 'http://127.0.0.1:7545',
}); solved the problem for me, if it can help. |
I am having the same problem for hardhat testing environment without Ganache. How should I fix this ? |
I asked about this issue at stackoverflow, but didn't get an answer. As I am not sure, if there is a problem from my side or a real issue, I guess it is okay to ask here (tell me if it is wrong).
Following the examples, I try to increase time in my test and keep getting an error: Invalid JSON RPC response: ""
Test with given error:
Error message:
Hardhat config file:
The text was updated successfully, but these errors were encountered: