Skip to content

Handler has failed and has been detached #1008

@wkirschbaum

Description

@wkirschbaum

Describe the bug

I get the following errors when booting up a phoenix 1.18.0-rc-4, liveview 1.1.0-rc.3 application:

[error] Handler {Appsignal.Phoenix.LiveView, [:phoenix, :live_view, :handle_event, :start]} has failed and has been detached. Class=:error
Reason=:badarg
Stacktrace=[
  {:binary, :match,
   [
     "_target",
     {:compiled, {:ac, #Reference<0.1504776825.681181185.176524>},
      {:ac, #Reference<0.1504776825.681181185.176525>}}
   ], [error_info: %{module: :erl_stdlib_errors}]},
  {String, :contains?, 2, [file: ~c"lib/string.ex", line: 2836]},
  {Appsignal.Utils.MapFilter, :"-discard_values/2-fun-0-", 2,
   [file: ~c"lib/appsignal/utils/map_filter.ex", line: 19]},
  {Enum, :"-map/2-fun-0-", 3, [file: ~c"lib/enum.ex", line: 1722]},
  {:maps, :fold_1, 4, [file: ~c"maps.erl", line: 894]},
  {Enum, :map, 2, [file: ~c"lib/enum.ex", line: 2558]},
  {Enum, :into, 3, [file: ~c"lib/enum.ex", line: 1608]},
  {Appsignal.Span, :do_set_sample_data, 5,
   [file: ~c"lib/appsignal/span.ex", line: 255]},
  {Appsignal.Phoenix.LiveView, :handle_event_start, 4,
   [file: ~c"lib/appsignal_phoenix/live_view.ex", line: 100]},
  {:telemetry, :"-execute/3-fun-0-", 4,
   [
     file: ~c"/home/whk/src/flt/moneyclub/deps/telemetry/src/telemetry.erl",
     line: 167
   ]},
  {:lists, :foreach_1, 2, [file: ~c"lists.erl", line: 2641]},
  {:telemetry, :span, 3,
   [
     file: ~c"/home/whk/src/flt/moneyclub/deps/telemetry/src/telemetry.erl",
     line: 318
   ]},
  {Phoenix.LiveView.Channel, :handle_info, 2,
   [file: ~c"lib/phoenix_live_view/channel.ex", line: 260]},
  {:gen_server, :try_handle_info, 3, [file: ~c"gen_server.erl", line: 2434]},
  {:gen_server, :handle_msg, 3, [file: ~c"gen_server.erl", line: 2420]},
  {:proc_lib, :init_p_do_apply, 3, [file: ~c"proc_lib.erl", line: 333]}
]

[error] Handler {Appsignal.Oban, [:oban, :job, :start]} has failed and has been detached. Class=:error
Reason=:badarg
Stacktrace=[
  {:binary, :match,
   [
     "scheduled",
     {:compiled, {:ac, #Reference<0.175430199.3900833793.93548>},
      {:ac, #Reference<0.175430199.3900833793.93549>}}
   ], [error_info: %{module: :erl_stdlib_errors}]},
  {String, :contains?, 2, [file: ~c"lib/string.ex", line: 2836]},
  {Appsignal.Utils.MapFilter, :"-discard_values/2-fun-0-", 2,
   [file: ~c"lib/appsignal/utils/map_filter.ex", line: 19]},
  {Enum, :"-map/2-fun-0-", 3, [file: ~c"lib/enum.ex", line: 1722]},
  {:maps, :fold_1, 4, [file: ~c"maps.erl", line: 894]},
  {Enum, :map, 2, [file: ~c"lib/enum.ex", line: 2558]},
  {Enum, :into, 3, [file: ~c"lib/enum.ex", line: 1608]},
  {Appsignal.Span, :do_set_sample_data, 5,
   [file: ~c"lib/appsignal/span.ex", line: 255]},
  {Appsignal.Oban, :oban_job_start, 4,
   [file: ~c"lib/appsignal/oban.ex", line: 66]},
  {:telemetry, :"-execute/3-fun-0-", 4,
   [
     file: ~c"/[my app]/deps/telemetry/src/telemetry.erl",
     line: 167
   ]},
  {:lists, :foreach_1, 2, [file: ~c"lists.erl", line: 2641]},
  {Oban.Queue.Executor, :record_started, 1,
   [file: ~c"lib/oban/queue/executor.ex", line: 97]},
  {Oban.Queue.Executor, :call, 1,
   [file: ~c"lib/oban/queue/executor.ex", line: 73]},
  {Task.Supervised, :invoke_mfa, 2,
   [file: ~c"lib/task/supervised.ex", line: 101]},
  {Task.Supervised, :reply, 4, [file: ~c"lib/task/supervised.ex", line: 36]}
]

To Reproduce

Steps to reproduce the behavior:

  • Using AppSignal for Elixir package version 1.18.0-rc.4 and live_view 1.1.0-rc.3
  • Add standard configuration

Metadata

Metadata

Assignees

Labels

bugConfirmed and unconfirmed bugs reported by us and customers.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions