ethpandaops / ethereum-metrics-exporter

A Prometheus exporter for Ethereum Execution & Consensus clients
100 stars 13 forks source link

txpool_status response from Nethermind isn't parsed correctly because it doesn't return 0x values #94

Open SeaMonkey82 opened 1 year ago

SeaMonkey82 commented 1 year ago
Nov 12 22:16:49 ns1 ethereum-metrics-exporter[92538]: {"component":"exporter","exporter":"execution","level":"error","module":"general","msg":"Failed to get txpool status: json: cannot unmarshal non-string into Go struct field TXPoolStatus.pending of type hexutil.Uint64","time":"2023-11-12T22:16:49-05:00"}

curl 192.168.0.3:8547 -X POST -H "Content-Type: application/json" --data '{"jsonrpc": "2.0","id": 0,"method": "txpool_status","params": []}'

{"jsonrpc":"2.0","result":{"pending":2048,"queued":0},"id":0}%
washosk commented 12 months ago

+1 Over here

Nov 18 11:47:50 ethereumonarm-rock5b-88b453ff7 ethereum-metrics-exporter[2246899]: {"component":"exporter","exporter":"execution","level":"error","module":"general","msg":"Failed to get txpool status: json: cannot unmarshal non-string into Go struct field TXPoolStatus.pending of type hexutil.Uint64","time":"2023-11-18T11:47:50Z"}