New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
channel starts consuming before I call start_consuming(), then raises Queue.DeclareOk KeyError #86
Comments
Please run the following code:
|
As stated at the top, I am using Pika 0.9.5 (verified again by pika.version). Thanks. |
Thank you for verifying, there have been numerous issues like this where users report they're using the pypi installed 0.9.5 and in fact, are not. I'll try and reproduce your problem. |
Wondering if this was able to be reproduced. I was thinking of trying an alternative method of opening two separate async connections under the same IOLoop. Would this be a viable workaround? Thanks. |
Update: This problem doesn't seem to occur when using a TornadoConnection instead of a BlockingConnection. I have been using this as a workaround for the issue, and have yet to run into any problems. Edit: Sorry about the repeated close/reopens. I am too used to forums where the "Post" button is the left button, not the right. |
I also faced a similar problem. I propose the following patch:
|
Thanks for the test case, I've been able to reproduced and it is fixed. Sorry for the long delay. |
Note: Cross-posted here: http://groups.google.com/group/rabbitmq-discuss/browse_thread/thread/3f39ac9c9d643e64
Environment: Python 2.6.6, Ubuntu 10.10, Pika 0.95. I have reproduced
this problem on several machines with the same specs.
Description of Test: Publish to test1, then consume from test1 and
test2.
What Happens: The queue with the message begins consuming before I
have even told it to start_consuming. Pika seems to get into a weird
state, and then throws a Queue.DeclareOk KeyError.
Error:
The Code:
The text was updated successfully, but these errors were encountered: