Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.88 KB | None | 0 0
  1. [info] POST /api/v2/logaction
  2. [debug] Processing with Cms4Web.LogactionController.create/2
  3. Parameters: %{"beh" => "11", "userid" => "22", "uuid" => "33"}
  4. Pipelines: [:api]
  5. [info] Converted error {:badfun, %Phoenix.ActionClauseError{args: [%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, before_send: [#Function<1.112466771/1 in Plug.Logger.call/2>, #Function<0.89070732/1 in Phoenix.LiveReloader.before_send_inject_reloader/2>], body_params: %{"beh" => "11", "userid" => "22", "uuid" => "33"}, cookies: %Plug.Conn.Unfetched{aspect: :cookies}, halted: false, host: "192.168.1.85", method: "POST", owner: #PID<0.500.0>, params: %{"beh" => "11", "userid" => "22", "uuid" => "33"}, path_info: ["api", "v2", "logaction"], path_params: %{}, port: 4000, private: %{Cms4Web.Router => {[], %{}}, :phoenix_action => :create, :phoenix_controller => Cms4Web.LogactionController, :phoenix_endpoint => Cms4Web.Endpoint, :phoenix_format => "json", :phoenix_layout => {Cms4Web.LayoutView, :app}, :phoenix_pipelines => [:api], :phoenix_router => Cms4Web.Router, :phoenix_view => Cms4Web.LogactionView, :plug_session_fetch => #Function<1.58261320/1 in Plug.Session.fetch_session/1>}, query_params: %{}, query_string: "", remote_ip: {192, 168, 1, 85}, req_cookies: %Plug.Conn.Unfetched{aspect: :cookies}, req_headers: [{"accept-encoding", "gzip"}, {"connection", "Keep-Alive"}, {"content-length", "38"}, {"content-type", "application/json; charset=UTF-8"}, {"host", "192.168.1.85:4000"}, {"user-agent", "okhttp/3.12.0"}], request_path: "/api/v2/logaction", resp_body: nil, resp_cookies: %{}, resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "2m79mlitmpt6vpm7ls0000a1"}], scheme: :http, script_name: [], secret_key_base: :..., state: :unset, status: nil}, %{"beh" => "11", "userid" => "22", "uuid" => "33"}], arity: 2, clauses: nil, function: :create, kind: nil, module: Cms4Web.LogactionController}} to 500 response
  6. [error] #PID<0.500.0> running Cms4Web.Endpoint (connection #PID<0.499.0>, stream id 1) terminated
  7. Server: 192.168.1.85:4000 (http)
  8. Request: POST /api/v2/logaction
  9. ** (exit) an exception was raised:
  10. ** (BadFunctionError) expected a function, got: %Phoenix.ActionClauseError{args: [%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, before_send: [#Function<1.112466771/1 in Plug.Logger.call/2>, #Function<0.89070732/1 in Phoenix.LiveReloader.before_send_inject_reloader/2>], body_params: %{"beh" => "11", "userid" => "22", "uuid" => "33"}, cookies: %Plug.Conn.Unfetched{aspect: :cookies}, halted: false, host: "192.168.1.85", method: "POST", owner: #PID<0.500.0>, params: %{"beh" => "11", "userid" => "22", "uuid" => "33"}, path_info: ["api", "v2", "logaction"], path_params: %{}, port: 4000, private: %{Cms4Web.Router => {[], %{}}, :phoenix_action => :create, :phoenix_controller => Cms4Web.LogactionController, :phoenix_endpoint => Cms4Web.Endpoint, :phoenix_format => "json", :phoenix_layout => {Cms4Web.LayoutView, :app}, :phoenix_pipelines => [:api], :phoenix_router => Cms4Web.Router, :phoenix_view => Cms4Web.LogactionView, :plug_session_fetch => #Function<1.58261320/1 in Plug.Session.fetch_session/1>}, query_params: %{}, query_string: "", remote_ip: {192, 168, 1, 85}, req_cookies: %Plug.Conn.Unfetched{aspect: :cookies}, req_headers: [{"accept-encoding", "gzip"}, {"connection", "Keep-Alive"}, {"content-length", "38"}, {"content-type", "application/json; charset=UTF-8"}, {"host", "192.168.1.85:4000"}, {"user-agent", "okhttp/3.12.0"}], request_path: "/api/v2/logaction", resp_body: nil, resp_cookies: %{}, resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "2m79mlitmpt6vpm7ls0000a1"}], scheme: :http, script_name: [], secret_key_base: :..., state: :unset, status: nil}, %{"beh" => "11", "userid" => "22", "uuid" => "33"}], arity: 2, clauses: nil, function: :create, kind: nil, module: Cms4Web.LogactionController}
  11. (elixir) lib/exception.ex:1105: anonymous fn/2 in FunctionClauseError.blame/3
  12. (elixir) lib/enum.ex:1327: Enum."-map/2-lists^map/1-0-"/2
  13. (elixir) lib/exception.ex:1104: FunctionClauseError.blame/3
  14. (phoenix) lib/phoenix/exceptions.ex:59: Phoenix.ActionClauseError.blame/2
  15. (plug) lib/plug/debugger.ex:197: Plug.Debugger.render/6
  16. (plug) lib/plug/debugger.ex:147: Plug.Debugger.__catch__/5
  17. (cms4) lib/cms4_web/endpoint.ex:1: Cms4Web.Endpoint.call/2
  18. (phoenix) lib/phoenix/endpoint/cowboy2_handler.ex:33: Phoenix.Endpoint.Cowboy2Handler.init/2
  19. (cowboy) /home/cat/DEV/elixir/cms4/deps/cowboy/src/cowboy_handler.erl:41: :cowboy_handler.execute/2
  20. (cowboy) /home/cat/DEV/elixir/cms4/deps/cowboy/src/cowboy_stream_h.erl:296: :cowboy_stream_h.execute/3
  21. (cowboy) /home/cat/DEV/elixir/cms4/deps/cowboy/src/cowboy_stream_h.erl:274: :cowboy_stream_h.request_process/3
  22. (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
  23. [info] Replied phoenix:live_reload :ok
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement