{"action":"closed","issue":{"url":"https://api.github.com/repos/riverrun/openmaize/issues/65","repository_url":"https://api.github.com/repos/riverrun/openmaize","labels_url":"https://api.github.com/repos/riverrun/openmaize/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/riverrun/openmaize/issues/65/comments","events_url":"https://api.github.com/repos/riverrun/openmaize/issues/65/events","html_url":"https://github.com/riverrun/openmaize/issues/65","id":181603371,"number":65,"title":"No function clause matching in Openmaize.Login.call","user":{"login":"johnhamelink","id":101739,"avatar_url":"https://avatars.githubusercontent.com/u/101739?v=3","gravatar_id":"","url":"https://api.github.com/users/johnhamelink","html_url":"https://github.com/johnhamelink","followers_url":"https://api.github.com/users/johnhamelink/followers","following_url":"https://api.github.com/users/johnhamelink/following{/other_user}","gists_url":"https://api.github.com/users/johnhamelink/gists{/gist_id}","starred_url":"https://api.github.com/users/johnhamelink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnhamelink/subscriptions","organizations_url":"https://api.github.com/users/johnhamelink/orgs","repos_url":"https://api.github.com/users/johnhamelink/repos","events_url":"https://api.github.com/users/johnhamelink/events{/privacy}","received_events_url":"https://api.github.com/users/johnhamelink/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-07T07:39:29Z","updated_at":"2016-10-10T17:32:35Z","closed_at":"2016-10-10T17:32:35Z","body":"Hey there!\r\n\r\nWhen using the latest version of openmaize from hex - either in my own app or with the openmaize-phoenix-example, when I attempt to login I receive an error claiming that there's no function clause matching `Openmaize.Login.call`.\r\n\r\nHere's the stacktrace which includes the function call that was attempted:\r\n\r\n```\r\n[error] #PID<0.367.0> running Welcome.Endpoint terminated\r\nServer: localhost:4000 (http)\r\nRequest: POST /sessions\r\n** (exit) an exception was raised:\r\n    ** (FunctionClauseError) no function clause matching in Openmaize.Login.call/2\r\n        (openmaize) lib/openmaize/login.ex:74: Openmaize.Login.call(%Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{current_user: nil}, before_send: [#Function<0.7834419/1 in Plug.CSRFProtection.call/2>, #Function<4.13001795/1 in Phoenix.Controller.fetch_flash/2>, #Function<0.82590416/1 in Plug.Session.before_send/2>, #Function<1.32426848/1 in Plug.Logger.call/2>, #Function<0.78287744/1 in Phoenix.LiveReloader.before_send_inject_reloader/1>], body_params: %{\"_csrf_token\" => \"bAQhOio5MQBxIC8AMjEHFmcbe1EdJgAA6+WWmlEKEdAzUSdP2u4hTg==\", \"_utf8\" => \"✓\", \"session\" => %{\"password\" => \"password\", \"username\" => \"johnhamelink\"}}, cookies: %{\"HFS_SID_\" => \"0.591043542139232\", \"_leasedv2_session\" => \"eVVsMXpML2kyemZYWk5Ka214OEtRRHpUZDVLOUpZeTVzSHJxT1RsMFowWkFpQ1grYys2b3NZVTZsYjRWMzIrd21tOWpZOWRwbW8wMHJLdmpGQVhvc1RJUnZLeEQzSlFpalIrY2xiaktVU1hJV2tXNTRyVWRDLzVFL3dKMnlGRXdsWlRqWkphL2pUYi9UYWl1MHRKTDhFakd2Tjd2WFVSdjRUK3ZRRHRGTHp6SzFtRG1pcUV1SCs2Ry9Td3lhcHFOV1BveEEwUE9MUldQQ2J1QXloZllKaU9rVDk0R1lVT2dieDdGNFZyd1FzSUhIRGJxS25IWDFmYVpac2hPa2lQQzZSRHZ5cHB2dVNOV0NUUUFXa0MreVZEVEJzMjc4aGJ6VDN4eWp6cm5DQVlqRFFBc0NHbHdlQnk4cDl1VkF0M0MwVk5NZU5SVzBmTWdROUtkNEZ0RkJYZzdrbDRaUHFLaStnZFdla3JPMG1FPS0taFpzZ1ZMSDlIejRNajRnYW5RWXBsdz09--a3d18892053b659ccc503c73d372d576266362ce\", \"_meditation_now_key\" => \"SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYU2xUVHVYWEpCRU5rOXA3aUQxRy9Gdz09.SWD_rANEn-KbjwNb3XQdOFUFw4KtW53LTubom80kLe8\", \"_welcome_key\" => \"SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYWi92bUdVdEs0RG56Z2JjRlVuTzlJQT09.4ZPb7-_QvUHDUHsljcJkZ_VQ1hMwShjrZQZNdKw_v-A\", \"expensifyAuthToken\" => \"AD99FD8049E7447E52B6C7B319C517837936CF5DA3C70B3F44402EB64E2EA0E35C12A2541069206ED591ADDB12D5E549411591D0D0E17455C6FC96BB0CE13C73343E2DFC0FF2D2AD0DDF04F018825FCFC9ECA09A17731F7CA77BB41CDA9FF1B35D3635AC63D9146455B160EFE23458EFE3DE90FD768194BCE218978E789E14FC\", \"gsScrollPos\" => \"\", \"undefined\" => \"1\"}, halted: false, host: \"localhost\", method: \"POST\", owner: #PID<0.367.0>, params: %{\"_csrf_token\" => \"bAQhOio5MQBxIC8AMjEHFmcbe1EdJgAA6+WWmlEKEdAzUSdP2u4hTg==\", \"_utf8\" => \"✓\", \"session\" => %{\"password\" => \"password\", \"username\" => \"johnhamelink\"}}, path_info: [\"sessions\"], peer: {{127, 0, 0, 1}, 36392}, port: 4000, private: %{Welcome.Router => {[], %{}}, :phoenix_action => :create, :phoenix_controller => Welcome.SessionController, :phoenix_endpoint => Welcome.Endpoint, :phoenix_flash => %{}, :phoenix_format => \"html\", :phoenix_layout => {Welcome.LayoutView, :app}, :phoenix_pipelines => [:browser], :phoenix_route => #Function<10.116680344/1 in Welcome.Router.match_route/4>, :phoenix_router => Welcome.Router, :phoenix_view => Welcome.SessionView, :plug_session => %{\"_csrf_token\" => \"Z/vmGUtK4DnzgbcFUnO9IA==\"}, :plug_session_fetch => :done}, query_params: %{}, query_string: \"\", remote_ip: {127, 0, 0, 1}, req_cookies: %{\"HFS_SID_\" => \"0.591043542139232\", \"_leasedv2_session\" => \"eVVsMXpML2kyemZYWk5Ka214OEtRRHpUZDVLOUpZeTVzSHJxT1RsMFowWkFpQ1grYys2b3NZVTZsYjRWMzIrd21tOWpZOWRwbW8wMHJLdmpGQVhvc1RJUnZLeEQzSlFpalIrY2xiaktVU1hJV2tXNTRyVWRDLzVFL3dKMnlGRXdsWlRqWkphL2pUYi9UYWl1MHRKTDhFakd2Tjd2WFVSdjRUK3ZRRHRGTHp6SzFtRG1pcUV1SCs2Ry9Td3lhcHFOV1BveEEwUE9MUldQQ2J1QXloZllKaU9rVDk0R1lVT2dieDdGNFZyd1FzSUhIRGJxS25IWDFmYVpac2hPa2lQQzZSRHZ5cHB2dVNOV0NUUUFXa0MreVZEVEJzMjc4aGJ6VDN4eWp6cm5DQVlqRFFBc0NHbHdlQnk4cDl1VkF0M0MwVk5NZU5SVzBmTWdROUtkNEZ0RkJYZzdrbDRaUHFLaStnZFdla3JPMG1FPS0taFpzZ1ZMSDlIejRNajRnYW5RWXBsdz09--a3d18892053b659ccc503c73d372d576266362ce\", \"_meditation_now_key\" => \"SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYU2xUVHVYWEpCRU5rOXA3aUQxRy9Gdz09.SWD_rANEn-KbjwNb3XQdOFUFw4KtW53LTubom80kLe8\", \"_welcome_key\" => \"SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYWi92bUdVdEs0RG56Z2JjRlVuTzlJQT09.4ZPb7-_QvUHDUHsljcJkZ_VQ1hMwShjrZQZNdKw_v-A\", \"expensifyAuthToken\" => \"AD99FD8049E7447E52B6C7B319C517837936CF5DA3C70B3F44402EB64E2EA0E35C12A2541069206ED591ADDB12D5E549411591D0D0E17455C6FC96BB0CE13C73343E2DFC0FF2D2AD0DDF04F018825FCFC9ECA09A17731F7CA77BB41CDA9FF1B35D3635AC63D9146455B160EFE23458EFE3DE90FD768194BCE218978E789E14FC\", \"gsScrollPos\" => \"\", \"undefined\" => \"1\"}, req_headers: [{\"host\", \"localhost:4000\"}, {\"connection\", \"keep-alive\"}, {\"content-length\", \"158\"}, {\"cache-control\", \"max-age=0\"}, {\"origin\", \"http://localhost:4000\"}, {\"upgrade-insecure-requests\", \"1\"}, {\"user-agent\", \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36\"}, {\"content-type\", \"application/x-www-form-urlencoded\"}, {\"accept\", \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\"}, {\"dnt\", \"1\"}, {\"referer\", \"http://localhost:4000/sessions/new\"}, {\"accept-encoding\", \"gzip, deflate\"}, {\"accept-language\", \"en-GB,en;q=0.8,en-US;q=0.6\"}, {\"cookie\", \"_leasedv2_session=eVVsMXpML2kyemZYWk5Ka214OEtRRHpUZDVLOUpZeTVzSHJxT1RsMFowWkFpQ1grYys2b3NZVTZsYjRWMzIrd21tOWpZOWRwbW8wMHJLdmpGQVhvc1RJUnZLeEQzSlFpalIrY2xiaktVU1hJV2tXNTRyVWRDLzVFL3dKMnlGRXdsWlRqWkphL2pUYi9UYWl1MHRKTDhFakd2Tjd2WFVSdjRUK3ZRRHRGTHp6SzFtRG1pcUV1SCs2Ry9Td3lhcHFOV1BveEEwUE9MUldQQ2J1QXloZllKaU9rVDk0R1lVT2dieDdGNFZyd1FzSUhIRGJxS25IWDFmYVpac2hPa2lQQzZSRHZ5cHB2dVNOV0NUUUFXa0MreVZEVEJzMjc4aGJ6VDN4eWp6cm5DQVlqRFFBc0NHbHdlQnk4cDl1VkF0M0MwVk5NZU5SVzBmTWdROUtkNEZ0RkJYZzdrbDRaUHFLaStnZFdla3JPMG1FPS0taFpzZ1ZMSDlIejRNajRnYW5RWXBsdz09--a3d18892053b659ccc503c73d372d576266362ce; undefined=1; HFS_SID_=0.591043542139232; expensifyAuthToken=AD99FD8049E7447E52B6C7B319C517837936CF5DA3C70B3F44402EB64E2EA0E35C12A2541069206ED591ADDB12D5E549411591D0D0E17455C6FC96BB0CE13C73343E2DFC0FF2D2AD0DDF04F018825FCFC9ECA09A17731F7CA77BB41CDA9FF1B35D3635AC63D9146455B160EFE23458EFE3DE90FD768194BCE218978E789E14FC; gsScrollPos=; _meditation_now_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYU2xUVHVYWEpCRU5rOXA3aUQxRy9Gdz09.SWD_rANEn-KbjwNb3XQdOFUFw4KtW53LTubom80kLe8; _welcome_key=SFMyNTY.g3QAAAABbQAAAAtfY3NyZl90b2tlbm0AAAAYWi92bUdVdEs0RG56Z2JjRlVuTzlJQT09.4ZPb7-_QvUHDUHsljcJkZ_VQ1hMwShjrZQZNdKw_v-A\"}], request_path: \"/sessions\", resp_body: nil, resp_cookies: %{}, resp_headers: [{\"cache-control\", \"max-age=0, private, must-revalidate\"}, {\"x-request-id\", \"r346e80o59o0q8lfldi5idsnckpnrihr\"}, {\"x-frame-options\", \"SAMEORIGIN\"}, {\"x-xss-protection\", \"1; mode=block\"}, {\"x-content-type-options\", \"nosniff\"}], scheme: :http, script_name: [], secret_key_base: \"NWubAA15egYxOBxjxQnkfHvUFus7nEanYQNWq0O+NKA1J+NcrhovPv/fUBh3RdMk\", state: :unset, status: nil}, {Welcome.OpenmaizeEcto, :username})\r\n        (welcome) web/controllers/session_controller.ex:1: Welcome.SessionController.phoenix_controller_pipeline/2\r\n        (welcome) lib/welcome/endpoint.ex:1: Welcome.Endpoint.instrument/4\r\n        (welcome) lib/phoenix/router.ex:261: Welcome.Router.dispatch/2\r\n        (welcome) web/router.ex:1: Welcome.Router.do_call/2\r\n        (welcome) lib/welcome/endpoint.ex:1: Welcome.Endpoint.phoenix_pipeline/1\r\n        (welcome) lib/plug/debugger.ex:123: Welcome.Endpoint.\"call (overridable 3)\"/2\r\n        (welcome) lib/welcome/endpoint.ex:1: Welcome.Endpoint.call/2\r\n        (plug) lib/plug/adapters/cowboy/handler.ex:15: Plug.Adapters.Cowboy.Handler.upgrade/4\r\n        (cowboy) src/cowboy_protocol.erl:442: :cowboy_protocol.execute/4\r\n```"}}
{"actor":{"display_login":"johnhamelink"}}