Hi, I made a fork of Golang CLI tool and improved it substantially, java app didn't start on my server and I decided to tweak rest api downloader, please take a look:
https://github.com/GrigoryEvko/NBIA_data_retriever_CLI
it works nicely now with many features I lacked from the original go tool, didn't have a chance to launch yours though
../nbia-data-retriever-cli -i PROSTATEx-v1-doiJNLP.tcia -p 20 --max-connections 20 --max-retries 5 -o ./mri
Found 18321 series to fetch metadata for
[18321/18321] 100.0% | Fetched: 0 | Cached: 18321 | Failed: 0 | Current: 1.3.6.1.4.1.14519.5.2.1.7310.5...
Successfully fetched metadata for 18321 files
Downloading 18321 series with 20 workers...
[18321/18321] 100.0% | Downloaded: 10181 | Skipped: 8140 | Failed: 0 | Current: 1.3.6.1.4.1.14519.5.2.1.7311.5...
=== Download Summary ===
Total files: 18321
Downloaded: 10181
Skipped: 8140
Failed: 0
Total time: 8m34s
Average rate: 35.7 files/second
I hope you can link it somewhere or fork the code and continue working on the cli tool on your own!