The complete log
12:07:43.662 [error] #PID<0.687.0> running Diamond.Web.Endpoint (connection #PID<0.686.0>, stream id 1) terminated
Server: localhost:4000 (http)
Request: GET /status1
** (exit) an exception was raised:
** (UndefinedFunctionError) function Diamond.Web.ErrorView.render/2 is undefined (module Diamond.Web.ErrorView is not available)
Diamond.Web.ErrorView.render("404.json", %{conn: %Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{kind: :error, layout: false, reason: %Phoenix.Router.NoRouteError{conn: %Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, before_send: [#Function<1.112466771/1 in Plug.Logger.call/2>, #Function<0.84352368/1 in NewRelic.Phoenix.Transaction.Plug.call/2>, #Function<0.83136174/1 in NewRelic.Transaction.Plug.call/2>], body_params: %{}, cookies: %Plug.Conn.Unfetched{aspect: :cookies}, halted: false, host: "localhost", method: "GET", owner: #PID<0.687.0>, params: %{}, path_info: ["status1"], path_params: %{}, port: 4000, private: %{Diamond.Web.Router => {[], %{}}, :newrelic_tx_instrumented => true, :phoenix_endpoint => Diamond.Web.Endpoint, :phoenix_router => Diamond.Web.Router}, query_params: %{}, query_string: "", remote_ip: {0, 0, 0, 0, 0, 0, 0, 1}, req_cookies: %Plug.Conn.Unfetched{aspect: :cookies}, req_headers: [{"accept", "*/*"}, {"accept-encoding", "gzip, deflate, br"}, {"cache-control", "no-cache"}, {"connection", "keep-alive"}, {"host", "localhost:4000"}, {"postman-token", "b738f1b4-2bf0-4388-adae-0f46b07ac005"}, {"user-agent", "PostmanRuntime/7.26.3"}], request_path: "/status1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}, {"access-control-allow-origin", "*"}, {"access-control-expose-headers", ""}, {"access-control-allow-credentials", "true"}], scheme: :http, script_name: [], secret_key_base: :..., state: :unset, status: nil}, message: "no route found for GET /status1 (Diamond.Web.Router)", plug_status: 404, router: Diamond.Web.Router}, stack: [{Diamond.Web.Router, :__match_route__, 4, [file: 'lib/diamond_web/router.ex', line: 1]}, {Diamond.Web.Router, :"call (overridable 2)", 2, [file: 'lib/phoenix/router.ex', line: 304]}, {Diamond.Web.Router, :call, 2, [file: 'lib/plug/error_handler.ex', line: 65]}, {Diamond.Web.Endpoint, :plug_builder_call, 2, [file: 'lib/diamond_web/endpoint.ex', line: 1]}, {Diamond.Web.Endpoint, :call, 2, [file: 'lib/diamond_web/endpoint.ex', line: 1]}, {Phoenix.Endpoint.Cowboy2Handler, :init, 2, [file: 'lib/phoenix/endpoint/cowboy2_handler.ex', line: 34]}, {:cowboy_handler, :execute, 2, [file: '/Users/sahilpaudel/Documents/PharmEasy/Elixir/diamond/deps/cowboy/src/cowboy_handler.erl', line: 41]}, {:cowboy_stream_h, :execute, 3, [file: '/Users/sahilpaudel/Documents/PharmEasy/Elixir/diamond/deps/cowboy/src/cowboy_stream_h.erl', line: 320]}]}, before_send: [#Function<1.112466771/1 in Plug.Logger.call/2>, #Function<0.84352368/1 in NewRelic.Phoenix.Transaction.Plug.call/2>, #Function<0.83136174/1 in NewRelic.Transaction.Plug.call/2>], body_params: %{}, cookies: %Plug.Conn.Unfetched{aspect: :cookies}, halted: false, host: "localhost", method: "GET", owner: #PID<0.687.0>, params: %{}, path_info: ["status1"], path_params: %{}, port: 4000, private: %{Diamond.Web.Router => {[], %{}}, :newrelic_tx_instrumented => true, :phoenix_endpoint => Diamond.Web.Endpoint, :phoenix_format => "json", :phoenix_layout => false, :phoenix_router => Diamond.Web.Router, :phoenix_template => "404.json", :phoenix_view => Diamond.Web.ErrorView}, query_params: %{}, query_string: "", remote_ip: {0, 0, 0, 0, 0, 0, 0, 1}, req_cookies: %Plug.Conn.Unfetched{aspect: :cookies}, req_headers: [{"accept", "*/*"}, {"accept-encoding", "gzip, deflate, br"}, {"cache-control", "no-cache"}, {"connection", "keep-alive"}, {"host", "localhost:4000"}, {"postman-token", "b738f1b4-2bf0-4388-adae-0f46b07ac005"}, {"user-agent", "PostmanRuntime/7.26.3"}], request_path: "/status1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}, {"access-control-allow-origin", "*"}, {"access-control-expose-headers", ""}, {"access-control-allow-credentials", "true"}], scheme: :http, script_name: [], secret_key_base: :..., state: :unset, status: 404}, kind: :error, reason: %Phoenix.Router.NoRouteError{conn: %Plug.Conn{adapter: {Plug.Cowboy.Conn, :...}, assigns: %{}, before_send: [#Function<1.112466771/1 in Plug.Logger.call/2>, #Function<0.84352368/1 in NewRelic.Phoenix.Transaction.Plug.call/2>, #Function<0.83136174/1 in NewRelic.Transaction.Plug.call/2>], body_params: %{}, cookies: %Plug.Conn.Unfetched{aspect: :cookies}, halted: false, host: "localhost", method: "GET", owner: #PID<0.687.0>, params: %{}, path_info: ["status1"], path_params: %{}, port: 4000, private: %{Diamond.Web.Router => {[], %{}}, :newrelic_tx_instrumented => true, :phoenix_endpoint => Diamond.Web.Endpoint, :phoenix_router => Diamond.Web.Router}, query_params: %{}, query_string: "", remote_ip: {0, 0, 0, 0, 0, 0, 0, 1}, req_cookies: %Plug.Conn.Unfetched{aspect: :cookies}, req_headers: [{"accept", "*/*"}, {"accept-encoding", "gzip, deflate, br"}, {"cache-control", "no-cache"}, {"connection", "keep-alive"}, {"host", "localhost:4000"}, {"postman-token", "b738f1b4-2bf0-4388-adae-0f46b07ac005"}, {"user-agent", "PostmanRuntime/7.26.3"}], request_path: "/status1", resp_body: nil, resp_cookies: %{}, resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}, {"access-control-allow-origin", "*"}, {"access-control-expose-headers", ""}, {"access-control-allow-credentials", "true"}], scheme: :http, script_name: [], secret_key_base: :..., state: :unset, status: nil}, message: "no route found for GET /status1 (Diamond.Web.Router)", plug_status: 404, router: Diamond.Web.Router}, stack: [{Diamond.Web.Router, :__match_route__, 4, [file: 'lib/diamond_web/router.ex', line: 1]}, {Diamond.Web.Router, :"call (overridable 2)", 2, [file: 'lib/phoenix/router.ex', line: 304]}, {Diamond.Web.Router, :call, 2, [file: 'lib/plug/error_handler.ex', line: 65]}, {Diamond.Web.Endpoint, :plug_builder_call, 2, [file: 'lib/diamond_web/endpoint.ex', line: 1]}, {Diamond.Web.Endpoint, :call, 2, [file: 'lib/diamond_web/endpoint.ex', line: 1]}, {Phoenix.Endpoint.Cowboy2Handler, :init, 2, [file: 'lib/phoenix/endpoint/cowboy2_handler.ex', line: 34]}, {:cowboy_handler, :execute, 2, [file: '/Users/sahilpaudel/Documents/PharmEasy/Elixir/diamond/deps/cowboy/src/cowboy_handler.erl', line: 41]}, {:cowboy_stream_h, :execute, 3, [file: '/Users/sahilpaudel/Documents/PharmEasy/Elixir/diamond/deps/cowboy/src/cowboy_stream_h.erl', line: 320]}], view_module: Diamond.Web.ErrorView, view_template: "404.json"})
(phoenix) lib/phoenix/view.ex:399: Phoenix.View.render_to_iodata/3
(phoenix) lib/phoenix/controller.ex:729: Phoenix.Controller.__put_render__/5
(diamond) lib/diamond_web/endpoint.ex:1: Diamond.Web.Endpoint.instrument/4
(phoenix) lib/phoenix/endpoint/render_errors.ex:75: Phoenix.Endpoint.RenderErrors.instrument_render_and_send/5
(phoenix) lib/phoenix/endpoint/render_errors.ex:62: Phoenix.Endpoint.RenderErrors.__catch__/5
(phoenix) lib/phoenix/endpoint/cowboy2_handler.ex:34: Phoenix.Endpoint.Cowboy2Handler.init/2
(cowboy) /Users/sahilpaudel/Documents/PharmEasy/Elixir/diamond/deps/cowboy/src/cowboy_handler.erl:41: :cowboy_handler.execute/2