<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm not sure what's going on but...<div><br></div><div>I'm trying to send messages using the rabbitmq-erlang-client using these lines:</div><div><br></div><div><div> Properties = #'P_basic'{</div><div> content_type = <<"application/octet-stream">>,</div><div> delivery_mode = 2,</div><div> priority = 0</div><div> },</div><div> lib_amqp:publish(Broker, <<"flow">>, list_to_binary(Key), Payload, Properties)</div><div><br></div><div>But then I receive this error:</div><div><br></div><div><div>Channel 1 is shutting down due to: {badarg,</div><div> [{erlang,size,</div><div> ["2009:1:15:1:37:50||BOIXKZLU35DNVNIAJG5QX3||FB2ECVNZMRHUPP65V3VIDU||d57564110fee0b631a95d9adceb713cc.ev||US||USA||United States||CA||37.79150000000001||-122.4089||415||807||San Francisco||94108||127.0.0.1||||TW96aWxsYS81LjAgKE1hY2ludG9zaDsgVTsgSW50ZWwgTWFjIE9TIFggMTBfNV82OyBlbi11cykgQXBwbGVXZWJLaXQvNTI1LjI3LjEgKEtIVE1MLCBsaWtlIEdlY2tvKSBWZXJzaW9uLzMuMi4xIFNhZmFyaS81MjUuMjcuMQ==||ff32ff680112993033bc3fde17d49f5e"]},</div><div> {rabbit_binary_generator,</div><div> build_content_frames,5},</div><div> {rabbit_binary_generator,</div><div> build_simple_content_frames,3},</div><div> {rabbit_writer,assemble_frames,4},</div><div> {rabbit_writer,</div><div> internal_send_command_async,5},</div><div> {rabbit_writer,handle_message,2},</div><div> {rabbit_writer,mainloop,1}]}</div><div><br></div><div>It only does that for some messages apparently though, those that are delivered then raise</div><div>this error on the consumer side (that still forwards messages):</div><div><br></div><div><div>** Reason for termination == </div><div>** {noproc,</div><div> {gen_server,call,</div><div> [<0.219.0>,</div><div> {call,</div><div> {'basic.publish',1,<<"flow">>,</div><div> <<"event.BOIXKZLU35DNVNIAJG5QX3.FB2ECVNZMRHUPP65V3VIDU">>,</div><div> false,false},</div><div> {content,60,</div><div> {'P_basic',<<"application/octet-stream">>,undefined,</div><div> undefined,2,0,undefined,undefined,undefined,undefined,</div><div> undefined,undefined,undefined,undefined,undefined},</div><div> none,</div><div> ["2009:1:15:1:37:52||BOIXKZLU35DNVNIAJG5QX3||FB2ECVNZMRHUPP65V3VIDU||d57564110fee0b631a95d9adceb713cc.ev||US||USA||United States||CA||37.79150000000001||-122.4089||415||807||San Francisco||94108||127.0.0.1||||TW96aWxsYS81LjAgKE1hY2ludG9zaDsgVTsgSW50ZWwgTWFjIE9TIFggMTBfNV82OyBlbi11cykgQXBwbGVXZWJLaXQvNTI1LjI3LjEgKEtIVE1MLCBsaWtlIEdlY2tvKSBWZXJzaW9uLzMuMi4xIFNhZmFyaS81MjUuMjcuMQ==||52dd6625acfffde415c6b9da26f6be68"]}}]}}</div><div><br></div><div>It seems that something is mixing the arguments moving the Payload where a Size should be.</div><div><br></div><div>I'm using:</div><div><br></div><div>rabbitmq-server (default branch):</div><div><div>changeset: 727:89756e9329f4</div><div>tag: tip</div><div>parent: 718:0a1371be4f98</div><div>parent: 726:97e40f6bb50a</div><div>user: Matthias Radestock <<a href="mailto:matthias@lshift.net">matthias@lshift.net</a>></div><div>date: Mon Jan 12 17:24:05 2009 +0000</div><div>summary: merge v1_5_1 into default</div><div><br></div><div>rabbitmq-erlang-client (default branch):</div><div><div>changeset: 213:437d0e4d66c8</div><div>branch: bug20103</div><div>tag: tip</div><div>user: Ben Hood <<a href="mailto:0x6e6562@gmail.com">0x6e6562@gmail.com</a>></div><div>date: Fri Jan 09 18:28:35 2009 +0000</div><div>summary: Switched over to gen_server2 handling</div><div><br></div></div></div></div></div></div><div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px; white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">-- </span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px; white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Valentino Volonghi aka Dialtone</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px; white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Now running MacOS X 10.5</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px; white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Home Page: <a href="http://www.twisted.it">http://www.twisted.it</a> </span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px; white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><a href="http://www.adroll.com">http://www.adroll.com</a></span></div></div></div></span></div></span></div></span> </div><br></div></body></html>