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

:error atom returning when trying to put. #270

Open
simonfl3tcher opened this issue May 8, 2017 · 0 comments
Open

:error atom returning when trying to put. #270

simonfl3tcher opened this issue May 8, 2017 · 0 comments

Comments

@simonfl3tcher
Copy link

I am trying to create an index and then add a document to that index. However, when I run Tirexs.HTTP.put("/my-index-name") it simply returns an atom of :error. I have tried to use put! to discover more, but it returns the following error:

** (FunctionClauseError) no function clause matching in Tirexs.HTTP.ok!/1
    (tirexs) lib/tirexs/http.ex:320: Tirexs.HTTP.ok!(:error)

Running Tirexs.ENV.default_uri_env returns:

%URI{authority: "127.0.0.1:9200", fragment: nil, host: "127.0.0.1", path: nil,
 port: 9200, query: nil, scheme: "http", userinfo: nil}

Specs:

Elixir 1.4.1
Erlang/OTP 19

I think I know the problem (it is not connecting to the ES service), but it would be good to see some form of error message to clarify my suspicions. Is there any way that I can do that? If not, I would be happy to take a look at how we could return some information in this error.

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

1 participant