[Bugreport] I am getting this 500 error when navig...
# ask-community
j
[Bugreport] I am getting this 500 error when navigating between pages:
Copy code
Operation name: RunReExecutionQuery

Message: Cannot return null for non-nullable field Run.mode.

Path: ["pipelineRunOrError","mode"]

Locations: [{"line":21,"column":3}]

Stack Trace:
  File "/usr/local/lib/python3.7/site-packages/graphql/execution/execute.py", line 541, in execute_field
    return_type, field_nodes, info, path, result
  File "/usr/local/lib/python3.7/site-packages/graphql/execution/execute.py", line 621, in complete_value
    "Cannot return null for non-nullable field"
image.png
This is the request payload:
Copy code
{
  "operationName": "RunRootQuery",
  "variables": {
    "runId": "4a777129-3c3c-4767-bc4e-08113cba41f1"
  },
  "query": "query RunRootQuery($runId: ID!) {\n  pipelineRunOrError(runId: $runId) {\n    __typename\n    ... on Run {\n      id\n      ...RunFragment\n      __typename\n    }\n  }\n}\n\nfragment RunFragment on Run {\n  id\n  runConfigYaml\n  runId\n  canTerminate\n  hasReExecutePermission\n  hasTerminatePermission\n  hasDeletePermission\n  status\n  mode\n  tags {\n    key\n    value\n    __typename\n  }\n  assets {\n    id\n    key {\n      path\n      __typename\n    }\n    __typename\n  }\n  rootRunId\n  parentRunId\n  pipelineName\n  solidSelection\n  assetSelection {\n    ... on AssetKey {\n      path\n      __typename\n    }\n    __typename\n  }\n  pipelineSnapshotId\n  parentPipelineSnapshotId\n  executionPlan {\n    artifactsPersisted\n    ...ExecutionPlanToGraphFragment\n    __typename\n  }\n  stepKeysToExecute\n  updateTime\n  stepStats {\n    stepKey\n    status\n    startTime\n    endTime\n    attempts {\n      startTime\n      endTime\n      __typename\n    }\n    markers {\n      startTime\n      endTime\n      __typename\n    }\n    __typename\n  }\n  ...RunFragmentForRepositoryMatch\n  ...RunDetailsFragment\n  __typename\n}\n\nfragment ExecutionPlanToGraphFragment on ExecutionPlan {\n  steps {\n    key\n    kind\n    inputs {\n      dependsOn {\n        key\n        kind\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n  __typename\n}\n\nfragment RunFragmentForRepositoryMatch on Run {\n  id\n  pipelineName\n  pipelineSnapshotId\n  parentPipelineSnapshotId\n  repositoryOrigin {\n    id\n    repositoryName\n    repositoryLocationName\n    __typename\n  }\n  __typename\n}\n\nfragment RunDetailsFragment on Run {\n  id\n  startTime\n  endTime\n  status\n  __typename\n}\n"
}
And the response:
Copy code
{
  "data": null,
  "errors": [
    {
      "message": "Cannot return null for non-nullable field Run.mode.",
      "locations": [
        {
          "line": 21,
          "column": 3
        }
      ],
      "path": [
        "pipelineRunOrError",
        "mode"
      ],
      "extensions": {
        "errorInfo": {
          "__class__": "SerializableErrorInfo",
          "message": "TypeError: Cannot return null for non-nullable field Run.mode.\n",
          "stack": [
            "  File \"/usr/local/lib/python3.7/site-packages/graphql/execution/execute.py\", line 541, in execute_field\n    return_type, field_nodes, info, path, result\n",
            "  File \"/usr/local/lib/python3.7/site-packages/graphql/execution/execute.py\", line 621, in complete_value\n    \"Cannot return null for non-nullable field\"\n"
          ],
          "cls_name": "TypeError",
          "cause": null,
          "context": null
        }
      }
    }
  ]
}
Same with the latest version of dagster.
This prevents me from seeing details of a run:
image.png
d
Hi Johannes - I am nearly certain that if you upgrade dagit that this problem will go away, this looks like a bug that was fixed in the 1.3.2 release
j
I did. Let me try a hard refresh. Maybe the client is cached.
You are right. I failed to upgrade dagit :/ It totally works now. Thanks @daniel !