<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2013/3/14 Chris <span dir="ltr"><<a href="mailto:stuff@moesel.net" target="_blank">stuff@moesel.net</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>First, the non-node-specific question: Does anyone have any pointers on how to debug such an issue? I've already looked at logs and found which channel is the problem-- but if I comment out the code that creates that channel, then it just fails on a different channel the next time (btw-- you don't explicitly create channels in node-amqp, they are created for you when you subscribe to queues, declare exchanges, etc.).</div>
</blockquote><div><br></div><div style>Using Wireshark or RabbitMQ tracer [1].</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><br></div><div>And the more node-specific question: RabbitMQ docs seem to indicate it is usually an error in the client (node-amqp in our case), but I wonder if perhaps we are making some newbie node-amqp mistake that might lead to this 503 error? Is there anyone with node-amqp experience that has been through this before?</div>
</blockquote></div><br>This issue indicates a race condition when a library assumes it need to automatically open a channel after channel.open</div><div class="gmail_extra">has been sent. Or it may be because channel ids are not incremented properly in the client so two channels end up</div>
<div class="gmail_extra" style>having the same id.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Finally, race conditions can originate in your own code but it's impossible to tell without</div><div class="gmail_extra">
seeing the code.<br><br clear="all"><div style>1. See at the bottom of <a href="http://www.rabbitmq.com/api-guide.html">http://www.rabbitmq.com/api-guide.html</a></div>-- <br>MK<br><br><a href="http://github.com/michaelklishin" target="_blank">http://github.com/michaelklishin</a><br>
<a href="http://twitter.com/michaelklishin" target="_blank">http://twitter.com/michaelklishin</a><br>
</div></div>