Running WebinarWeb.Endpoint with cowboy 2.6.3 at http://dev1.qwebinar.nl:4000
13:59:06.453 [error] #PID<0.1356.0> running WebinarWeb.Endpoint (connection #PID<0.1355.0>, stream id 1) terminated
Server: localhost:80 (http)
Request: GET /socket/websocket?broadcast=pSQvEgQ7XlcsAXf9EVCKvhvD80A&subs_secret_key=Xmgjeeefnv4&subs_id=9&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
я так понимаю ты запускал mix phx.server это так?
config :you_app, YouAppWeb.Endpoint, http: [:inet6, port: System.get_env("PORT") || 8080], url: [host: "0.0.0.0", port: System.get_env("PORT") || 8080], cache_static_manifest: "priv/static/cache_manifest.json", server: true, root: ".", version: Application.spec(:you_app, :vsn)
во время разработки сервер запускает микс, а так по идее запуск сервера должен быть в конфиге
Обсуждают сегодня