subsquid / squid-sdk

The main repo of the squid SDK
Apache License 2.0
1.23k stars 151 forks source link

Field "batch" argument "limit" of type "QueryRoot" is required but not provided #126

Closed Hayden0323 closed 2 years ago

Hayden0323 commented 2 years ago

when using @subsquid/substrate-processor 2.1.0, setBatchSize is a deprecated function, so the limit config is missing in processor.options

image
eldargab commented 2 years ago

Hey, @octo-gone, we need to update all archive gateways.

dzhelezov commented 2 years ago

when using @subsquid/substrate-processor 2.1.0, setBatchSize is a deprecated function, so the limit config is missing in processor.options

image

Hey can you please provide more details on which Archive you're using. Both the ingester and the gateway should be updated to the latest image

Hayden0323 commented 2 years ago

when using @subsquid/substrate-processor 2.1.0, setBatchSize is a deprecated function, so the limit config is missing in processor.options

image

Hey can you please provide more details on which Archive you're using. Both the ingester and the gateway should be updated to the latest image

moonbeam and astar

tmcgroul commented 2 years ago

when using @subsquid/substrate-processor 2.1.0, setBatchSize is a deprecated function, so the limit config is missing in processor.options

image

Hey can you please provide more details on which Archive you're using. Both the ingester and the gateway should be updated to the latest image

moonbeam and astar

do you mean subsquid hosted archives like: https://moonbeam.archive.subsquid.io/graphql or self hosted?

Hayden0323 commented 2 years ago

when using @subsquid/substrate-processor 2.1.0, setBatchSize is a deprecated function, so the limit config is missing in processor.options

image

Hey can you please provide more details on which Archive you're using. Both the ingester and the gateway should be updated to the latest image

moonbeam and astar

do you mean subsquid hosted archives like: https://moonbeam.archive.subsquid.io/graphql or self hosted?

It's subsquid hosted archive right?

image
belopash commented 2 years ago

@Hayden0323 should be fixed. We've updated Astar archive. Thanks for reporting!

Hayden0323 commented 2 years ago
image

the processor keep stuck at height 1523959, using archive https://astar.archive.subsquid.io/graphql, query: query { status { head } batch(fromBlock: 1523959, toBlock: 2282352, limit: 500, includeAllBlocks: false, evmLogs: [{contract: "0x7bae21fb8408d534adfefcb46371c3576a1d5717", filter: [["0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9"]]}, {contract: "*", filter: [["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1", "0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822", "0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f", "0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496"]]}, {contract: "0xb0fa056fffb74c0fb215f86d691c94ed45b686aa", filter: [["0xbe12859b636aed607d5230b2cc2711f68d70e51060e6cca1f575ef5d2fcc95d1", "0xa2b71ec6df949300b59aab36b55e189697b750119dd349fcfa8c0f779e83c254", "0x46e22fb3709ad289f62ce63d469248536dbc78d82b84a3d7e74ad606dc201938", "0x189c623b666b1b45b83d7178f39b8c087cb09774317ca2f53c2d3c3726f222a2", "0x347ad828e58cbe534d8f6b67985d791360756b18f0d95fd9f197a66cc46480ea", "0x5ad056f2e28a8cec232015406b843668c1e36cda598127ec3b8c59b8c72773a0", "0x3631c28b1f9dd213e0319fb167b554d76b6c283a41143eb400a0d1adb1af1755", "0xb2e76ae99761dc136e598d4a629bb347eccb9532a5f8bbd72e18467c3c34cc98"]]}]) { header { id height hash parentHash timestamp specId } events calls extrinsics } }

dzhelezov commented 2 years ago

Hey! please update to the latest version of '@subsquid/substrate-processor' (2.0.1)

Hayden0323 commented 2 years ago

Hey! please update to the latest version of '@subsquid/substrate-processor' (2.x)

Same situation, so I backed up the old version to try, and will upload a screenshot of the 2.x version

image
dzhelezov commented 2 years ago

Ok that's due to the congestion of the archive, should be better now

tmcgroul commented 2 years ago

Fixed and deployed @Hayden0323 please check

Hayden0323 commented 2 years ago

@tmcgroul Thanks, the previous problem is solved, I'm running fine locally but uploading to Aquarium gives me this error and keeps stuck around block 1558856, what could be the reason?

logs from Aquarium

image

local logs

image
belopash commented 2 years ago

@tmcgroul Thanks, the previous problem is solved, I'm running fine locally but uploading to Aquarium gives me this error and keeps stuck around block 1558856, what could be the reason?

logs from Aquarium image

local logs image

Hello, this is a problem with rpc client, not with archive, so it's better to create new issue. Also, can you provide link to project repository, please?

Hayden0323 commented 2 years ago

@tmcgroul Thanks, the previous problem is solved, I'm running fine locally but uploading to Aquarium gives me this error and keeps stuck around block 1558856, what could be the reason?

logs from Aquarium image

local logs image

Ok, this issue is closed, and create a new one, the repo link is there