Skip to content

404 page not showing - server panics instead #1805

@adamkiss

Description

@adamkiss

Tempest version

2.9.1

PHP version

8.4

Operating system

macOS

Description

404 Pages are not showing, instead Router panics and throws 500. You can see it even on the Tempest Framework site.

Additionally, if I set ENVIRONMENT to production the missing route returns 200 OK, but the content leaks paths/errors:

<b>Fatal error</b>:  Uncaught Tempest\Http\HttpRequestFailed: Failed request: 404 Not Found in /[PATH]/vendor/tempest/framework/packages/router/src/HandleRouteExceptionMiddleware.php:28

Steps to reproduce

Open https://tempestphp.com/asdasdasd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions