openneuro icon indicating copy to clipboard operation
openneuro copied to clipboard

Timeout for ds000248 `derivatives/freesurfer/subjects/sub-01/mri/brain` directory query

Open larsoner opened this issue 1 week ago • 0 comments

In https://openneuro.org/crn/graphql run

query { snapshot(datasetId: "ds000248" , tag: "1.2.4" ) { id files(tree: "8e16384b988da6341d29f38870763c0d8658955d" ) { filename urls size directory key } } }

Note the entry for derivatives/freesurfer/subjects/sub-01/mri/brain has

        {
          "filename": "brain",
          "urls": [],
          "size": 0,
          "directory": true,
          "key": "9beb7c5fe4701a575795c8515c61d761ab9c5b44"
        },

So then query it

query { snapshot(datasetId: "ds000248" , tag: "1.2.4" ) { id files(tree: "9beb7c5fe4701a575795c8515c61d761ab9c5b44" ) { filename urls size directory key } } }

Get a timeout

Timeout output
{
  "errors": [
    {
      "message": "The operation was aborted due to timeout",
      "locations": [
        {
          "line": 1,
          "column": 62
        }
      ],
      "path": [
        "snapshot",
        "files"
      ],
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR",
        "stacktrace": [
          "TimeoutError: The operation was aborted due to timeout",
          "    at node:internal/deps/undici/undici:13510:13",
          "    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)",
          "    at async /srv/packages/openneuro-server/dist/datalad/files.js:96:26"
        ]
      }
    }
  ],
  "data": {
    "snapshot": {
      "id": "ds000248:1.2.4",
      "files": null
    }
  },
  "extensions": {
    "openneuro": {
      "version": "4.42.0"
    }
  }
}

larsoner avatar Dec 16 '25 15:12 larsoner