VK
Size: a a a
VK
B
AM
НЗ
render(conn, "index.json", orders: orders)defmodule Krake.Web.V1.OrderView do
use Krake.Web, :view
def render("index.json", %{orders: orders}) do
end
end
НЗ
ŹR
def render("index.json", %{orders: orders, conn: conn}) do
endНЗ
def render("index.json", %{orders: orders, conn: conn}) do
endŹR
МБ
@spec handleMessage(any(), any()) :: any()при using в другом модуле пишет
def handleMessage(_a, _b) do
raise "Behaviour function #{__MODULE__}.handleMessage/1 is not implemented!"
end
Overloaded contract for 'Elixir.Handlers.Menu':handleMessage/2 has overlapping domains; such contracts are currently unsupported and are simply ignored Это появилось после добавления спеки с any(), до этого писал о несовпадении типовŹR
ŹR
МБ
МБ
AM
VI
jc
VI
VI
_build/prod/rel/webinar/bin/webinar foreground
13:58:48.435 [info] 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
PS
AZ