ethereum-etl icon indicating copy to clipboard operation
ethereum-etl copied to clipboard

[stream] cli works well but no data in postgres

Open linlin1988 opened this issue 1 year ago • 4 comments

im trying to extract transactions data to my local postgres db everything works well , but when a count rows data, its empty.

my enviroment

ethereumetl, version 2.3.1 os: macos apple m2 postgres version 15.4 , deploy in macos [localhost]

my command

ethereumetl stream --start-block 200000 -e transaction --provider-uri https://rpc.ankr.com/eth --output=postgresql+pg8000://postgres:[email protected]:5432/postgres

cli output

image

postgres output

no data, very sad !!!

postgres=# \d List of relations Schema | Name | Type | Owner
--------+--------------+-------+---------- public | transactions | table | postgres public | users | table | postgres (2 rows)

postgres=# postgres=# select count(*) from transactions; count

 0

(1 row)

my try

postgres logs seems ok . no errors log ethereum-etl cli stdout is also ok , no erros, just some INFO log for "INSERT INTO transactions xxxx"

linlin1988 avatar Nov 01 '23 11:11 linlin1988

hope anyone could help, thank you so much

linlin1988 avatar Nov 01 '23 11:11 linlin1988

There is no transaction in block 200000, maybe try another block number, e.g https://www.ondora.xyz/network/ethereum/blocks/18477299/interactions

sfsf9797 avatar Nov 01 '23 12:11 sfsf9797

I get same error, please help

ironmask285 avatar Nov 02 '23 07:11 ironmask285

There is no transaction in block 200000, maybe try another block number, e.g https://www.ondora.xyz/network/ethereum/blocks/18477299/interactions

Hi, I have encountered the same situation - whichever block i tried seems run successfully in terminal, but there's no data inserted in the database. And it seems like there's no error as well. Do you mind to give some advice on how to debug this?

evelynnnll avatar Apr 30 '24 11:04 evelynnnll