Cant get it working. Any idea ???
dmarko484 opened this issue · comments
I'm trying your library in my new empty Elixir 1.4 mix project referenced as {:elastic, "~> 2.3.5"} . Deps loaded and config defines base_url as http://localhost:9200 but in iex, when making a simple search, I'm getting the error as below. Any idea whats wrong here? Do I have to start some worker??
iex(1)> Elastic.HTTP.get("/netnotes/_search")
** (ArgumentError) argument error
(stdlib) :ets.lookup(:ibrowse_lb, {'localhost', 9200})
c:/eprojects/elixir/u2/deps/ibrowse/src/ibrowse.erl:328: :ibrowse.send_req/6
lib/httpotion.ex:355: HTTPotion.request/3
lib/elastic/http.ex:100: Elastic.HTTP.request/3
Just solved, Elastic was not part of my ... adding to list solved the issue !!
def application do
[mod: {U2, []},
applications: [:phoenix, :phoenix_pubsub, :phoenix_html, :cowboy, :logger, :gettext]
]
end