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

Ingest fails #53

Closed
behas opened this issue Oct 19, 2022 · 3 comments
Closed

Ingest fails #53

behas opened this issue Oct 19, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@behas
Copy link
Member

behas commented Oct 19, 2022

When ingesting public tagpacks into a local db, I get the following constraint error:

tagpack-tool insert --public packs -u postgresql://$USER:$PASSWORD@$DBHOST:$DBPORT/tagstore
==== TagPack insert starts =====
Path: packs
 Detected repository root in . =
Loaded TagPack schema definition: tagpack_schema.yaml
Loaded taxonomies: ['entity', 'abuse']
Collected 52 TagPack files

1 packs/Alt-Right.yaml: FAILED
insert or update on table "tag" violates foreign key constraint "tag_currency_address_fkey"
DETAIL:  Key (currency, address)=(ETH, 0x87FAd7298aF4346aadEce847a67CDFd97bDAdA14) is not present in table "address".

2 packs/africrypt-hack.yaml: FAILED
current transaction is aborted, commands ignored until end of transaction block

@behas behas added the bug Something isn't working label Oct 19, 2022
@myrho
Copy link
Contributor

myrho commented Oct 19, 2022

Could this be caused by #39 ?

@behas
Copy link
Member Author

behas commented Oct 19, 2022

@cybersec-code could you please check?

mdragaschnig added a commit that referenced this issue Oct 19, 2022
@mdragaschnig
Copy link
Member

mdragaschnig commented Oct 19, 2022

@myrho's hunch was right; _get_currency_and_address() should be the only way to get the address from a tag since it handles address normalization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants