Help regarding catching exceptions and catch-all handle_info in GenServer?

Just to answer this question directly: Sentry should not leak this message. They are probably using Task.async while they should be using something like Task.Supervisor.start_child. If they are leaking it on purpose, then you need to handle it. Adding a clause like handle_info({ref, _}, state) when is_reference(ref), do: {:noreply, state} is enough.

2 Likes