ruby-amqp / amq-protocol

AMQP 0.9.1 protocol serialization and deserialization implementation for Ruby (2.0+)
http://groups.google.com/group/ruby-amqp
MIT License
48 stars 31 forks source link

mqtt decode error #32

Closed jnqn closed 11 years ago

jnqn commented 11 years ago

I'm using the mqtt plugin for RabbitMQ and seeing the following error when receiving messages in my ruby client.

/Library/Ruby/Gems/1.8/gems/amq-protocol-1.2.0/lib/amq/protocol/table.rb:108:in `decode': Not a valid type: "b" (ArgumentError) Data: "\000\000\000\"\022x-mqtt-publish-qosb\000\nx-mqtt-dupt\000" Unprocessed data: "\000\nx-mqtt-dupt\000" Offset: 24 Total size: 34 Processed data: {}

I saw there was a similar issue with the decode table recently. This seems to be a different issue.

michaelklishin commented 11 years ago

Please provide scripts to reproduce.

michaelklishin commented 11 years ago

Should be fixed in 1.3.0.