Skip to content

RdKafkaConsumer crash #1357

Open
Open
@alexshiloov

Description

@alexshiloov

175 line https://github.com/php-enqueue/rdkafka/blob/master/RdKafkaConsumer.php#L175

$message = $this->serializer->toMessage($kafkaMessage->payload);

It will lead to crash, if someone push to kafka empty msg for example.
I think it is not correct for crashing, maybe skipping this msg or returning null

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