[debug] INCOMING "comment:add" on "comments:10" to DiscussWeb.CommentsChannel
Transport: Phoenix.Transports.WebSocket
Parameters: %{"content" => "ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}
[error] GenServer #PID<0.2548.0> terminating
** (KeyError) key :assign not found in: %Phoenix.Socket{assigns: %{topic: %Discuss.Topic.Top{meta: #Ecto.Schema.Metadata<:loaded, "topics">, comments: #Ecto.Association.NotLoaded<association :comments is not loaded>, id: 10, title: "с подписью пользователя", user: #Ecto.Association.NotLoaded<association :user is not loaded>, user_id: 1}}, channel: DiscussWeb.CommentsChannel, channel_pid: #PID<0.2548.0>, endpoint: DiscussWeb.Endpoint, handler: DiscussWeb.UserSocket, id: nil, join_ref: "100", joined: true, private: %{log_handle_in: :debug, log_join: :info}, pubsub_server: Discuss.PubSub, ref: "168", serializer: Phoenix.Transports.V2.WebSocketSerializer, topic: "comments:10", transport: Phoenix.Transports.WebSocket, transport_name: :websocket, transport_pid: #PID<0.2520.0>, vsn: "2.0.0"}
(discuss) lib/discuss_web/channels/comments_channel.ex:19: DiscussWeb.CommentsChannel.handle_in/3
(phoenix) lib/phoenix/channel/server.ex:244: anonymous fn/4 in Phoenix.Channel.Server.handle_info/2
(discuss) lib/discuss_web/endpoint.ex:1: DiscussWeb.Endpoint.instrument/4
(stdlib) gen_server.erl:637: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:711: :gen_server.handle_msg/6
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Last message: %Phoenix.Socket.Message{event: "comment:add", join_ref: "100", payload: %{"content" => "ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}, ref: "168", topic: "comments:10"}
State: %Phoenix.Socket{assigns: %{topic: %Discuss.Topic.Top{meta: #Ecto.Schema.Metadata<:loaded, "topics">, comments: #Ecto.Association.NotLoaded<association :comments is not loaded>, id: 10, title: "с подписью пользователя", user: #Ecto.Association.NotLoaded<association :user is not loaded>, user_id: 1}}, channel: DiscussWeb.CommentsChannel, channel_pid: #PID<0.2548.0>, endpoint: DiscussWeb.Endpoint, handler: DiscussWeb.UserSocket, id: nil, join_ref: "100", joined: true, private: %{log_handle_in: :debug, log_join: :info}, pubsub_server: Discuss.PubSub, ref: nil, serializer: Phoenix.Transports.V2.WebSocketSerializer, topic: "comments:10", transport: Phoenix.Transports.WebSocket, transport_name: :websocket, transport_pid: #PID<0.2520.0>, vsn: "2.0.0"}
[info] JOIN "comments:10" to DiscussWeb.CommentsChannel
Transport: Phoenix.Transports.WebSocket (2.0.0)
Serializer: Phoenix.Transports.V2.WebSocketSerializer
Parameters: %{}
[debug] QUERY OK source="topics" db=1.5ms queue=0.3ms
SELECT t0."id", t0."title", t0."user_id" FROM "topics" AS t0 WHERE (t0."id" = $1) [10]
[info] Replied comments:10 :ok