question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dockerized testrpc throws `Invalid JSON RPC response: ""`

See original GitHub issue

Running 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

System:

  • macOS 10.12.6
  • docker 17.06.0-ce-mac18 (18433)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (15 by maintainers)

github_iconTop GitHub Comments

3reactions
carrollgt91commented, Aug 19, 2017

One thing that could prove useful in figuring out the root cause of the issue would be to add the debug flag when running testrpc. I’m getting on that now.

1reaction
sagivocommented, Jan 13, 2018

yeah, since testRPC has been removed this is not an issue anymore.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found