Closed nhumrich closed 7 years ago
Now I see that consumer_tag returned is just a dictionary with a key, that has to be pulled out of the dict.
result = loop.run_until_complete(run())
consumer_id = result['consumer_tag']
So this issue is now moreso the fact that either a) the return to basic_consume
should just be a string, or b) that basic_cancel should except the dict, or c) should give a much better error for invalid input.
Hello Nick,
This could be an improvement in the API for sure.
Adding a reference to #118 to think about this further.
But closing as there's no actual bug here (just a weird API from us).
Everytime I try to use
basic_cancel
I get an error that says "501 Frame Error"aioamqp.exceptions.ChannelClosed: (501, 'FRAME_ERROR - cannot decode <<1,0>>')
Here is an example program:
Running on Python 3.5.2 gives me: