mitre / fusera

A FUSE interface to the NCBI Sequence Read Archive (SRA)
Apache License 2.0
29 stars 12 forks source link

Getting 'failed to decode response' error while running sracp #165

Open kjamrog opened 5 years ago

kjamrog commented 5 years ago

I'm trying to download data using sracp with the following command:

sracp -t {key.ngc} -a SRR8176157 -f "cram,crai" -l s3.us-east-1 data/

and getting an error message:

failed to decode response from Name Resolver API: json: cannot unmarshal array into Go value of type sdl.VersionWrap
List of accessions that failed in this batch:
[SRR8176157]

Running fusera mount with the same arguments works fine. Do you have any idea what can be the reason?

sk-sahu commented 4 years ago

I also came across this, and found this fix -

Need to use --endpoint "https://locate.ncbi.nlm.nih.gov/sdl/2/retrieve"

Because by default sracp still using --endpoint "https://www.ncbi.nlm.nih.gov/Traces/sdl/1/retrieve" and that's why the older json schema not able to parse.