You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What problem did you encounter?
I'm trying to integrate Kafka producer with Laravel worker. After starting my worker, I noticed that publishing to Kafka is failing with following exception
AMQP: Failed to Process data with exception: longlang\phpkafka\Exception\SocketException: Could not write 659 bytes to stream in /home/shard/hiver/web/web/vendor/longlang/phpkafka/src/Socket/StreamSocket.php:123
On further analysis, I found out that before publishing event to topic, we firstly check if socket is writable or not
// wait for stream to become available for writing
$writable = $this->select([$this->socket], $timeout, false);
if (false === $writable) {
$this->close();
throw new SocketException('Could not write ' . $bytesToWrite . ' bytes to stream');
}
Any help here would be appreciated
Is the Kafka environment self-built or cloud service?
Please execute the following command to get environment information.
I'm trying to integrate Kafka producer with Laravel worker. After starting my worker, I noticed that publishing to Kafka is failing with following exception
On further analysis, I found out that before publishing event to topic, we firstly check if socket is writable or not
Any help here would be appreciated
Is the Kafka environment self-built or cloud service?
Please execute the following command to get environment information.
My Kafka Client
The text was updated successfully, but these errors were encountered: