You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After using the keywords 'init amqp connection' and 'set amqp destination' correctly, the keyword 'send amqp message' fails with the following error:
AttributeError: 'NoneType' object has no attribute 'basic_publish'.
Running with DEBUG log level, I can see the following Trace as well.
Traceback (most recent call last):
File "/Users/mbrudnoy/Projects/PythonVirtualEnvs/robot/lib/python2.7/site-packages/AMQPLib/AMQPMsg.py", line 92, in send_amqp_msg
self.amqp_channel.basic_publish(exchange=amqp_exchange,
After playing around with the code, I noticed that even though amqp_channel is set in the init_amqp_connection function, it appears to lose the reference later on.
The function send_amqp_message works if I replace self.amqp_channel.basic_publish(...) with self.amqp_connection.channel().basic_pubish(...)
The text was updated successfully, but these errors were encountered:
After using the keywords 'init amqp connection' and 'set amqp destination' correctly, the keyword 'send amqp message' fails with the following error:
AttributeError: 'NoneType' object has no attribute 'basic_publish'.
Running with DEBUG log level, I can see the following Trace as well.
After playing around with the code, I noticed that even though amqp_channel is set in the init_amqp_connection function, it appears to lose the reference later on.
The function send_amqp_message works if I replace self.amqp_channel.basic_publish(...) with self.amqp_connection.channel().basic_pubish(...)
The text was updated successfully, but these errors were encountered: