Skip to content

Instantly share code, notes, and snippets.

@BlakeWilliams
Created April 12, 2015 17:38
Show Gist options
  • Select an option

  • Save BlakeWilliams/6cd514408168b017a517 to your computer and use it in GitHub Desktop.

Select an option

Save BlakeWilliams/6cd514408168b017a517 to your computer and use it in GitHub Desktop.
[error] GenServer #PID<0.338.0> terminating
Last message: {:"$gen_cast", {:handle_in, "all", %{}, "60"}}
State: %Phoenix.Socket{assigns: %{}, authorized: false, channel: Constable.AnnouncementChannel, endpoint: Constable.Endpoint, joined: true, pubsub_server: Constable.PubSub, ref: "59", router: Constable.Router, topic: "announcement:all", transport: Phoenix.Transports.WebSocket, transport_pid: #PID<0.308.0>}
** (exit) an exception was raised:
** (RuntimeError) Channel replies can only be sent from a `handle_in/3` callback.
Use `push/3` to send an out-of-band message down the socket
(phoenix) lib/phoenix/channel/server.ex:99: Phoenix.Channel.Server.handle_result/2
(stdlib) gen_server.erl:593: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:659: :gen_server.handle_msg/5
(stdlib) proc_lib.erl:237: :proc_lib.init_p_do_apply/3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment