Skip to content

JSON::ParserError: 776 #7

Open
Open
@lgs

Description

@lgs

Binding Ethereum node into a Rails app, get 'JSON::ParserError: 776'.
I have a node running APIs via IPC like:

geth --ipcapi "admin,eth,debug,miner,net,shh,txpool,personal,web3"

and in Rails console I can do

client = Ethereum::IpcClient.new("#{ENV['HOME']}/.ethereum/geth.ipc")

but when I try puts client.coinbase["result"] I get and error:

JSON::ParserError: 776: unexpected token at '{"jsonrpc":"2.0","error":{"code":-32600,"message":"EOF"}}

Metadata

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