-
Notifications
You must be signed in to change notification settings - Fork 41
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
AttributeError: 'Channel' object has no attribute 'basic' when publish message #57
Comments
It seems like that resetting rabbitmq helps me. RabbitMQ logs contained following:
but the most interesting thing - that exchange declaration code doesn't changed during multiple test running =) |
Likely what happened is that the channel closed between when it was declared and when you attempted to publish, likely due to the protocol error you noted. Did you find a bug in your tests or is there a problem with |
I think |
Closing the channel ( |
Yeah I just proposed in #61 a change to closed channels that would make it much clearer to the user. |
Hi! I write functional tests for my project, where I create RabbitMQ consumer using haigha =) There are both test producer and consumer in functional tests (started one by one). The producer randomly fails - opened channel closes randomly. When channel closed - no info is provided to close cb.
The only error I get is
AttributeError: 'Channel' object has no attribute 'basic'
:What may cause this? How I can get more info from channel close callback? TIA!
PS The only cause I see for now is that consumer and producer started together.
The text was updated successfully, but these errors were encountered: