Dockerized testrpc throws `Invalid JSON RPC response: ""`
See original GitHub issueRunning the pre-deployed Sonar contract via the openmined/sonar-testrpc:edge
docker image this error keeps showing up on several peoples machines. It works for some time but then suddenly the testrpc
process does not respond anymore.
Things to help debug this problem:
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":73}' localhost:8545
- should return a JSON response e.g.
{"id":73,"jsonrpc":"2.0","result":"0x4A817C800"}
- returns
curl: (52) Empty reply from server
if the container is misbehaving
- should return a JSON response e.g.
System:
- macOS
10.12.6
- docker
17.06.0-ce-mac18 (18433)
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (15 by maintainers)
Top Results From Across the Web
Invalid JSON RPC response: undefined, when running ...
I had the same issue, and just found the solution. This response happens when testrpc is not running, as stated by @Abhishek in...
Read more >Invalid JSON RPC response: undefined
I have installed web3.js in my project. What other step have I missed? BTW opening the browser on address http://localhost:8545 returns 404. Is ......
Read more >Configuration
When you run truffle compile, Truffle will run the configured command and look for contract artifacts specified by targets. This new configuration supports...
Read more >Invalid JSON RPC response when using Test Helpers ...
The problem surfaces as: Error: Invalid JSON RPC response: "" at Object.InvalidResponse (node_modules/web3/node_modules/web3-core-helpe…
Read more >Apache Arrow 3.0.0 (2021-01-18)
... [Rust] json reader should not hard crash on invalid json ... ARROW-5875 - [FlightRPC] Test RPC features in integration tests ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
One thing that could prove useful in figuring out the root cause of the issue would be to add the
debug
flag when runningtestrpc
. I’m getting on that now.yeah, since testRPC has been removed this is not an issue anymore.