Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[InvalidArgumentException] The malformed json given. Error 4 and message Syntax error #1247

Open
stayfuneral opened this issue Apr 6, 2022 · 0 comments

Comments

@stayfuneral
Copy link

stayfuneral commented Apr 6, 2022

Hi, i download your library for usage in Bitrix framework, and on execution Consumer::recieve see errors:

[InvalidArgumentException] 
The malformed json given. Error 4 and message Syntax error (0)
/data/local/vendor/enqueue/rdkafka/JsonSerializer.php:32
#0: Enqueue\RdKafka\JsonSerializer->toMessage(string)
	/data/local/vendor/enqueue/rdkafka/RdKafkaConsumer.php:175
#1: Enqueue\RdKafka\RdKafkaConsumer->doReceive(integer)
	/data/local/vendor/enqueue/rdkafka/RdKafkaConsumer.php:115
#2: Enqueue\RdKafka\RdKafkaConsumer->receive()
	/data/1/index.php:18

Code:

$testQueue = $context->createQueue('test');


$consumer = $context->createConsumer($testQueue);
$message = $consumer->receive();
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant