Openneuro-cli problem with updating data files

Summary of what happened:

Hi! I am trying to update my data on openneuro - specifically I want to update all files in an existing repository after having fixed some minor bug which affects all datasets. The file names have not changed just some of the information in the data files (EEG files saved in eeglab format).
Does somebody have an idea what the problem is here?
Birgit

Command used (and if a helper script was used, a link to the helper script or the command generated):

nierula@neckar:/data/tu_nierula/node-v18.12.1-linux-x64/bin > openneuro upload -i --dataset ds003891 /data/p_02068/SRMR1_experiment/bids_upload2/

Version:

openneuro client version: 4.13.1-alpha.3
node version: v18.12.1

Environment (Docker, Singularity, custom installation):

No container, I run openneuro with node

Data formatted according to a validatable standard? Please provide the output of the validator:

Adding files to "ds003891"
bids-validator@1.9.9
        Summary:                    Available Tasks:        Available Modalities: 
        2525 Files, 683.07GB        alternating             EEG                   
        40 - Subjects               median                                        
        1 - Session                 tibial                                        


	If you have any questions, please post on https://neurostars.org/tags/bids.

Relevant log outputs (up to 20 lines):

Checking remote files...
(node:289400) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
=======================================================================
Files to be uploaded:
CHANGES - 115 Bytes
dataset_description.json - 625 Bytes
? Begin upload? Yes
=======================================================================
Starting a new upload (72ec30b8) to dataset: 'ds003891'
ds003891 [----------------------------------------] 0% | ETA: 0s | 0/2Retrying d
Retrying upload for CHANGES: TypeError: Cannot construct a Request with a Reque.
Retrying upload for CHANGES: TypeError: Cannot construct a Request with a Reque.
Retrying upload for CHANGES: TypeError: Cannot construct a Request with a Reque.
Retrying upload for dataset_description.json: TypeError: fetch failed
Retrying upload for dataset_description.json: TypeError: Cannot construct a Req.
Retrying upload for dataset_description.json: TypeError: Cannot construct a Req.
Retrying upload for CHANGES: TypeError: Cannot construct a Request with a Reque.
Retrying upload for dataset_description.json: TypeError: Cannot construct a Req.
Retrying upload for CHANGES: TypeError: Cannot construct a Request with a Reque.
Retrying upload for dataset_description.json: TypeError: Cannot construct a Req.

=======================================================================
Upload Complete
To publish the update go to https://openneuro.org/datasets/ds003891 and create a new snapshot
=======================================================================
nierula@neckar:/data/tu_nierula/node-v18.12.1-linux-x64/bin >

Screenshots / relevant information:

linux kernel: Linux 5.10.0-18-amd64

To test whether the upload works when creating a new dataset, I created a test dataset with only one subject (note: this is just a test - I actually need what is described above). When I upload the dataset (same computer, same openneuro account, same API key), I get another error message:

This is my code:

nierula@neckar:/data/tu_nierula/node-v18.12.1-linux-x64/bin > openneuro upload -i /data/p_02068/SRMR1_experiment/bids_test/

This is the output including the error message:

? This will create a new dataset, continue? Yes
? Please affirm one of the following: All structural scans have been defaced, obscuring any tissue on or near the face that could potentially be used to reconstruct the facial structure.
bids-validator@1.9.9
        Summary:                 Available Tasks:        Available Modalities: 
        68 Files, 17.02GB        alternating             EEG                   
        1 - Subject              median                                        
        1 - Session              tibial                                        


	If you have any questions, please post on https://neurostars.org/tags/bids.

(node:306345) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
"ds004358" created
=======================================================================
73 files to be uploaded with a total size of 17.0 GB
? Begin upload? Yes
=======================================================================
Starting a new upload (219558b8) to dataset: 'ds004358'
ds004358 [----------------------------------------] 0% | ETA: 0s | 0/73(node:306345) MaxListenersExceededWarning: Possible EventTarget memory leak detected. 11 abort listeners added to [Abot
Retrying upload for CHANGES: TypeError: fetch failed
Retrying upload for CHANGES: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for CHANGES: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for CHANGES: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for CHANGES: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for README: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_space-Other_electrodes.json: TypeError: fetch failed
Retrying upload for participants.json: TypeError: fetch failed
Retrying upload for participants.tsv: TypeError: fetch failed
Retrying upload for dataset_description.json: TypeError: fetch failed
Retrying upload for code/save_jitter2txt_TS.m: TypeError: fetch failed
Retrying upload for code/srmr1_experiment_slow2stim.m: TypeError: fetch failed
Retrying upload for code/start_experiment.m: TypeError: fetch failed
Retrying upload for code/srmr1_experiment_fast2stim.m: TypeError: fetch failed
Retrying upload for code/jitter_generator.m: TypeError: fetch failed
Retrying upload for README: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_eeg.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_eeg.fdt: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_channels.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_space-Other_electrodes.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_space-Other_coordsystem.json: TypeError: fetch failed
Retrying upload for code/jitter_generator.m: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for README: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for code/save_jitter2txt_TS.m: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for code/jitter_generator.m: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for README: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for CHANGES: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for code/srmr1_experiment_fast2stim.m: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for code/save_jitter2txt_TS.m: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for code/jitter_generator.m: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for README: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_eeg.set: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-03_channels.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_channels.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-03_events.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-11_events.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-03_eeg.set: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-03_eeg.fdt: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-11_channels.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-03_events.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-03_eeg.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_events.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-11_events.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-11_eeg.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-11_eeg.fdt: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_events.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-11_eeg.set: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_eeg.set: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_events.json: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_eeg.set: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_events.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_events.json: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_eeg.set: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-11_channels.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_events.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_events.json: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_eeg.set: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-11_eeg.fdt: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-11_channels.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_events.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_events.json: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-alternating_run-10_eeg.set: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_eeg.set: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_eeg.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-09_eeg.set: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-07_events.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-09_events.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-09_eeg.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-07_eeg.set: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-09_channels.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-09_eeg.fdt: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-07_events.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_eeg.fdt: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-07_eeg.fdt: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_events.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-07_eeg.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-07_channels.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_events.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_eeg.json: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_eeg.fdt: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_eeg.set: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_eeg.fdt: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_eeg.json: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_eeg.fdt: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_events.json: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_eeg.set: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_eeg.json: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_eeg.fdt: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_events.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_events.json: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_eeg.set: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_eeg.json: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-05_eeg.fdt: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-02_eeg.fdt: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_eeg.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-04_events.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-02_eeg.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-04_eeg.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_eeg.fdt: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_channels.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-04_eeg.set: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-04_eeg.fdt: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-02_events.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-04_events.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-04_channels.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-02_events.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-02_eeg.set: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-median_run-09_events.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-02_channels.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-02_eeg.fdt: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-09_events.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-02_channels.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-09_events.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
(node:306345) Warning: Closing file descriptor 87 on garbage collection
(node:306345) [DEP0137] DeprecationWarning: Closing a FileHandle object on garbage collection is deprecated. Please close FileHandle objects explicitly using FileHandle.prototype.close(). I.
(node:306345) Warning: Closing file descriptor 85 on garbage collection
(node:306345) Warning: Closing file descriptor 83 on garbage collection
(node:306345) Warning: Closing file descriptor 84 on garbage collection
(node:306345) Warning: Closing file descriptor 81 on garbage collection
(node:306345) Warning: Closing file descriptor 78 on garbage collection
(node:306345) Warning: Closing file descriptor 79 on garbage collection
(node:306345) Warning: Closing file descriptor 77 on garbage collection
(node:306345) Warning: Closing file descriptor 75 on garbage collection
(node:306345) Warning: Closing file descriptor 72 on garbage collection
(node:306345) Warning: Closing file descriptor 73 on garbage collection
(node:306345) Warning: Closing file descriptor 71 on garbage collection
(node:306345) Warning: Closing file descriptor 69 on garbage collection
(node:306345) Warning: Closing file descriptor 67 on garbage collection
(node:306345) Warning: Closing file descriptor 65 on garbage collection
(node:306345) Warning: Closing file descriptor 66 on garbage collection
(node:306345) Warning: Closing file descriptor 63 on garbage collection
(node:306345) Warning: Closing file descriptor 60 on garbage collection
(node:306345) Warning: Closing file descriptor 61 on garbage collection
(node:306345) Warning: Closing file descriptor 59 on garbage collection
(node:306345) Warning: Closing file descriptor 55 on garbage collection
(node:306345) Warning: Closing file descriptor 54 on garbage collection
(node:306345) Warning: Closing file descriptor 57 on garbage collection
(node:306345) Warning: Closing file descriptor 53 on garbage collection
(node:306345) Warning: Closing file descriptor 51 on garbage collection
(node:306345) Warning: Closing file descriptor 49 on garbage collection
(node:306345) Warning: Closing file descriptor 47 on garbage collection
(node:306345) Warning: Closing file descriptor 48 on garbage collection
(node:306345) Warning: Closing file descriptor 45 on garbage collection
(node:306345) Warning: Closing file descriptor 43 on garbage collection
(node:306345) Warning: Closing file descriptor 42 on garbage collection
(node:306345) Warning: Closing file descriptor 41 on garbage collection
(node:306345) Warning: Closing file descriptor 39 on garbage collection
(node:306345) Warning: Closing file descriptor 37 on garbage collection
(node:306345) Warning: Closing file descriptor 36 on garbage collection
(node:306345) Warning: Closing file descriptor 35 on garbage collection
(node:306345) Warning: Closing file descriptor 28 on garbage collection
(node:306345) Warning: Closing file descriptor 33 on garbage collection
(node:306345) Warning: Closing file descriptor 32 on garbage collection
(node:306345) Warning: Closing file descriptor 34 on garbage collection
(node:306345) Warning: Closing file descriptor 30 on garbage collection
(node:306345) Warning: Closing file descriptor 29 on garbage collection
(node:306345) Warning: Closing file descriptor 31 on garbage collection
(node:306345) Warning: Closing file descriptor 25 on garbage collection
(node:306345) Warning: Closing file descriptor 27 on garbage collection
(node:306345) Warning: Closing file descriptor 26 on garbage collection
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-02_channels.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-09_events.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-02_eeg.json: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-02_eeg.fdt: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-02_channels.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-09_events.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-02_eeg.set: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-02_eeg.json: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-02_eeg.fdt: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-02_channels.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-median_run-09_events.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_eeg.set: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_events.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_eeg.set: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_events.json: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-08_eeg.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-08_events.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-08_events.json: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-08_channels.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-08_eeg.set: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-08_eeg.fdt: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_events.tsv: TypeError: fetch failed
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_eeg.set: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_events.json: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_events.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_eeg.set: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-08_channels.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_events.json: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_events.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_eeg.set: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-08_eeg.fdt: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-08_channels.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_events.json: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_events.tsv: TypeError: Cannot construct a Request with a Request object that has already been used.
Retrying upload for sub-001/eeg/sub-001_task-tibial_run-06_eeg.set: TypeError: Cannot construct a Request with a Request object that has already been used.

=======================================================================
Upload Complete
To publish your dataset go to https://openneuro.org/datasets/ds004358
=======================================================================
nierula@neckar:/data/tu_nierula/node-v18.12.1-linux-x64/bin >

Hi Birgit,

As a first step (and apologies if you have already done so) try to either roll forward to the latest stable version or roll back to version 4.12.0. Why 4.12.0? Because that version gave me no issues when I last uploaded with it.

You can use

npm install -g @openneuro/cli@4.12.0

or more generally

npm install -g @openneuro/cli@<version number>

to specify a version.

Let me know if that works for you.

Anthony

Hi Anthony,

thank you for your response! I tried what you suggested but in the meantime my problem changed. I can’t even connect to the openneuro server anymore. Whenever I want to connect with the “openneuro login” command it gives me the follwoing error:

/data/tu_nierula/node-v18.12.1-linux-x64/lib/node_modules/@openneuro/cli/src/config.js:1
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at getErrorReporting (/data/tu_nierula/node-v18.12.1-linux-x64/lib/node_modules/@openneuro/cli/src/config.js:78:23)
    at Object.<anonymous> (/data/tu_nierula/node-v18.12.1-linux-x64/lib/node_modules/@openneuro/cli/src/apm.js:4:13)
    at Generator.next (<anonymous>)
    at Object.<anonymous> (/data/tu_nierula/node-v18.12.1-linux-x64/lib/node_modules/@openneuro/cli/src/actions.js:1)
    at Generator.next (<anonymous>)

Node.js v18.12.1

I’ve tried changing the node versions(v18.12.1 and v19.12.1), changing the npm version, changing the openneuro version (4.12.0 and 4.13.0) but nothing works. I am very confused because I had the connection working some weeks ago and cannot find the problem. Do you maybe have an idea?

Best wishes
Brigit

Ah dang, I was hoping it was just the alpha version, but this is progress (I guess). You should in theory only need to login once as logging it just writes your API key to an openneuro config file in your home directory.

You can manually edit the config file at ‘~/.openneuro’, it should look something like this:

{“url”:“OpenNeuro”,“errorReporting”:false}

*note neurostars makes the url value above into a hyper link

It could be a malformed json, will try to reproduce on my end. Referring this thread over to the wizard of the CLI to see if they have any insights.

Thanks,

Anthony

Looks like a bad json at ~/.openneuro will cause this error.

Confirmed:

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at getErrorReporting (/Users/galassiae/.nvm/versions/node/v18.12.1/lib/node_modules/@openneuro/cli/src/config.js:71:23)
    at Object.<anonymous> (/Users/galassiae/.nvm/versions/node/v18.12.1/lib/node_modules/@openneuro/cli/src/apm.js:4:13)
    at Generator.next (<anonymous>)
    at Object.<anonymous> (/Users/galassiae/.nvm/versions/node/v18.12.1/lib/node_modules/@openneuro/cli/src/actions.js:1)
    at Generator.next (<anonymous>)

Node.js v18.12.1

I would say either delete or fix the json at ~/.openneuro then try logging on again.