EP
Size: a a a
EP
jc
EP
EP
EP
ML
ML
EP
ML
jc
jc
B
jc
B
Я
B
AP
AB
AP
VI
21:53:17.098 [error] #PID<0.1373.0> running WebinarWeb.Endpoint (connection #PID<0.1372.0>, stream id 1) terminated
Server: example.com:80 (http)
Request: GET /socket/websocket?broadcast=DgsbsbXXYZi9k7lK9V9RLLLEZJYw&subs_secret_key=t3DucSywB6SmhSSk&subs_id=194&vsn=2.0.0
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in WebinarWeb.Endpoint.__handler__/2
(webinar) lib/webinar_web/endpoint.ex:1: WebinarWeb.Endpoint.__handler__(["socket", "websocket"], [])
(phoenix) lib/phoenix/endpoint/cowboy2_handler.ex:18: Phoenix.Endpoint.Cowboy2Handler.init/2
(cowboy) /Users/vic/code/webinar/deps/cowboy/src/cowboy_handler.erl:41: :cowboy_handler.execute/2
(cowboy) /Users/vic/code/webinar/deps/cowboy/src/cowboy_stream_h.erl:296: :cowboy_stream_h.execute/3
(cowboy) /Users/vic/code/webinar/deps/cowboy/src/cowboy_stream_h.erl:274: :cowboy_stream_h.request_process/3
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
deps/phoenix/lib/phoenix/endpoint/cowboy2_handler.ex там handler отпределяется как функция с двумя параметрами dispatches =
for {path, socket, socket_opts} <- sockets,
{path, return} <- socket_paths(module, path, socket, socket_opts) do
quote do
def __handler__(unquote(path), _opts), do: unquote(Macro.escape(return))
end
end