Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stream] cli works well but no data in postgres #467

Open
linlin1988 opened this issue Nov 1, 2023 · 4 comments
Open

[stream] cli works well but no data in postgres #467

linlin1988 opened this issue Nov 1, 2023 · 4 comments

Comments

@linlin1988
Copy link

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
Copy link
Author

hope anyone could help, thank you so much

@sfsf9797
Copy link
Contributor

sfsf9797 commented Nov 1, 2023

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

@ironmask285
Copy link

I get same error, please help

@evelynnnll
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants