<div dir="ltr"><div style>In addition to Emile's suggestion when you get a AMQP_CHANNEL_CLOSE_METHOD, cast the frame.properties.decoded to an amqp_channel_close_t*. You can then examine the reply_text to get the error message from the broker. You may need to use the class_id and method_id members might be useful in determining what the error message is referring to.</div>
<div style><br></div><div style>Also a note about amqp_basic_publish, its return value will only indicate the failure to pass the message to the broker (say the underlying socket gets closed). If you publish to a non-existent exchange (which will cause a channel exception) for example, the amqp_basic_publish won't indicate failure. The failure will reported 'some time in the future' as an channel exception in the form of a AMQP_CHANNEL_CLOSE_METHOD.</div>
<div style><br></div><div style>HTH</div><div style>-Alan</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 3, 2013 at 2:54 AM, Emile Joubert <span dir="ltr"><<a href="mailto:emile@rabbitmq.com" target="_blank">emile@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi,<br>
<div class="im"><br>
On 03/06/13 07:43, pawanksingh wrote:<br>
> I am Getting AMQP_CHANNEL_CLOSE_METHOD without closing any channel.<br>
<br>
<br>
</div>This is likely due to a channel exception. In that case the broker<br>
logfile will also have an explanation of the problem.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
-Emile<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br></div>