Skip to content

[Messenger] Symfony Serializer: Cannot create instance of BusNameStamp #31490

@raress96

Description

@raress96

Symfony version(s) affected: 4.3-beta1

Description
The exact error that I receive from the console:
Cannot create an instance of Symfony\Component\Messenger\Stamp\BusNameStamp from serialized data because its constructor requires parameter "busName" to be present.

To me this error makes no sens, I have published a message using a SF 4.3 application and tried to consume it in another SF 4.3 application. For some reason the deserialization of the BusNameStamp fails in Symfony\Component\Messenger\Transport\Serialization\Serializer class in the decodeStamps function, which really makes no sense since the JSON that is used for the deserialization of this stamp is this: [{"busName":"messenger.bus.default"}]

How to reproduce
Publish a message from a SF 4.3 application using the messenger.transport.symfony_serializer service as the messenger default serializer and then try to consume it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions