Phoenix.Router.NoRouteError at GET /zh/home.php
no route found for GET /zh/home.php (YufanWeb.Router)
482        case __match_route__(decoded, method, host) do
483          {metadata, prepare, pipeline, plug_opts} ->
484            Phoenix.Router.__call__(conn, metadata, prepare, pipeline, plug_opts)
485
486          :error ->
487            raise NoRouteError, conn: conn, router: __MODULE__
488        end
489      end
490
491      defoverridable [init: 1, call: 2]
492    end
YufanWeb.Router.call/2 Docs yufan
1defmodule YufanWeb.Endpoint do
2  use Phoenix.Endpoint, otp_app: :yufan
3
4  # The session will be stored in the cookie and signed,
5  # this means its contents can be read but not tampered with.
6  # Set :encryption_salt if you would also like to encrypt it.
YufanWeb.Endpoint.plug_builder_call/2 yufan
131          case conn do
132            %Plug.Conn{path_info: ["__plug__", "debugger", "action"], method: "POST"} ->
133              Plug.Debugger.run_action(conn)
134
135            %Plug.Conn{} ->
136              super(conn, opts)
137          end
138        rescue
139          e in Plug.Conn.WrapperError ->
140            %{conn: conn, kind: kind, reason: reason, stack: stack} = e
141            Plug.Debugger.__catch__(conn, kind, reason, stack, @plug_debugger)
YufanWeb.Endpoint."call (overridable 3)"/2 yufan
1defmodule YufanWeb.Endpoint do
2  use Phoenix.Endpoint, otp_app: :yufan
3
4  # The session will be stored in the cookie and signed,
5  # this means its contents can be read but not tampered with.
6  # Set :encryption_salt if you would also like to encrypt it.
YufanWeb.Endpoint.call/2 yufan
17
18  def call(conn, {endpoint, opts}), do: do_call(conn, endpoint, opts, true)
19
20  defp do_call(conn, endpoint, opts, retry?) do
21    try do
22      endpoint.call(conn, opts)
23    rescue
24      exception in [UndefinedFunctionError] ->
25        case exception do
26          %UndefinedFunctionError{module: ^endpoint} when retry? ->
27            # Sync with the code reloader and retry once
Phoenix.Endpoint.SyncCodeReloadPlug.do_call/4 phoenix
6  def init(req, {plug, opts}) do
7    conn = @connection.conn(req)
8
9    try do
10      conn
11      |> plug.call(opts)
12      |> maybe_send(plug)
13      |> case do
14        %Plug.Conn{adapter: {@connection, %{upgrade: {:websocket, websocket_args}} = req}} = conn ->
15          {handler, state, cowboy_opts} = websocket_args
16          {__MODULE__, copy_resp_headers(conn, req), {handler, state}, cowboy_opts}
Plug.Cowboy.Handler.init/2 plug_cowboy
32-optional_callbacks([terminate/3]).
33
34-spec execute(Req, Env) -> {ok, Req, Env}
35	when Req::cowboy_req:req(), Env::cowboy_middleware:env().
36execute(Req, Env=#{handler := Handler, handler_opts := HandlerOpts}) ->
37	try Handler:init(Req, HandlerOpts) of
38		{ok, Req2, State} ->
39			Result = terminate(normal, Req2, State, Handler),
40			{ok, Req2, Env#{result => Result}};
41		{Mod, Req2, State} ->
42			Mod:upgrade(Req2, Env, Handler, State);
:cowboy_handler.execute/2 cowboy
301	end.
302
303execute(_, _, []) ->
304	ok;
305execute(Req, Env, [Middleware|Tail]) ->
306	case Middleware:execute(Req, Env) of
307		{ok, Req2, Env2} ->
308			execute(Req2, Env2, Tail);
309		{suspend, Module, Function, Args} ->
310			proc_lib:hibernate(?MODULE, resume, [Env, Tail, Module, Function, Args]);
311		{stop, _Req2} ->
:cowboy_stream_h.execute/3 cowboy
290%% to simplify the debugging of errors. The proc_lib library
291%% already adds the stacktrace to other types of exceptions.
292-spec request_process(cowboy_req:req(), cowboy_middleware:env(), [module()]) -> ok.
293request_process(Req, Env, Middlewares) ->
294	try
295		execute(Req, Env, Middlewares)
296	catch
297		exit:Reason={shutdown, _}:Stacktrace ->
298			erlang:raise(exit, Reason, Stacktrace);
299		exit:Reason:Stacktrace when Reason =/= normal, Reason =/= shutdown ->
300			erlang:raise(exit, {Reason, Stacktrace}, Stacktrace)
:cowboy_stream_h.request_process/3 cowboy
No code available.
:proc_lib.init_p_do_apply/3 stdlib
Params
ac
"friend"
handlekey
"addfriendhk_9"
mod
"spacecp"
op
"add"
uid
"9"
Request info
URI:
http://yufan.org:80/zh/home.php
Query string:
mod=spacecp&ac=friend&op=add&uid=9&handlekey=addfriendhk_9
Headers
accept
*/*
connection
upgrade
host
yufan.org
referer
http://yufan.org/home.php?mod=spacecp&ac=friend&op=add&uid=9&handlekey=addfriendhk_9
user-agent
claudebot
x-forwarded-for
18.234.232.228
x-forwarded-proto
http
x-real-ip
18.234.232.228