<div dir="ltr">Inverting the genomic positions also gives that 500 error from Example 3:<div><br></div><div><a href="https://rest.ensembl.org/ld/human/region/1:100000..1/1000GENOMES:phase_3:CEU?d_prime=0;r2=0">https://rest.ensembl.org/ld/human/region/1:100000..1/1000GENOMES:phase_3:CEU?d_prime=0;r2=0</a><br></div><div><br></div><div>RM</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 18 Jul 2019 at 12:04, Ramiro Magno <<a href="mailto:ramiro.magno@gmail.com">ramiro.magno@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi<div><br></div><div>What should I expect when using this endpoint with other species than human:</div><div><br></div><div><a href="http://rest.ensembl.org/documentation/info/ld_region_get" target="_blank">http://rest.ensembl.org/documentation/info/ld_region_get</a><br></div><div><br></div><div>The returned errors do not seem to be consistent. Some expose internal errors even. I was expecting some error more specifically related to the invalid parameter.</div><div><br></div><div>Here's some examples:</div><div><br></div><div><b>Example 1</b></div><div><br></div><div><font face="courier new, monospace">* Endpoint:       <a href="https://rest.ensembl.org/ld/gorilla/rs1042779/1000GENOMES:phase_3:CEU?window_size=50;d_prime=0;r2=0" target="_blank">https://rest.ensembl.org/ld/gorilla/rs1042779/1000GENOMES:phase_3:CEU?window_size=50;d_prime=0;r2=0</a><br>* Status code:    400<br>* Error message: "Can't call method "max_snp_distance" on an undefined value at /nfs/public/release/ensweb/live/rest/www_97/ensembl-rest/lib/EnsEMBL/REST/Model/LDFeatureContainer.pm line 50.</font><br></div><div><br></div><div><b>Example 2</b></div><div><br></div><div><font face="courier new, monospace">* Endpoint:       <a href="https://rest.ensembl.org/ld/gorilla/region/1:1..10000/1000GENOMES:phase_3:CEU?d_prime=0;r2=0" target="_blank">https://rest.ensembl.org/ld/gorilla/region/1:1..10000/1000GENOMES:phase_3:CEU?d_prime=0;r2=0</a><br>* Status code:    400<br>* Error message: "Can't call method "db" on an undefined value at /nfs/public/release/ensweb/live/rest/www_97/ensembl-rest/lib/EnsEMBL/REST/Model/LDFeatureContainer.pm line 92.</font><br></div><div><br></div><div><b>Example 3</b></div><div><br></div><div><font face="courier new, monospace">* Endpoint: <a href="https://rest.ensembl.org/ld/fly/region/1:1..10000/1000GENOMES:phase_3:CEU?d_prime=0;r2=0" target="_blank">https://rest.ensembl.org/ld/fly/region/1:1..10000/1000GENOMES:phase_3:CEU?d_prime=0;r2=0</a></font></div><div><font face="courier new, monospace">* Status code: 500</font></div><div><font face="courier new, monospace">* Error message:  Error: lexical error: invalid char in json text.</font></div><font face="courier new, monospace">                                       <!DOCTYPE html>    <html lang="<br>                     (right here) ------^</font><div><br></div><div>Cheers,</div><div>RM</div></div>
</blockquote></div>