New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error reading data. Received 0 instead of expected 7 bytes #272
Comments
You read this? |
Yes, but seems like credentials are right. |
Solved. This was because of old version of RabbitMQ. Updated to the last stable version - and this error disappeared. |
We had the same exception when consuming... (Debian) Fixed with: -use PhpAmqpLib\Connection\AMQPSocketConnection;
+use PhpAmqpLib\Connection\AMQPStreamConnection; 😛 |
I got the same exception, after I comment out the
|
I had this issue, resolved by adding the following to my Dockerfile: RUN docker-php-ext-install sockets mbstring |
installing mbstring fixed issue for me |
Have thhe same problem after switching from StreamConnection to SocketConnection, which is weird. We do have mbstring installed. Issue is reproducible both on php5.6 and php7 |
From my findings:
|
I also encountered the same problem. My version is Set heartbeat is 1 fixed issue is for me. |
I'm on ubuntu facing the same issue with RabbitMQ version: 3.8.2 |
I'm using Vagrant + puphpet, together with this extension. Recently I updated to the latest versions and now struggling with this issue.
There are some problems with applying configuration (at least for me).
User
guest
was existing by default, but when I tried:it says:
So I executed these commands manually for testing purposes.
Now if I execute:
It gives the following results:
Then I restarted rabbit server like that:
Connection is created like that:
According to trace, error appears right on this line. Here is full error text:
puphpet
config rabbitmq section:I also tried with
admin
user, the result is the same error.The text was updated successfully, but these errors were encountered: