-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Labels
Description
What went wrong?
I was recently asked to review a dataset for a paper. The authors provided a link to OpenNeuro for the data, and one of my tasks as a reviewer was to have a look. I had no trouble downloading individual files through the website, but downloading the entire dataset through through the command line did not work.
As instructed, I created an API key and passed it to the Deno tool. Unfortunately the Deno tool says "You do not have access to modify this dataset" when trying to download. Here's what I did:
; nix shell nixpkgs\#deno
; deno run -A jsr:@openneuro/cli login
? Choose an OpenNeuro instance to use. › https://openneuro.org/
? Enter your API key for OpenNeuro (get an API key from https://openneuro.org/keygen). › *****************************************************************************************************************************************************************************************************************************************************************************************************
? Enable error reporting. Errors and performance metrics are sent to the configured OpenNeuro instance. (y/n) › Yes
; deno run -A jsr:@openneuro/cli download ds000000 --version 1.0.1
error: Uncaught (in promise) Error: You do not have access to modify this dataset.
throw Error(errors.map((error) => error.message).toString())
^
at getRepoAccess (https://jsr.io/@openneuro/cli/4.38.3/src/commands/git-credential.ts:42:11)
at eventLoopTick (ext:core/01_core.js:178:7)
at async Command.downloadAction [as actionHandler] (https://jsr.io/@openneuro/cli/4.38.3/src/commands/download.ts:28:31)
at async Command.execute (https://jsr.io/@effigies/cliffy-command/1.0.0-dev.8/command.ts:1940:7)
at async Command.parseCommand (https://jsr.io/@effigies/cliffy-command/1.0.0-dev.8/command.ts:1772:14)
at async commandLine (https://jsr.io/@openneuro/cli/4.38.3/src/options.ts:46:29)
at async main (https://jsr.io/@openneuro/cli/4.38.3/mod.ts:21:5)
at async https://jsr.io/@openneuro/cli/4.38.3/mod.ts:25:1
I have replaced the dataset number to maintain anonymity as a reviewer.
Expected behavior
I expect to be able to download the dataset.
How to reproduce
- Be a reviewer for a data paper
- Try to download the dataset via Deno
Desktop
- OS: Linux
- Browser: Firefox
Phone
- Device: iPhone 15 Pro
- OS: iOS
- Browser: Safari
Additional information
No response