Skip to content

Instantly share code, notes, and snippets.

@nhu313
nhu313 / httpotion_error
Created September 19, 2014 03:12
HTTPoition error
20:11:48.357 [error] Error in process <0.642.0> with exit value: {badarg,[{erlang,hd,[[]],[]},{'Elixir.RssParser',find_value,2,[{file,"lib/rss_parser.ex"},{line,37}]},{'Elixir.RssParser',convert_rss,1,[{file,"lib/rss_parser.ex"},{line,18}]},{'Elixir.Enum','-map/2-lc$^0/1-0-',2,[{file,"lib/enum.ex"},{...
20:11:48.358 [error] Ranch listener FeederWeb.Router.HTTP had connection process started with :cowboy_protocol:start_link/4 at #PID<0.633.0> exit with reason: {:badarg, [{:erlang, :hd, [[]], []}, {RssParser, :find_value, 2, [file: 'lib/rss_parser.ex', line: 37]}, {RssParser, :convert_rss, 1, [file: 'lib/rss_parser.ex', line: 18]}, {Enum, :"-map/2-lc$^0/1-0-", 2, [file: 'lib/enum.ex', line: 977]}, {Enum, :"-map/2-lc$^0/1-0-", 2, [file: 'lib/enum.ex', line: 977]}, {FeedRetriever, :retrieve_content, 1, [file: 'lib/FeedRetriever.ex', line: 18]}, {FeedRetriever, :"-pmap/2-fun-0-", 3, [file: 'lib/FeedRetriever.ex', line: 10]}]}
@nhu313
nhu313 / feeder_controller
Created July 13, 2014 05:54
Feeder controller
defmodule FeederWeb.Controllers.Pages do
use Phoenix.Controller
def hello(conn, _params) do
render conn, "hello"
end
end
@nhu313
nhu313 / rss_entry_template
Created July 13, 2014 04:01
Phoenix RSS Entry template
<%= for entry <- @entries do %>
<li>
<%= entry.body %>
</li>
<% end %>