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

Search is returning 500 Internal Server Error or Null #45

Open
danwagnerco opened this issue Jul 18, 2015 · 1 comment
Open

Search is returning 500 Internal Server Error or Null #45

danwagnerco opened this issue Jul 18, 2015 · 1 comment

Comments

@danwagnerco
Copy link

Hey HacktheUniverse team -- very cool project!

I am getting an interesting response when attempting to use the search endpoint. The documentation, for example, is returning:

$ curl http://star-api.herokuapp.com/api/v1/search?q=%22Sun%22
{"status":"500","error":"Internal Server Error"}

image

On the other hand, when I try a different search, like the star "HIP1 HD224700 Gli", a null response comes back:

$ curl http://star-api.herokuapp.com/api/v1/stars/search?q=%22HIP1%20HD224700%20Gli%22
null

image

Am I incorrectly forming the URL?

@surenm
Copy link
Member

surenm commented Jul 21, 2015

Hey @danwagnerco, thanks for reporting this.

Unfortunately, We removed the elasticsearch plugin to the site (it was costly and there wasn't anybody using until this moment), so the search endpoint has been disabled for sometime now.The /stars/search returns a 200 OK because of how we have written our routes but there is nothing available at that end point either.

(What is really happening is you are searching for a star with ID: search which obviously doesn't exist)

Can you share what is your exact use case so that I can see if I can do something for you?

Cheers,
-Suren

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

2 participants