Giter VIP home page Giter VIP logo

Comments (5)

barshow avatar barshow commented on June 25, 2024

I can't repro this, I did do a small race fix that may help. Its also in #27

If you have repro steps or turn on debugging AMQP=3 DEBUG=* and send some logs ill have look.

from amqp-coffee.

 avatar commented on June 25, 2024
  1. to stop receiving consumerCount after reconnect, try this:
connected to rabbit@Andreys-Air v3.5.0
queue "named-queue-test" created
message received: #1
try to get consumers count for queue...
consumers count: 1
message received: #2
try to get consumers count for queue...
consumers count: 1
message received: #3
try to get consumers count for queue...
consumers count: 1
message received: #4
connection is closed: 3634ms
try to get consumers count for queue...
try to get consumers count for queue...
try to get consumers count for queue...
try to get consumers count for queue...
connected to rabbit@Andreys-Air v3.5.0
message received: #5
try to get consumers count for queue...
message received: #6
try to get consumers count for queue...
message received: #7
try to get consumers count for queue...
message received: #8
try to get consumers count for queue...
message received: #9
  1. i get error during .consumerCount call on unnamed queue, but im not sure is it bug of protocol feature:
/Users/drago/Documents/amqp-coffee/bin/src/lib/Queue.js:133
        return cb(err, res.consumerCount);
                          ^
TypeError: Cannot read property 'consumerCount' of undefined
    at /Users/drago/Documents/amqp-coffee/bin/src/lib/Queue.js:133:27
    at /Users/drago/Documents/amqp-coffee/bin/src/lib/Queue.js:69:43
    at doneFn (/Users/drago/Documents/amqp-coffee/bin/src/lib/Channel.js:241:11)
    at TemporaryChannel.Channel._onChannelMethod (/Users/drago/Documents/amqp-coffee/bin/src/lib/Channel.js:336:71)
    at Connection._onMethod (/Users/drago/Documents/amqp-coffee/bin/src/lib/Connection.js:601:39)
    at AMQPParser.<anonymous> (/Users/drago/Documents/amqp-coffee/bin/src/lib/Connection.js:4:61)
    at AMQPParser.emit (events.js:118:17)
    at AMQPParser.parseMethodFrame (/Users/drago/Documents/amqp-coffee/bin/src/lib/AMQPParser.js:110:19)
    at AMQPParser.frameEnd (/Users/drago/Documents/amqp-coffee/bin/src/lib/AMQPParser.js:80:16)
    at AMQPParser.frame (/Users/drago/Documents/amqp-coffee/bin/src/lib/AMQPParser.js:63:21)

from amqp-coffee.

barshow avatar barshow commented on June 25, 2024

Thanks for that repro! Its fixed in #27 now and wrote some tests based on your repro.

from amqp-coffee.

barshow avatar barshow commented on June 25, 2024

its published to npm as 0.1.21-rc1 right now if you want to try it

from amqp-coffee.

 avatar commented on June 25, 2024

cool, thank you
everything works

from amqp-coffee.

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.