wtsi-npg / npg_ranger

NGS data streaming (sam, bam, cram, vcf) - pre-production
Other
4 stars 6 forks source link

broken pipe does not result in 500 #218

Open GrishaH opened 5 years ago

GrishaH commented 5 years ago

If we request a cram or bam file without its index, the server replies with headers and then terminates the output. Doing this through samtools gives [main_samview] random alignment retrieval only works for indexed BAM or CRAM files., while doing it through curl gives nothing. We assume the message from samtools comes from stderr.