[rabbitmq-discuss] PHP receive.php exception in tutorial

Fábio Silva fahecs at gmail.com
Mon Oct 28 15:16:09 GMT 2013


I've just downloaded the rabbitmq server and copied the sender/receiver 
tutorial examples described here:

http://www.rabbitmq.com/tutorials/tutorial-one-php.html

and that can be found here:

https://github.com/rabbitmq/rabbitmq-tutorials/tree/master/php

But when my receive.php finishes the queues, it throw an exemption:


PHP Fatal error:  Uncaught exception 
'PhpAmqpLib\Exception\AMQPRuntimeException' with message 'Error reading 
data. Received 0 instead of expected 7 bytes' in 
/var/www/rabbitmq/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php:50
Stack trace:
#0 
/var/www/rabbitmq/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/AMQPReader.php(128): 
PhpAmqpLib\Wire\IO\StreamIO->read(7)
#1 
/var/www/rabbitmq/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/AMQPReader.php(88): 
PhpAmqpLib\Wire\AMQPReader->rawread(7)
#2 
/var/www/rabbitmq/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(311): 
PhpAmqpLib\Wire\AMQPReader->read(7)
#3 
/var/www/rabbitmq/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(344): 
PhpAmqpLib\Connection\AbstractConnection->wait_frame(0)
#4 
/var/www/rabbitmq/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(121): 
PhpAmqpLib\Connection\AbstractConnection->wait_channel(1, 0)
#5 
/var/www/rabbitmq/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Channel/Abstrac 
in 
/var/www/rabbitmq/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php 
on line 50

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20131028/0bb896bc/attachment.htm>


More information about the rabbitmq-discuss mailing list