Skip to content

Match error on rendering error pages ErrorHTML #821

@javierg

Description

@javierg

Environment

  • Elixir version (elixir -v): 1.17.2
  • Phoenix version (mix deps): 1.7.21
  • Phoenix LiveView version (mix deps): 1.0.10
  • Beacon version (mix deps): 0.5.1
  • Operating system: OSX 15.4
  • Browsers on which you attempted to reproduce this bug (the more the merrier): Chrome

Actual behavior

Site will not render configured error page on beacon_live_admin and raise a Match error such as:

[warning] failed to render error page for 404.html, fallbacking to default Phoenix error page

Got:

%MatchError{term: {Beacon.Web.PageLive, [action: :path, router: MyAppWeb.Router], %{extra: %{session: {Beacon.Router, :session, [:home, %{}]}, root_layout: {Beacon.Web.Layouts, :runtime}, on_mount: []}, name: :beacon_home}}}

Expected behavior

Error pages should be rendered without any raised errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions