AMQP errors in Azure Service Bus
This article provides some of the errors you receive when using AMQP with Azure Service Bus. They're all standard behaviors of the service. You can avoid them by making send/receive calls on the connection/link, which automatically recreates the connection/link.
Link is closed
You see the following error when the AMQP connection and link are active but no calls (for example, send or receive) are made using the link for 10 minutes. So, the link is closed. The connection is still open.
amqp:link:detach-forced:The link 'G2:7223832:user.tenant0.cud_00000000000-0000-0000-0000-00000000000000' is force detached by the broker due to errors occurred in publisher(link164614). Detach origin: AmqpMessagePublisher.IdleTimerExpired: Idle timeout: 00:10:00. TrackingId:00000000000000000000000000000000000000_G2_B3, SystemTracker:mynamespace:Topic:MyTopic, Timestamp:2/16/2018 11:10:40 PM
Connection is closed
You see the following error on the AMQP connection when all links in the connection have been closed because there was no activity (idle) and a new link hasn't been created in 5 minutes.
Error(condition:amqp:connection:forced, description:The connection was closed by container '7f9c2480b17647c0a5acc8aea6f8607c_G2' because it did not have any active links in the past 300000 milliseconds. TrackingId:7f9c2480b17647c0a5acc8aea6f8607c_G2, SystemTracker:gateway5, Timestamp:2024-05-06T22:26:00, info=null}
Link isn't created
You see this error when a new AMQP connection is created but a link isn't created within 1 minute of the creation of the AMQP Connection.
Error(condition:amqp:connection:forced, description:The connection was closed by container '7f9c2480b17647c0a5acc8aea6f8607c_G2' because it did not have any active links in the past 60000 milliseconds. TrackingId:7f9c2480b17647c0a5acc8aea6f8607c_G2, SystemTracker:gateway5, Timestamp:2024-05-06T22:26:00, info=null}
Next steps
To learn more about AMQP and Service Bus, visit the following links: