paolo-losi/stormed-amqp — Issue #13: Assertion Error parsing response after connection to RabbitMQ server
Author: declanshanaghy
Created: 2012-03-09 02:36:58+00:00
State: open

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.
I'm not even sure if this is a server misconfiguration or what...

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
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
````