Skip to content

404/422 Errors triggers exceptions Parameter "status" not found, check the identifiers configuration #6002

@jderusse

Description

@jderusse

API Platform version(s) affected: 3.2.6

Description

Since v3.2.6 404 errors trigger a new exception (reported by sentry)

Parameter "status" not found, check the identifiers configuration.

This is triggered by the UriVariablesResolverTrait trait when resolving the "/errors/{status}" template.

The status parameter does not exist.

There is a variant with 422 trying to resolve the /validation_errors/{id} template from the ApiPlatform\Symfony\Validator\Exception\ValidationException resource

How to reproduce

Call a /resources/id_does_not_exist endpoint, watch Symfony's profiler logs panel

Possible Solution

Additional Context

maybe related to #5974

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