-
Notifications
You must be signed in to change notification settings - Fork 11
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
update or delete on table "token_entity" violates foreign key constraint #220
Comments
Assigning @daiagi as he implemented the TokenEntities |
hi @vikiival another thing, seems that stop and start processing starts it again from beginning, not from last block (on also, you encountered the bug while syncing kusama or polkadot? |
ArrowSquid should be faster. Maybe internet.
It processes from last batch IMO, so depends which command you are using
Polkadot ^-^ |
@vikiival and passed said block, did not get stuck ill' try again with |
processor 02.03.2024 08:57:36 ERROR sqd:processor QueryFailedError: update or delete on table "token_entity" violates foreign key constraint "FK_060d0f515d293fac1d81ee61a79" on table "nft_entity" at PostgresQueryRunner.query (/squid/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:211:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async DataSource.query (/squid/node_modules/typeorm/data-source/DataSource.js:345:20) at async rollbackBlock (/squid/node_modules/@subsquid/typeorm-store/lib/hot.js:112:17) at async /squid/node_modules/@subsquid/typeorm-store/lib/database.js:82:17 at async EntityManager.transaction (/squid/node_modules/typeorm/entity-manager/EntityManager.js:73:28) at async TypeormDatabase.submit (/squid/node_modules/@subsquid/typeorm-store/lib/database.js:151:24) at async Runner.withProgressMetrics (/squid/node_modules/@subsquid/util-internal-processor-tools/lib/runner.js:183:22) at async Runner.handleFinalizedBlocks (/squid/node_modules/@subsquid/util-internal-processor-tools/lib/runner.js:140:9) at async Runner.processFinalizedBlocks (/squid/node_modules/@subsquid/util-internal-processor-tools/lib/runner.js:124:25) |
@daiagi can you please check? |
SPECK (5771669)
STICK (6534910)
query {
nftEntities(where: { token: { id_eq: "106-c3d6cc2c7d0af60bca5e4c3eceed0737:e4395888a1273967a2de3883df29ed4b" } }) {
id
name
image
}
} {
"data": {
"nftEntities": [
{
"id": "106-18",
"name": "Refraction",
"image": "ipfs://ipfs/bafybeidioqzawurwzqsllolngyqg3vxpwisial5lqd6ejafxb4h4b54k2a"
}
]
}
} |
So what is status on this? |
Guess quickfix was merged, no one has opened a deploy PR Will do when I come |
@daiagi still an issue https://assethub-polkadot.subscan.io/block/5858315
{
"detail": "Key (id)=(112-61dbec5f9f3ee7d511b16253dd4d43dd:ca874f6b5847ad42bb0bc05dba3f7a5f) is still referenced from table \"nft_entity\".",
"state_code": "23503"
} |
@vikiival
only extrinsic here is 3.2 no mention of delete in this block, only LIST, as expected |
You have access to the https://app.subsquid.io/squids so please observe logs |
yes i know it's there. I'm not claiming it isn't but i can't make any sense of it |
Describe the bug
I ran a test subsquid for arrow squid
To Reproduce
run indexer at arrow squid branch.
Expected behavior
Indexer should not stuck
Screenshots
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: