question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question]What's the meaning of "The link 'xxx' force detached. Code: publisher(linkxxx). Details: AmqpMessagePublisher.IdleTimerExpired: Idle timeout: 00:10:00"

See original GitHub issue

Library name and version

Microsoft.Azure.ServiceBus 5.0.0

Query/Question

Hi, azure-sdk-for-net friends

We use Azure service bus and recently we got a error message which need your help to understand better. thank you.

The error message like this:

Failed to send message to Service Bus due to exception: 
The link 'G4:9962303:88e1bcd9-360e-47ee-9625-3fb0286a4c2d;28:57:58:source(address:*outTopicAddress*):*outTopicName*' 

**is force detached**. Code: publisher(link2207). Details: AmqpMessagePublisher.IdleTimerExpired: Idle timeout: 00:10:00**., 

stack:   
   at Microsoft.Azure.ServiceBus.Core.MessageSender.OnSendAsync(IList`1 messageList)
   at Microsoft.Azure.ServiceBus.RetryPolicy.RunOperation(Func`1 operation, TimeSpan operationTimeout)
   at Microsoft.Azure.ServiceBus.RetryPolicy.RunOperation(Func`1 operation, TimeSpan operationTimeout)
   at Microsoft.Azure.ServiceBus.Core.MessageSender.SendAsync(IList`1 messageList)

// delete some stack message

I searched and found this page https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-amqp-troubleshoot#link-is-closed

It tell me that the error is a standard behaviors, but I’m still confused. The troubleshoot say

You can avoid them by making send/receive calls on the connection/link, which automatically recreates the connection/link.

At first, I thought the exception is only a “warning”, service bus will send message successfully for me, but then I realized as the exception throw out, I have to retry by myself and then the message will send successfully.

I’m confused, as this exception can avoid after retry(Do I understand right?), why need customer code do that rather than handle the exception inside service bus sdk?

What’s the meaning when exception The link 'xxx' force detached. Code: publisher(linkxxx). Details: AmqpMessagePublisher.IdleTimerExpired happen, does it means something wrong in my code, and what should I do to avoid this kind of exception or just retry is enough?

Thanks for your help!

Environment

Hosting platform linux .NET version: dotnetcoreapp3.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
MughundhanRaveendran-MSFTcommented, Feb 10, 2022

@QiangL , Thanks for the follow-up. I will provide an update tomorrow

1reaction
MughundhanRaveendran-MSFTcommented, Feb 8, 2022

@QiangL , Thanks for reaching out. I will check and get back to you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

amqp[:]link:detach-forced errors (servicebus) · Issue #16695
Code: publisher(link12860924). Details: AmqpMessagePublisher.IdleTimerExpired: Idle timeout: 00:10:00., Info: map[]}. or. link detached ...
Read more >
Troubleshoot AMQP errors in Azure Service Bus
You see this error when a new AMQP connection is created but a link isn't created within 1 minute of the creation of...
Read more >
Azure Service Bus : Amqp Idle Timeout condition ...
This error occurs when an order exceeds the idle time then the connection with the Azure Service Bus fails and in order to...
Read more >
Fixed: Idle Timer Expired Keeps Popping Up [3 Solutions]
How do I fix idle timer expired keeps popping upwhen using RDP? Here in this post, we will offer you several solutions do...
Read more >
Understanding and Troubleshooting Idle Timeouts
Another common idle timeout issue is that the link does not disconnect since the idle timeout never expires. This can result in high...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found