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

ENH: More verbose error message #187

Merged
merged 3 commits into from
Sep 30, 2024
Merged

Conversation

larsoner
Copy link
Collaborator

@larsoner larsoner commented Sep 9, 2024

I always forget how to submit bug reports to OpenNeuro. So to save myself some effort next time, turn this error message:

E   RuntimeError: Error 404 when trying to download /home/larsoner/mne_data/ds000248/derivatives/freesurfer/subjects/fsaverage/label/Yeo_Brainmap_fsaverage_README from https://s3.amazonaws.com/openneuro.org/ds000248/derivatives/freesurfer/subjects/fsaverage/label/Yeo_Brainmap_fsaverage_README?versionId=WuMze1X4S_cLoRCbEs5IpCIOJMe2VT41

Into this:

RuntimeError: Error 404 when trying to download /home/larsoner/mne_data/ds000248/derivatives/freesurfer/subjects/fsaverage/label/lh.BA1_exvivo.label. If this is unexpected:
E   
E   1. Navigate to https://openneuro.org/crn/graphql
E   2. Enter and run the operation: query { snapshot(datasetId: "ds000248" , tag: "1.2.4" ) { id files(tree: "4051a693617af344e8498593d4bf4cb258f341bd" ) { filename urls size directory id } } }
E   3. In the Response, try to manually download the "urls" for "Yeo_Brainmap_fsaverage_README", which should contain https://s3.amazonaws.com/openneuro.org/ds000248/derivatives/freesurfer/subjects/fsaverage/label/Yeo_Brainmap_fsaverage_README?versionId=WuMze1X4S_cLoRCbEs5IpCIOJMe2VT41
E   
E   If the download fails, open a GitHub issue like https://github.com/OpenNeuroOrg/openneuro/issues/3145

And used it to open OpenNeuroOrg/openneuro#3145

@larsoner
Copy link
Collaborator Author

@hoechenberger if no objections I'll go ahead and merge

@hoechenberger hoechenberger enabled auto-merge (squash) September 30, 2024 17:16
Copy link
Owner

@hoechenberger hoechenberger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks Eric!!

@hoechenberger hoechenberger merged commit c693fac into hoechenberger:main Sep 30, 2024
8 checks passed
@larsoner larsoner deleted the verbose branch December 2, 2024 23:38
@larsoner
Copy link
Collaborator Author

larsoner commented Dec 2, 2024

Might be worth cutting a quick release, in mne-bids-pipeline I'm going to install from source to get this PR's error message so I can open an openneuro issue

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 this pull request may close these issues.

2 participants