ga4gh / ga4gh-server

Reference implementation of the APIs defined in ga4gh-schemas. RETIRED 2018-01-24
http://ga4gh.org
Apache License 2.0
96 stars 91 forks source link

Callsets/search 400 from biosample ID #1544

Closed david4096 closed 7 years ago

david4096 commented 7 years ago

From the ga4gh-dwg-refserver mailing list:

I believe @saupchurch also experienced this problem.

On Mon, 2017-01-23 at 17:06 -0800, Neelam Memon wrote:
> 
> Thank you for the reply. I am simply using the following python
> script:
> 
> from __future__ import print_function
> import ga4gh.client.client as client
> 
> 
> cl = client.HttpClient("http://1kgenomes.ga4gh.org")
> 
> dataset = cl.search_datasets().next()
> print(dataset)
> 
> release = None
> for variant_set in cl.search_variant_sets(dataset_id=dataset.id):
>     if variant_set.name == "phase3-release":
>         release = variant_set
>     
> 
> all_call_sets = list(cl.search_call_sets(release.id))
> 
> and the last line end up with the error I mentioned. 
> 
> 
> Neelam  
> 
> On Mon, Jan 23, 2017 at 10:36 AM, <davidcs@ucsc.edu> wrote:
> > Hi Neelam!
> > 
> > Thanks for your message! The answer to your question is no :).
> > 
> > What server/endpoint are you posting to?
> > 
> > The "Method not allowed" error might be from making a POST request
> > to a GET endpoint. The `400` error code is meant to say the request
> > is bad. For authentication related errors you might expect a `401`
> > or `403`.
> > 
> > Could you say anything more about your environment and the request
> > you are making?
> > 
> > Thanks!
> > David
> > 
> > 
> > On Saturday, January 21, 2017 at 7:33:04 PM UTC-8, Neelam Memon
> > wrote:
> > > Hello, 
> > > 
> > > I am using ga4gh_client-0.5 to search_callsets() but result in
> > > HTTP 400 
> > > 
> > > {"errorCode": 1188524513, "message": "Method not allowed"}
> > > 
> > > Just wondering if I need permission to put such queries. 
> > > 
> > > 
> > > Neelam Memon 
> > > 
> 
david4096 commented 7 years ago

We haven't heard about this again since updating 1kgenomes.