Code Monkey home page Code Monkey logo

Comments (13)

videlalvaro avatar videlalvaro commented on May 19, 2024

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.

antonbabenko avatar antonbabenko commented on May 19, 2024

Yes, I use the latest version.

from php-amqplib.

videlalvaro avatar videlalvaro commented on May 19, 2024

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.

videlalvaro avatar videlalvaro commented on May 19, 2024

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.

antonbabenko avatar antonbabenko commented on May 19, 2024

Yes, I am trying to publish from inside consumer callback.

from php-amqplib.

antonbabenko avatar antonbabenko commented on May 19, 2024

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.

videlalvaro avatar videlalvaro commented on May 19, 2024

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.

antonbabenko avatar antonbabenko commented on May 19, 2024

I will try. Thanks.

from php-amqplib.

videlalvaro avatar videlalvaro commented on May 19, 2024

Take a look at these docs https://github.com/videlalvaro/php-amqplib/blob/master/doc/AMQPMessage.md

from php-amqplib.

anton-siardziuk avatar anton-siardziuk commented on May 19, 2024

Take a look at pull request I referenced this bug. I suppose this commit solves it.

from php-amqplib.

antonbabenko avatar antonbabenko commented on May 19, 2024

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.

antonbabenko avatar antonbabenko commented on May 19, 2024

This patch works for me. Thanks Anton ( @m00t )

from php-amqplib.

marcolettieri avatar marcolettieri commented on May 19, 2024

#438

from php-amqplib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.