Skip to content

Exception handler status_code positional argument and FT response rendering failure #925

Description

@lgs

In the tested FastHTML version, exception handlers receive a third positional status_code argument; handlers written to the conventional request, exc signature fail. Returning FT content from this path also mis-renders, while a plain Starlette Response works. Repro context: https://github.com/lgs/iii-fasthtml-frontend/blob/main/docs/ARCHITECTURE.md#11-platform-quirks-discovered-all-worked-around-in-code. Expected: documented/stable handler signature and normal FT rendering on error paths.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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