desktop-example-app icon indicating copy to clipboard operation
desktop-example-app copied to clipboard

add item throw err?

Open tyoc213 opened this issue 2 years ago • 0 comments

App looks like this

image

But when clicking on add it show this:

 [error] Process #PID<0.689.0> terminating
** (exit) {{{%Phoenix.Router.NoRouteError{conn: %Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %{}, cookies: %{"_todo_key" => "vY5Vn1GZASlJGbeQX8SVxejE1N75JaDaD9vtMq0oQzNqMFhNkGtZvq6/mMg4V+m2N7UoT8A7F1cppGza7FoiFvIQqbaKe2TQx1IAHFF25uI2oDsfdiaTF8dRk84tgVnq"}, halted: false, host: "localhost", method: "GET", owner: #PID<0.689.0>, params: %{}, path_info: ["assets", "app.js"], path_params: %{}, port: 35957, private: %{TodoWeb.Router => {[], %{}}, :before_send => [#Function<0.77458138/1 in Plug.Session.before_send/2>, #Function<1.26106830/1 in Phoenix.LiveReloader.before_send_inject_reloader/3>], :phoenix_endpoint => TodoWeb.Endpoint, :phoenix_router => TodoWeb.Router, :plug_session => %{"_csrf_token" => "Bz-cj3L8PyPRhBoF0y93cbGE", "user" => true}, :plug_session_fetch => :done}, query_params: %{}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %{"_todo_key" => "vY5Vn1GZASlJGbeQX8SVxejE1N75JaDaD9vtMq0oQzNqMFhNkGtZvq6/mMg4V+m2N7UoT8A7F1cppGza7FoiFvIQqbaKe2TQx1IAHFF25uI2oDsfdiaTF8dRk84tgVnq"}, req_headers: [{"accept", "*/*"}, {"accept-encoding", "gzip, deflate"}, {"accept-language", "en-US"}, {"connection", "Keep-Alive"}, {"cookie", "_todo_key=vY5Vn1GZASlJGbeQX8SVxejE1N75JaDaD9vtMq0oQzNqMFhNkGtZvq6/mMg4V+m2N7UoT8A7F1cppGza7FoiFvIQqbaKe2TQx1IAHFF25uI2oDsfdiaTF8dRk84tgVnq"}, {"host", "localhost:35957"}, {"referer", "http://localhost:35957/?text=dfgdfgd"}, {"user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Safari/605.1.15"}], request_path: "/assets/app.js", resp_body: nil, resp_cookies: %{}, resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}, {"x-request-id", "FuRMk1IYPOmVgRoAAADI"}], scheme: :http, script_name: [], secret_key_base: :..., state: :unset, status: nil}, message: "no route found for GET /assets/app.js (TodoWeb.Router)", plug_status: 404, router: TodoWeb.Router}, [{TodoWeb.Router, :call, 2, [file: 'lib/phoenix/router.ex', line: 406]}, {TodoWeb.Endpoint, :plug_builder_call, 2, [file: 'lib/todo_web/endpoint.ex', line: 1]}, {TodoWeb.Endpoint, :"call (overridable 3)", 2, [file: 'lib/plug/debugger.ex', line: 136]}, {TodoWeb.Endpoint, :call, 2, [file: 'lib/todo_web/endpoint.ex', line: 1]}, {Phoenix.Endpoint.Cowboy2Handler, :init, 4, [file: 'lib/phoenix/endpoint/cowboy2_handler.ex', line: 43]}, {:cowboy_handler, :execute, 2, [file: '/home/tyoc213/git_repos/hub/elixir-desktop-example-app/deps/cowboy/src/cowboy_handler.erl', line: 37]}, {:cowboy_stream_h, :execute, 3, [file: '/home/tyoc213/git_repos/hub/elixir-desktop-example-app/deps/cowboy/src/cowboy_stream_h.erl', line: 306]}, {:cowboy_stream_h, :request_process, 3, [file: '/home/tyoc213/git_repos/hub/elixir-desktop-example-app/deps/cowboy/src/cowboy_stream_h.erl', line: 295]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 226]}]}, {TodoWeb.Endpoint, :call, [%Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, body_params: %Plug.Conn.Unfetched{aspect: :body_params}, cookies: %Plug.Conn.Unfetched{aspect: :cookies}, halted: false, host: "localhost", method: "GET", owner: #PID<0.689.0>, params: %Plug.Conn.Unfetched{aspect: :params}, path_info: ["assets", "app.js"], path_params: %{}, port: 35957, private: %{}, query_params: %Plug.Conn.Unfetched{aspect: :query_params}, query_string: "", remote_ip: {127, 0, 0, 1}, req_cookies: %Plug.Conn.Unfetched{aspect: :cookies}, req_headers: [{"accept", "*/*"}, {"accept-encoding", "gzip, deflate"}, {"accept-language", "en-US"}, {"connection", "Keep-Alive"}, {"cookie", "_todo_key=vY5Vn1GZASlJGbeQX8SVxejE1N75JaDaD9vtMq0oQzNqMFhNkGtZvq6/mMg4V+m2N7UoT8A7F1cppGza7FoiFvIQqbaKe2TQx1IAHFF25uI2oDsfdiaTF8dRk84tgVnq"}, {"host", "localhost:35957"}, {"referer", "http://localhost:35957/?text=dfgdfgd"}, {"user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Safari/605.1.15"}], request_path: "/assets/app.js", resp_body: nil, resp_cookies: %{}, resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}], scheme: :http, script_name: [], secret_key_base: nil, state: :unset, status: nil}, []]}}, []}
Initial Call: :cowboy_stream_h.request_process/3
Ancestors: [#PID<0.642.0>, #PID<0.509.0>, #PID<0.508.0>, TodoWeb.Endpoint, TodoWeb.Sup, TodoApp, #PID<0.431.0>]
Message Queue Length: 0
Messages: []
Links: [#PID<0.642.0>]
Dictionary: ["$logger_metadata$": %{request_id: "FuRMk1IYPOmVgRoAAADI"}]
Trapping Exits: false
Status: :running
Heap Size: 17731
Stack Size: 29
Reductions: 69580

tyoc213 avatar Apr 09 '22 18:04 tyoc213