Skip to content

Factory is not describable #47309

@BenMorel

Description

@BenMorel

Symfony version(s) affected

5.4.11, 6.1.3

Description

We cannot currently use bin/console debug:container with --format=json because we get this error:

In JsonDescriptor.php line 248:

[InvalidArgumentException]
Factory is not describable.

The culprit in our case is Sentry\Client, and because of this only service, we cannot describe our whole container.

Would it be possible, instead of throwing an exception, to just output a null value, an error string, or anything that wouldn't make the whole thing fail?

Same issue with xml and md.

How to reproduce

composer create-project symfony/skeleton:"6.1.*" tmp
cd tmp
composer require sentry/sentry-symfony
bin/console debug:container --format=json --env=prod

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions