Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Assertion Error parsing response after connection to RabbitMQ server #13

Closed
declanshanaghy opened this Issue Mar 9, 2012 · 1 comment

Comments

Projects
None yet
2 participants

Im encountering an exception just trying to run example1
As far as i can figure out my rabbit MQ server is sending this capabilities message which cannot be parsed.

I've written the binary message to a file if you want me
to email that to you contact dshanaghy[[[[A-T]]]]splunk.com

Any help would be appreciated.

Here's what i've copied from my debugger

    "
         capabilitiesFXpublisher_confirmstexchange_exchange_bindingst
basic.nacktconsumer_cancel_notifyt  copyrightS$Copyright (C) 2007-2011 VMware, Inc.
                                                                                       informationS5Licensed under the MPL.  See http://www.rabbitmq.complatformS
Erlang/OTPproductRabbitMQversionS2.7.1PLAIN AMQPLAINen_US

Connected to pydev debugger (build 107.576)
/usr/local/Cellar/python/2.7/bin/python2.7 /Applications/PyCharm 1.5.4.app/helpers/pydev/pydevd.py --client 127.0.0.1 --port 51600 --file /Users/dshanaghy/bin/stormed-amqp/example2/worker.py
pydev debugger: starting
 [*] Waiting for messages. To exit press CTRL+C
ERROR:root:Uncaught exception, closing connection.
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/tornado/iostream.py", line 301, in wrapper
    callback(*args)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/stormed/frame.py", line 34, in _with_payload
    self.frame.set_payload(payload)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/stormed/frame.py", line 47, in set_payload
    self.payload = parse_method(payload)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/stormed/serialization.py", line 58, in parse_method
    vals = parse_fields(types, data[4:])
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/stormed/serialization.py", line 21, in parse_fields
    val, offset = parser(data, offset)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/stormed/serialization.py", line 186, in parse_table
    assert typ in field_type_dict, typ
AssertionError: F
ERROR:root:Exception in callback <tornado.stack_context._StackContextWrapper object at 0x1012c7e10>
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/tornado/ioloop.py", line 396, in _run_callback
    callback()
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/tornado/iostream.py", line 301, in wrapper
    callback(*args)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/stormed/frame.py", line 34, in _with_payload
    self.frame.set_payload(payload)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/stormed/frame.py", line 47, in set_payload
    self.payload = parse_method(payload)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/stormed/serialization.py", line 58, in parse_method
    vals = parse_fields(types, data[4:])
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/stormed/serialization.py", line 21, in parse_fields
    val, offset = parser(data, offset)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/stormed/serialization.py", line 186, in parse_table
    assert typ in field_type_dict, typ
AssertionError: F
Owner

paolo-losi commented Mar 12, 2012

Hi! The bug is a duplicate of #6 and has been fixed in master. Can you please confirm master works for you?

@paolo-losi paolo-losi closed this Mar 27, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment