Skip to content

Handler ErrorTracker.Integrations.Phoenix has failed and has been detached #35

@sevenseacat

Description

@sevenseacat

Trying to test out the project but I can't seem to get any errors logged. The error occurs at this line

{:ok, stacktrace} = ErrorTracker.Stacktrace.new(stacktrace)

I put a sample erronous code 1 + "a" into a LiveView and got the following error:

[error] Handler ErrorTracker.Integrations.Phoenix has failed and has been detached. Class=:error
Reason={:badmatch,
 {:error,
  #Ecto.Changeset<
    action: :new,
    changes: %{
      lines: [
        #Ecto.Changeset<
          action: :insert,
          changes: %{function: "+", module: "erlang"},
          errors: [arity: {"is invalid", [type: :integer, validation: :cast]}],
          data: #ErrorTracker.Stacktrace.Line<>,
          valid?: false
        >,
        ...

I also tried changing a function call to use an invalid name (changing AshPhoenix.LiveView.page_from_params to AshPhoenix.LiveView.page_from_params1, and got a similar error:

[error] Handler ErrorTracker.Integrations.Phoenix has failed and has been detached. Class=:error
Reason={:badmatch,
 {:error,
  #Ecto.Changeset<
    action: :new,
    changes: %{
      lines: [
        #Ecto.Changeset<
          action: :insert,
          changes: %{
            function: "page_from_params1",
            module: "AshPhoenix.LiveView",
            application: "ash_phoenix"
          },
          errors: [arity: {"is invalid", [type: :integer, validation: :cast]}],
          data: #ErrorTracker.Stacktrace.Line<>,
          valid?: false
        >,
        ...

Are these not classes of errors that can be tracked at the moment?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions