Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Cannot connect to dockerised ganache-cli:latest #556

Closed
@tim-hm

Description

  • I asked about this on gitter: [x]
  • Link to my question on gitter: link

Expected Behavior

When sending an RPC call to ganache I should get a valid response:

  • Request: curl -X POST --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":67}' localhost:8545
  • Expected Reply: {"id":67,"jsonrpc":"2.0","result":"EthereumJS TestRPC/v2.1.5/ethereum-js"}

Current Behavior

  • curl -X POST --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":67}' localhost:8545 returns: curl: (52) Empty reply from server
  • I invoked a shell inside the docker container and the above curl command successfully returns: {"id":67,"jsonrpc":"2.0","result":"EthereumJS TestRPC/v2.1.5/ethereum-js"}

Steps to Reproduce (for bugs)

  1. Tried on MacOs and Ubuntu
  2. docker run --rm -it -p 8545:8545 trufflesuite/ganache-cli:latest
  3. curl -X POST --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":67}' localhost:8545

Context

Your Environment

  • Version used: Ganache CLI v6.1.6 (ganache-core: 2.1.5)
  • Version of Truffle/Remix/Other tools used: N/A
  • NodeJS Version: [ ] 6.x, [ ] 7.x (unsupported), [ ] 8.x, [ ] 9.x: N/A
  • Operating System and version (include distro if Linux): Fails on Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-116-generic x86_64) and MacOS 10.13.5
  • Docker: Docker version 17.12.1-ce, build 7390fc6 (Ubuntu) and 18.03.1-ce-mac65 (24312)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions