small medium large xlarge

Generic-user-small
13 Oct 2015, 22:12
Sev Furneaux (1 post)

I’m getting:

** (FunctionClauseError) no function clause matching in Issues.GithubIssues.handle_response/1

when referencing:

iex(1)> Issues.GithubIssues.fetch("sevfurneaux", "flatmin")

This is happening on both the downloaded code, and also the code I wrote following the book.

Within the downloaded code, this happens for me in:

code/project/3/issues

Any help would be appreciated!

Generic-user-small
28 Oct 2015, 22:57
Ronny Huebner (1 post)

I changed the handle_response function then it works.

def handle_response({:ok, %{status_code: 200, body: body}}), do: { :ok, body }