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

Blocks page doesn't show if assets aren't synced #430

Open
disassembler opened this issue Dec 19, 2022 · 0 comments
Open

Blocks page doesn't show if assets aren't synced #430

disassembler opened this issue Dec 19, 2022 · 0 comments

Comments

@disassembler
Copy link
Contributor

After updating to the unreleased cardano-graphql that separates asset synchronization into a background service, the front page of the explorer-app and epochs page responds, but blocks page does not with the below errors.

I suggest we make the explorer-app take a null field for Token.Asset and display something like unavailable for any elements utilizing it rather than failing on the page with the current error:

SORRY, WE COULD NOT FIND ANY RESULTS MATCHING:
0adc4d836e1ee49b1f51ba916995bdfd797c2f5ac881500671f2679daa10b6a9
Uncaught (in promise) Error: Cannot return null for non-nullable field Token.asset.: {"response":{"errors":[{"message":"Cannot return null for non-nullable field Token.asset.","locations":[{"line":74,"column":7}],"path":["blocks",0,"transactions",0,"inputs",0,"tokens",0,"asset"],"extensions":{"code":"INTERNAL_SERVER_ERROR","exception":{"stacktrace":["Error: Cannot return null for non-nullable field Token.asset.","    at completeValue (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:560:13)","    at completeValueCatchingError (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:495:19)","    at resolveField (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:435:10)","    at executeFields (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:275:18)","    at collectAndExecuteSubfields (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:713:10)","    at completeObjectValue (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:703:10)","    at completeValue (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:591:12)","    at completeValueCatchingError (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:495:19)","    at /nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:618:25","    at Array.forEach (<anonymous>)"]}}},{"message":"Cannot return null for non-nullable field Token.asset.","locations":[{"line":74,"column":7}],"path":["blocks",0,"transactions",0,"inputs",1,"tokens",0,"asset"],"extensions":{"code":"INTERNAL_SERVER_ERROR","exception":{"stacktrace":["Error: Cannot return null for non-nullable field Token.asset.","    at completeValue (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:560:13)","    at completeValueCatchingError (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:495:19)","    at resolveField (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:435:10)","    at executeFields (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:275:18)","    at collectAndExecuteSubfields (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:713:10)","    at completeObjectValue (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:703:10)","    at completeValue (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:591:12)","    at completeValueCatchingError (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:495:19)","    at /nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:618:25","    at Array.forEach (<anonymous>)"]}}},{"message":"Cannot return null for non-nullable field Token.asset.","locations":[{"line":95,"column":7}],"path":["blocks",0,"transactions",0,"outputs",0,"tokens",0,"asset"],"extensions":{"code":"INTERNAL_SERVER_ERROR","exception":{"stacktrace":["Error: Cannot return null for non-nullable field Token.asset.","    at completeValue (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:560:13)","    at completeValueCatchingError (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:495:19)","    at resolveField (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:435:10)","    at executeFields (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:275:18)","    at collectAndExecuteSubfields (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:713:10)","    at completeObjectValue (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:703:10)","    at completeValue (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:591:12)","    at completeValue (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:557:21)","    at completeValueCatchingError (/nix/store/1wlwx3v55y3fm6i2jcy9zilx59i2s59i-cardano-graphql-7.0.2/node_modules/graphql/execution/execute.js:495:19)","    at /nix/store/1wlwx3v5
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

1 participant