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

allInfoShelley.graphql example query returns an error about non-nullable field ShelleyGenesis.protocolMagicId. #327

Closed
issoupadrink opened this issue Sep 24, 2020 · 0 comments · Fixed by #332

Comments

@issoupadrink
Copy link

This example query no longer works.

GraphQL query:
https://github.com/input-output-hk/cardano-graphql/blob/master/packages/api-genesis/src/example_queries/allInfoShelley.graphql

Error:

{
  "errors": [
    {
      "message": "Cannot return null for non-nullable field ShelleyGenesis.protocolMagicId.",
      "locations": [
        {
          "line": 12,
          "column": 7
        }
      ],
      "path": [
        "genesis",
        "shelley",
        "protocolMagicId"
      ],
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR",
        "exception": {
          "stacktrace": [
            "Error: Cannot return null for non-nullable field ShelleyGenesis.protocolMagicId.",
            "    at completeValue (/application/node_modules/graphql/execution/execute.js:560:13)",
            "    at completeValueCatchingError (/application/node_modules/graphql/execution/execute.js:495:19)",
            "    at resolveField (/application/node_modules/graphql/execution/execute.js:435:10)",
            "    at executeFields (/application/node_modules/graphql/execution/execute.js:275:18)",
            "    at collectAndExecuteSubfields (/application/node_modules/graphql/execution/execute.js:713:10)",
            "    at completeObjectValue (/application/node_modules/graphql/execution/execute.js:703:10)",
            "    at completeValue (/application/node_modules/graphql/execution/execute.js:591:12)",
            "    at completeValueCatchingError (/application/node_modules/graphql/execution/execute.js:495:19)",
            "    at resolveField (/application/node_modules/graphql/execution/execute.js:435:10)",
            "    at executeFields (/application/node_modules/graphql/execution/execute.js:275:18)"
          ]
        }
      }
    }
  ],
  "data": {
    "genesis": {
      "shelley": null
    }
  }
}
rhyslbw added a commit that referenced this issue Oct 6, 2020
Use Genesis.shelley.networkMagic instead

Fixes #327
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

Successfully merging a pull request may close this issue.

1 participant