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

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

Open
kjamrog opened this issue Nov 19, 2019 · 1 comment
Open

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

kjamrog opened this issue Nov 19, 2019 · 1 comment

Comments

@kjamrog
Copy link

kjamrog commented Nov 19, 2019

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
Copy link

sk-sahu commented Oct 20, 2020

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.

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

No branches or pull requests

2 participants