bids-validator icon indicating copy to clipboard operation
bids-validator copied to clipboard

BIDS validator Error 1: [Code 0] INTERNAL ERROR - SOME VALIDATION STEPS MAY NOT HAVE OCCURRED

Open kincsesbalint opened this issue 3 years ago • 7 comments

Hi all, I have tried to check one dataset but it dropped an error with the following message:

File Path: Internal error. SOME VALIDATION STEPS MAY NOT HAVE OCCURRED

	Type:		Error
	Reason:		o is null; please help the BIDS team and community by opening an issue at (https://github.com/bids-standard/bids-validator/issues) with the evidence here.
	Evidence:	Ti@http://bids-standard.github.io/bids-validator/_next/static/chunks/pages/index-3602b5329a8cea351e82.js:1:587123
RNiq/qi/<@http://bids-standard.github.io/bids-validator/_next/static/chunks/pages/index-3602b5329a8cea351e82.js:1:591089

======================================================

Additional info about the dataset: Size: 1.86GB, 28 subjects Modality: MRI (rest and T1w)

kincsesbalint avatar Jan 19 '22 11:01 kincsesbalint

Could you share a listing of your file tree?

effigies avatar Jan 19 '22 13:01 effigies

Here is a part of it:

├── dataset_description.json
├── sub-1015
│   ├── anat
│   │   └── sub-1015_T1w.nii.gz
│   └── func
│       ├── sub-1015_task-rest_bold.json
│       └── sub-1015_task-rest_bold.nii.gz
├── sub-1022
│   ├── anat
│   │   └── sub-1022_T1w.nii.gz
│   └── func
│       ├── sub-1022_task-rest_bold.json
│       └── sub-1022_task-rest_bold.nii.gz
├── sub-1029
│   ├── anat
│   │   └── sub-1029_T1w.nii.gz
│   └── func
│       ├── sub-1029_task-rest_bold.json
│       └── sub-1029_task-rest_bold.nii.gz

kincsesbalint avatar Jan 19 '22 14:01 kincsesbalint

So I think I find the problem. In my data_description.json I specified the SourceDatasets key and the value was not appropriately specified. (the path contained ' \ ' instead of '/' )

kincsesbalint avatar Jan 19 '22 15:01 kincsesbalint

Ah, so it was probably malformed JSON, then. I would have assumed we had a better error message than that...

effigies avatar Jan 19 '22 15:01 effigies

yeah, after correcting the JSON it worked. a more specific error message might be a good idea. Thank you for your time!

kincsesbalint avatar Jan 19 '22 15:01 kincsesbalint

Could you share your malformed JSON, as an example?

effigies avatar Jan 19 '22 15:01 effigies

The problematic part is in bold. { "Name": "Fear of pain and tone", "BIDSVersion": "1.5.0", "DatasetType": "raw", "Authors": [ "Balint Kincses", "Robert Pawlik" ], "SourceDatasets": [ {"URL": "C:...\study-Koenen2021\mri\sourcedata"} ], "ReferencesAndLinks": [ "https://www.nature.com/articles/s42003-021-02008-1#Sec9", "Koenen, L.R., Pawlik, R.J., Icenhour, A. et al. Associative learning and extinction of conditioned threat predictors across sensory modalities. Commun Biol 4, 553 (2021). https://doi.org/10.1038/s42003-021-02008-1" ] }

kincsesbalint avatar Jan 19 '22 16:01 kincsesbalint