Comments (13)
Are you using the latest version of the library? I've seen that error before but it got fixes some months ago
from php-amqplib.
Yes, I use the latest version.
from php-amqplib.
One issue I noticed while using the bundle was that inside a consumer you can't read from a different channel. Are you trying to read/consume/publish from inside your consumer callback?
from php-amqplib.
For what I see on your AMQP log there you are opening other channels afterwards so ATM that was not so well architected on the bundle, but you can do that with the underlying AMQP lib if you know how to use it without the bundle
from php-amqplib.
Yes, I am trying to publish from inside consumer callback.
from php-amqplib.
I am not that good with AMQP library, so I have to change my application to work nicely.
Will this feature be implemented in the bundle any time soon ?
from php-amqplib.
I can't give you an ETA.
What you can do ATM is to get the channel object directly from the message you receive in the callback. Then you can use that channel to publish your new message to the desired exchange, etc.
from php-amqplib.
I will try. Thanks.
from php-amqplib.
Take a look at these docs https://github.com/videlalvaro/php-amqplib/blob/master/doc/AMQPMessage.md
from php-amqplib.
Take a look at pull request I referenced this bug. I suppose this commit solves it.
from php-amqplib.
This is great. I will be able to test it by the end of this week (or maybe tomorrow) and will leave a comment here.
from php-amqplib.
This patch works for me. Thanks Anton ( @m00t )
from php-amqplib.
from php-amqplib.
Related Issues (20)
- Number of connection attempts in case of connection failure
- RabbitMQ instances are loosing connection with worker server after particular time period though the service instances are up and running on worker. Is there any time limit for RabbitMQ server connections hosted on AmazonMQ?
- ssl_protocol == null return $ssl_protocol parameter is deprecated HOT 1
- Connection option close_on_destruct doesn't work because of circular reference HOT 1
- Required parameter $io follows optional parameter $vhost HOT 1
- "Broken pipe or closed connection" on $this->connection->channel()
- Lazy stream connection leaks stream context resource causing file descriptor limit hit (FD_SETSIZE) HOT 2
- PHP Fatal error: Uncaught PhpAmqpLib\Exception\AMQPProtocolChannelException HOT 26
- stream_set_blocking(): Argument #2 ($enable) must be of type bool, int given HOT 3
- DateTime::createFromFormat(): Argument #2 ($datetime) must be of type string, int given HOT 2
- Better support for OAuth2 authorization backend
- AMQPConnectionException: Server connection error: 320, message: CONNECTION_FORCED - Node was put into maintenance mode HOT 1
- Connecting php-amqplib to rmohr/activemq docker image HOT 1
- PhpAmqpLib\Exception\AMQPIOException Can not enable keepalive: function socket_import_stream does not exist
- Unix signals question
- Option to enable/disable IPv6 HOT 6
- Too much "CLOSE_WAIT" connections
- Call to undefined method PhpAmqpLib\Message\AMQPMessage::ack() HOT 2
- Change log for 3.6.0 does not mention backwards compatibility breaking change in AMPQSSLConnection signature HOT 2
- Change log for 3.6.0 does not mention backwards compatibility breaking change (removal of parameter) in AMPQSSLConnection signature
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-amqplib.