adsabs / adsabs-dev-api

Developer API service description and example client code
163 stars 58 forks source link

500 - Internal Server Error #4

Closed mhonshuk closed 10 years ago

mhonshuk commented 10 years ago

I 'm getting '500 - Internal Server Error' when fulltext and abstract highlight snippets search from the example documentation on https://github.com/adsabs/adsabs-dev-api

Here is the example query string:

Search for "transiting exoplanets", get 200 rows, include fulltext and abstract highlight snippets

http://adslabs.org/adsabs/api/search/?q=transiting+exoplanets&hl=full&hl=abstract&rows=200&dev_key=abc123

Any solutions?

romanchyla commented 10 years ago

Thank you for the report, i've prepared a patch for this issue, but it will take a few days before the change is integrated (some unittests need to be fixed before - unrelated issues, and i don't want that we deploy them untested): https://github.com/adsabs/adsabs/pull/43

for the time being, the only opition is to ask for each fields separately

http://labs.adsabs.harvard.edu/adsabs/api/search/?q=transiting+exoplanets&hl=full&rows=200&dev_key=abc http://labs.adsabs.harvard.edu/adsabs/api/search/?q=transiting+exoplanets&hl=abstract&rows=200&dev_key=abc

mhonshuk commented 10 years ago

Thank you for the quick reply. I appreciate your help. Regards, Mariko

romanchyla commented 10 years ago

Just pushed a fix, you can expect this to be deployed and working on Monday (i'm still checking some other issues)