-
Notifications
You must be signed in to change notification settings - Fork 106
Description
Summary
Here’s your text translated into clear, technical English that’s suitable for posting as a question (e.g., on GitHub or a forum):
I ran the following query:
curl --location '127.0.0.1:8080'
--header 'Content-Type: application/json'
--data '{
"query": "{blocks(where:{number:{_eq:12595661}}){number,hash,forgedAt,previousBlock{hash},transactions{hash,fee,inputs{sourceTxHash,sourceTxIndex,address,tokens{asset{assetId,assetName,policyId},quantity},value},outputs(order_by:{index:asc}){address,index,tokens{asset{assetId,assetName,policyId},quantity},value}}}}"
}'
When I query block height 12595661, it throws an error,
but all other block heights work fine.
The error message is:
[{"message":"Cannot return null for non-nullable field Token.asset.","locations":[{"line":1,"column":152}],"path":["blocks",0,"transactions",2,"inputs",0,"tokens",8,"asset"],"extensions":{"code":"INTERNAL_SERVER_ERROR","exception":{"stacktrace":["Error: Cannot return null for non-nullable field Token.asset."," at completeValue
I’m not sure why this happens only at this specific height. Could anyone explain the possible cause or how to fix it?
Steps to reproduce the bug
curl --location '127.0.0.1:8080'
--header 'Content-Type: application/json'
--data '{
"query": "{blocks(where:{number:{_eq:12595661}}){number,hash,forgedAt,previousBlock{hash},transactions{hash,fee,inputs{sourceTxHash,sourceTxIndex,address,tokens{asset{assetId,assetName,policyId},quantity},value},outputs(order_by:{index:asc}){address,index,tokens{asset{assetId,assetName,policyId},quantity},value}}}}"
}'
i have 3 node , and 2 node have this error on 12595661
Actual Result
[{"message":"Cannot return null for non-nullable field Token.asset.","locations":[{"line":1,"column":152}],"path":["blocks",0,"transactions",2,"inputs",0,"tokens",8,"asset"],"extensions":{"code":"INTERNAL_SERVER_ERROR","exception":{"stacktrace":["Error: Cannot return null for non-nullable field Token.asset."," at completeValue
Expected Result
[{"message":"Cannot return null for non-nullable field Token.asset.","locations":[{"line":1,"column":152}],"path":["blocks",0,"transactions",2,"inputs",0,"tokens",8,"asset"],"extensions":{"code":"INTERNAL_SERVER_ERROR","exception":{"stacktrace":["Error: Cannot return null for non-nullable field Token.asset."," at completeValue
Environment
8.3.3
Platform
- Linux (Ubuntu)
- Linux (Other)
- macOS
- Windows
Platform version
No response
Runtime
- Node.js
- Docker
Runtime version
No response