Advertisement
Guest User

Untitled

a guest
Dec 19th, 2016
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.81 KB | None | 0 0
  1. [info] POST /api/jobs
  2. [debug] Simple CORS request from Origin 'http://localhost:4444' is allowed
  3. [debug] QUERY OK source="users" db=0.5ms
  4. SELECT u0."id", u0."email", u0."password", u0."auth_token", u0."inserted_at", u0."updated_at" FROM "users" AS u0 WHERE (u0."auth_token" = $1) ["dMCO_-UpWbjU6lKCuOl6"]
  5. [debug] Processing by RavioliShop.JobController.create/2
  6. Parameters: %{"input" => "a", "result" => "", "script_file" => %Plug.Upload{content_type: "application/javascript", filename: "dada.js", path: "/tmp/plug-1482/multipart-172659-193033-5"}, "taskName" => "a", "type" => "pi"}
  7. Pipelines: [:api, :authenticated]
  8. [info] Sent 400 in 3ms
  9. [debug] ** (Phoenix.ActionClauseError) bad request to RavioliShop.JobController.create, no matching action clause to process request
  10. (ravioli_shop) web/controllers/job_controller.ex:5: RavioliShop.JobController.create(%Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{current_user: %RavioliShop.User{__meta__: #Ecto.Schema.Metadata<:loaded, "users">, auth_token: "dMCO_-UpWbjU6lKCuOl6", email: "a@a", id: "05233209-aed9-4d71-89ac-5cb859100816", inserted_at: #Ecto.DateTime<2016-12-19 17:36:33>, jobs: #Ecto.Association.NotLoaded<association :jobs is not loaded>, password: "$2b$12$IBEj6e0GrVerXKn47Rbd5uNU9hNi.4VkNUH65XFTDAnFFZlR5v2um", updated_at: #Ecto.DateTime<2016-12-19 17:36:34>}}, before_send: [#Function<1.66760647/1 in Plug.Logger.call/2>, #Function<0.131639940/1 in Phoenix.LiveReloader.before_send_inject_reloader/1>], body_params: %{"input" => "a", "result" => "", "script_file" => %Plug.Upload{content_type: "application/javascript", filename: "dada.js", path: "/tmp/plug-1482/multipart-172659-193033-5"}, "taskName" => "a", "type" => "pi"}, cookies: %Plug.Conn.Unfetched{aspect: :cookies}, halted: false, host: "localhost", method: "POST", owner: #PID<0.580.0>, params: %{"input" => "a", "result" => "", "script_file" => %Plug.Upload{content_type: "application/javascript", filename: "dada.js", path: "/tmp/plug-1482/multipart-172659-193033-5"}, "taskName" => "a", "type" => "pi"}, path_info: ["api", "jobs"], path_params: %{}, peer: {{127, 0, 0, 1}, 40993}, port: 4000, private: %{RavioliShop.Router => {[], %{}}, :phoenix_action => :create, :phoenix_controller => RavioliShop.JobController, :phoenix_endpoint => RavioliShop.Endpoint, :phoenix_format => "json", :phoenix_layout => {RavioliShop.LayoutView, :app}, :phoenix_pipelines => [:api, :authenticated], :phoenix_route => #Function<6.111695722/1 in RavioliShop.Router.match_route/4>, :phoenix_router => RavioliShop.Router, :phoenix_view => RavioliShop.JobView, :plug_session_fetch => #Function<1.46198565/1 in Plug.Session.fetch_session/1>}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %Plug.Conn.Unfetched{aspect: :cookies}, req_headers: [{"host", "localhost:4000"}, {"connection", "keep-alive"}, {"content-length", "575"}, {"accept", "application/json"}, {"x-auth-token", "dMCO_-UpWbjU6lKCuOl6"}, {"user-agent", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"}, {"origin", "http://localhost:4444"}, {"content-type", "multipart/form-data; boundary=----WebKitFormBoundarycWs8J96ft6WmIZVB"}, {"referer", "http://localhost:4444/?taskName=a&type=pi&input=a&script_file=pgadmin.log"}, {"accept-encoding", "gzip, deflate"}, {"accept-language", "pl-PL,pl;q=0.8,en-US;q=0.6,en;q=0.4"}], request_path: "/api/jobs", resp_body: nil, resp_cookies: %{}, resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "dqak2k43sfc27t1rqdmsvmimhl8la6n6"}, {"access-control-allow-credentials", "true"}, {"access-control-allow-origin", "http://localhost:4444"}], scheme: :http, script_name: [], secret_key_base: "Ek7Ox88wufQcGGey0e70z+b3Q3SlQGy4/suoYRSZ40uvQGwqBRicmWrvGEmqYeCw", state: :unset, status: nil}, %{"input" => "a", "result" => "", "script_file" => %Plug.Upload{content_type: "application/javascript", filename: "dada.js", path: "/tmp/plug-1482/multipart-172659-193033-5"}, "taskName" => "a", "type" => "pi"})
  11. (ravioli_shop) web/controllers/job_controller.ex:1: RavioliShop.JobController.action/2
  12. (ravioli_shop) web/controllers/job_controller.ex:1: RavioliShop.JobController.phoenix_controller_pipeline/2
  13. (ravioli_shop) lib/ravioli_shop/endpoint.ex:1: RavioliShop.Endpoint.instrument/4
  14. (ravioli_shop) lib/phoenix/router.ex:261: RavioliShop.Router.dispatch/2
  15. (ravioli_shop) web/router.ex:1: RavioliShop.Router.do_call/2
  16. (ravioli_shop) lib/ravioli_shop/endpoint.ex:1: RavioliShop.Endpoint.phoenix_pipeline/1
  17. (ravioli_shop) lib/plug/debugger.ex:123: RavioliShop.Endpoint."call (overridable 3)"/2
  18. (ravioli_shop) lib/ravioli_shop/endpoint.ex:1: RavioliShop.Endpoint.call/2
  19. (plug) lib/plug/adapters/cowboy/handler.ex:15: Plug.Adapters.Cowboy.Handler.upgrade/4
  20. (cowboy) src/cowboy_protocol.erl:442: :cowboy_protocol.execute/4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement