Coder Social home page Coder Social logo

Unknown AMQP method about py-amqp HOT 4 CLOSED

celery avatar celery commented on June 5, 2024
Unknown AMQP method

from py-amqp.

Comments (4)

ask avatar ask commented on June 5, 2024

Do you have a traceback? What is the value of method_sig?

from py-amqp.

 avatar commented on June 5, 2024
Traceback (most recent call last):
  File "/sites/VE/lib/python2.6/site-packages/celery/worker/__init__.py", line 347, in start
    component.start()
  File "/sites/VE/lib/python2.6/site-packages/celery/worker/consumer.py", line 389, in start
    self.reset_connection()
  File "/sites/VE/lib/python2.6/site-packages/celery/worker/consumer.py", line 736, in reset_connection
    self.reset_pidbox_node()
  File "/sites/VE/lib/python2.6/site-packages/celery/worker/consumer.py", line 679, in reset_pidbox_node
    callback=self.on_control)
  File "/sites/VE/lib/python2.6/site-packages/kombu/pidbox.py", line 71, in listen
    consumer.consume()
  File "/sites/VE/lib/python2.6/site-packages/kombu/messaging.py", line 398, in consume
    self._basic_consume(T, no_ack=no_ack, nowait=False)
  File "/sites/VE/lib/python2.6/site-packages/kombu/messaging.py", line 519, in _basic_consume
    no_ack=no_ack, nowait=nowait)
  File "/sites/VE/lib/python2.6/site-packages/kombu/entity.py", line 571, in consume
    nowait=nowait)
  File "/sites/VE/lib/python2.6/site-packages/amqp/channel.py", line 1767, in basic_consume
    (60, 21),  # Channel.basic_consume_ok
  File "/sites/VE/lib/python2.6/site-packages/amqp/abstract_channel.py", line 68, in wait
    self.channel_id, allowed_methods)
  File "/sites/VE/lib/python2.6/site-packages/amqp/connection.py", line 243, in _wait_method
    self.wait()
  File "/sites/VE/lib/python2.6/site-packages/amqp/abstract_channel.py", line 70, in wait
    return self.dispatch_method(method_sig, args, content)
  File "/sites/VE/lib/python2.6/site-packages/amqp/abstract_channel.py", line 85, in dispatch_method
    'Unknown AMQP method %r' % method_sig, method_sig)
TypeError: not all arguments converted during string formatting

Just noticed that I hadn't updated to the latest version, this traceback is after upgrading to the latest version. It still doesn't like the method_sig being a tuple. The value of method_sig is:

(10, 60)

from py-amqp.

 avatar commented on June 5, 2024

Changing line 85 in the latest version to

    'Unknown AMQP method %r' % (method_sig, ), method_sig)

also works for me, and is probably more correct than using str()

from py-amqp.

ask avatar ask commented on June 5, 2024

Thanks! I changed the offending line!

from py-amqp.

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.