Skip to content

Issue with custom error template rendering with 500 error #485

@adrienfr

Description

@adrienfr

Environment

How do you use Sentry?
Sentry SaaS (sentry.io)

Steps to Reproduce

  1. Migrate from "sentry/sentry-symfony:4.0" to "sentry/sentry-symfony:4.1"
  2. Env is prod (and debug is false)
  3. Monolog enabled
  4. Generate a 500 error

Expected Result

This should display my custom error page (templates/bundles/TwigBundle/Exception/error.html.twig)

Actual Result

The displayed error is the generic one :
Capture d’écran 2021-04-20 à 12 47 24

It seems that TwigErrorRenderer is not called anymore.

404 errors are not concerned, the custom error page (templates/bundles/TwigBundle/Exception/error404.html.twig) is correctly displayed (as it was before on "sentry/sentry-symfony:4.0").

Here is my configuration :

prod/sentry.yml

sentry:
    dsn: "%sentry.dsn%"
    options:
        environment: "%kernel.environment%"
        send_default_pii: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions