-
Notifications
You must be signed in to change notification settings - Fork 39
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
Uncaught TypeError: Cannot read property 'length' of undefined #32
Uncaught TypeError: Cannot read property 'length' of undefined #32
Comments
Happened after user tried to delete one of the .nii files. |
Looks like they deleted the only .nii file and that's important because it leads to a special case where the validator returns 'Invalid' instead of a list of errors. I'm writing tests and a fix for this on the frontend but maybe it would be better to remove this special case from the validator? It would be more consistent to return a regular validator error quickTest fails. |
Checks for invalid flag or undefined inputs in more situations for #32.
Last step to finish this is to upgrade OpenNeuro to bids-validator@0.23 |
@chrisfilo The bids-validator fixes prevent this from crashing the page but it is still impossible to recover from it. You can't add a subject because the directory is removed automatically and you can't create directories. You can delete the dataset and start over with these fixes and it's much clearer what went wrong with the error code. Should we support adding subjects after upload so you can recover from this situation without recreating the dataset? |
Yes. Adding new subjects after upload is very useful when you run apps while still acquiring data. |
This fixes #32 but affected datasets will need to be revalidated.
Even after update this error is still affecting this dataset. Maybe revalidation needs to be forced? In addition, there is a new one as well now:
|
The second error is probably #6 |
I confirmed the original error on a connection not affected by #6 |
@chrisfilo I did miss revalidating this in my deployment steps. I just tried it now and ran into a problem with the dataset hashes not matching up. I'll put together a workaround tomorrow. |
@chrisfilo I cleared the bad validation data but it looks like this dataset was deleted. Revalidation didn't work since the files are missing. |
When trying to load https://openneuro.org/datasets/ds001049
We have a user stuck on this - it would be great to get it fixed in a timely manner.
The text was updated successfully, but these errors were encountered: