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

API example returns empty record #651

Closed
dwinter opened this issue Jun 5, 2015 · 3 comments
Closed

API example returns empty record #651

dwinter opened this issue Jun 5, 2015 · 3 comments

Comments

@dwinter
Copy link

dwinter commented Jun 5, 2015

The example give from studies/find_studies in the API docs returns an empty record

curl -X POST http://api.opentreeoflife.org/v2/studies/find_sudies \
        -H "content-type:application/json" \ 
        -d '{"property":"ot:studyId","value":"pg_719","verbose":true}'
{
  "matched_studies" : [ ]
}

Previously this example retuned a full record, which is the expected value in the shared-tests for the different API wrappers. Changing the tests is not problem, but thought you might want update the docs or know that this record had gone.

@mtholder
Copy link
Member

mtholder commented Jun 6, 2015

thanks, @dwinter.
It looks like we have either a bug in the study indexer, something that triggers it, or some brittleness in the indexing db bootstrapping procedure.
A similar call is also failing. see OpenTreeOfLife/oti#41 (comment)

@jar398
Copy link
Member

jar398 commented Jul 17, 2015

Can you try again? Should be fixed by OpenTreeOfLife/ot-base#17 which was deployed today.

@dwinter
Copy link
Author

dwinter commented Jul 17, 2015

Perfect thanks -- happy for you to close this now @jar398

@jar398 jar398 closed this as completed Jul 17, 2015
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

3 participants