2
저는 필드에 초보인데, ethereum-ruby을 사용하여 Ethereum 노드를 Rails 앱에 바인딩하려고합니다.Ethereum 노드를 Rails 앱에 바인딩하면 'JSON :: ParserError : 776'이됩니다.
나는
client = Ethereum::IpcClient.new("#{ENV['HOME']}/.ethereum/geth.ipc")
을 할 수
geth --ipcapi "admin,eth,debug,miner,net,shh,txpool,personal,web3"
추천하고 레일 콘솔에서 IPC를 통해 API를 실행하는 노드를 가지고 있지만 내가 puts client.coinbase["result"]
을하려고 할 때 얻을 오류 :
JSON::ParserError: 776: unexpected token at '{"jsonrpc":"2.0","error":{"code":-32600,"message":"EOF"}}
최근 ethereum 보석은 꽤 귀엽다. 나는 그 버그가 [몇 달 전에 똑같은 명령을 사용했기 때문에] 의심 스럽다. (http://ethereum.stackexchange.com/a/1576/87). – default